@semcore/d3-chart 16.5.0 → 17.0.0-prerelease.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/lib/cjs/AnimatedClipPath.js +28 -41
  3. package/lib/cjs/AnimatedClipPath.js.map +1 -1
  4. package/lib/cjs/Area.js +187 -223
  5. package/lib/cjs/Area.js.map +1 -1
  6. package/lib/cjs/Axis.js +248 -327
  7. package/lib/cjs/Axis.js.map +1 -1
  8. package/lib/cjs/Bar.js +162 -185
  9. package/lib/cjs/Bar.js.map +1 -1
  10. package/lib/cjs/Bubble.js +219 -248
  11. package/lib/cjs/Bubble.js.map +1 -1
  12. package/lib/cjs/CompactHorizontalBar.js +448 -482
  13. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  14. package/lib/cjs/Donut.js +349 -396
  15. package/lib/cjs/Donut.js.map +1 -1
  16. package/lib/cjs/Dots.js +67 -86
  17. package/lib/cjs/Dots.js.map +1 -1
  18. package/lib/cjs/GroupBar.js +78 -93
  19. package/lib/cjs/GroupBar.js.map +1 -1
  20. package/lib/cjs/HorizontalBar.js +149 -167
  21. package/lib/cjs/HorizontalBar.js.map +1 -1
  22. package/lib/cjs/Hover.js +178 -207
  23. package/lib/cjs/Hover.js.map +1 -1
  24. package/lib/cjs/Line.js +182 -222
  25. package/lib/cjs/Line.js.map +1 -1
  26. package/lib/cjs/Pattern.js +124 -126
  27. package/lib/cjs/Pattern.js.map +1 -1
  28. package/lib/cjs/Plot.js +100 -126
  29. package/lib/cjs/Plot.js.map +1 -1
  30. package/lib/cjs/Radar.js +576 -681
  31. package/lib/cjs/Radar.js.map +1 -1
  32. package/lib/cjs/RadialTree.js +518 -571
  33. package/lib/cjs/RadialTree.js.map +1 -1
  34. package/lib/cjs/Reference.js +147 -178
  35. package/lib/cjs/Reference.js.map +1 -1
  36. package/lib/cjs/ResponsiveContainer.js +64 -82
  37. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  38. package/lib/cjs/ScatterPlot.js +169 -199
  39. package/lib/cjs/ScatterPlot.js.map +1 -1
  40. package/lib/cjs/StackBar.js +135 -177
  41. package/lib/cjs/StackBar.js.map +1 -1
  42. package/lib/cjs/StackedArea.js +60 -73
  43. package/lib/cjs/StackedArea.js.map +1 -1
  44. package/lib/cjs/Tooltip.js +193 -208
  45. package/lib/cjs/Tooltip.js.map +1 -1
  46. package/lib/cjs/Venn.js +182 -217
  47. package/lib/cjs/Venn.js.map +1 -1
  48. package/lib/cjs/a11y/DataAccessibilityTable.js +45 -83
  49. package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
  50. package/lib/cjs/a11y/PlotA11yModule.js +37 -97
  51. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  52. package/lib/cjs/a11y/PlotA11yView.js +97 -91
  53. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  54. package/lib/cjs/a11y/bezier.js +17 -23
  55. package/lib/cjs/a11y/bezier.js.map +1 -1
  56. package/lib/cjs/a11y/focus.js +16 -16
  57. package/lib/cjs/a11y/focus.js.map +1 -1
  58. package/lib/cjs/a11y/hints.js +72 -75
  59. package/lib/cjs/a11y/hints.js.map +1 -1
  60. package/lib/cjs/a11y/insights.js +354 -525
  61. package/lib/cjs/a11y/insights.js.map +1 -1
  62. package/lib/cjs/a11y/intl.js +5 -5
  63. package/lib/cjs/a11y/intl.js.map +1 -1
  64. package/lib/cjs/a11y/locale.js +12 -19
  65. package/lib/cjs/a11y/locale.js.map +1 -1
  66. package/lib/cjs/a11y/serialize.js +164 -203
  67. package/lib/cjs/a11y/serialize.js.map +1 -1
  68. package/lib/cjs/a11y/summarize.js +7 -6
  69. package/lib/cjs/a11y/summarize.js.map +1 -1
  70. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +16 -16
  71. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  72. package/lib/cjs/a11y/translations/module/de.json +2 -2
  73. package/lib/cjs/a11y/translations/module/en.json +2 -2
  74. package/lib/cjs/a11y/translations/module/es.json +2 -2
  75. package/lib/cjs/a11y/translations/module/fr.json +2 -2
  76. package/lib/cjs/a11y/translations/module/it.json +2 -2
  77. package/lib/cjs/a11y/translations/module/ja.json +2 -2
  78. package/lib/cjs/a11y/translations/module/ko.json +2 -2
  79. package/lib/cjs/a11y/translations/module/nl.json +2 -2
  80. package/lib/cjs/a11y/translations/module/pl.json +2 -2
  81. package/lib/cjs/a11y/translations/module/pt.json +2 -2
  82. package/lib/cjs/a11y/translations/module/sv.json +2 -2
  83. package/lib/cjs/a11y/translations/module/tr.json +2 -2
  84. package/lib/cjs/a11y/translations/module/vi.json +2 -2
  85. package/lib/cjs/a11y/translations/module/zh.json +2 -2
  86. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +16 -16
  87. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  88. package/lib/cjs/color.js +1 -1
  89. package/lib/cjs/color.js.map +1 -1
  90. package/lib/cjs/component/Chart/AbstractChart.js +421 -466
  91. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  92. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  93. package/lib/cjs/component/Chart/AreaChart.js +97 -115
  94. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  95. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  96. package/lib/cjs/component/Chart/BarChart.js +229 -216
  97. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  98. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  99. package/lib/cjs/component/Chart/BubbleChart.js +114 -136
  100. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  101. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  102. package/lib/cjs/component/Chart/CigaretteChart.js +280 -305
  103. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  104. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +76 -108
  105. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  106. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  107. package/lib/cjs/component/Chart/DonutChart.js +80 -95
  108. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  109. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  110. package/lib/cjs/component/Chart/HistogramChart.js +126 -148
  111. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  112. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  113. package/lib/cjs/component/Chart/LineChart.js +95 -113
  114. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  115. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  116. package/lib/cjs/component/Chart/RadarChart.js +84 -110
  117. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  118. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  119. package/lib/cjs/component/Chart/ScatterPlotChart.js +119 -143
  120. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  121. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  122. package/lib/cjs/component/Chart/VennChart.js +103 -122
  123. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  124. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  125. package/lib/cjs/component/Chart/index.js +2 -2
  126. package/lib/cjs/component/Chart/index.js.map +1 -1
  127. package/lib/cjs/component/ChartLegend/BaseLegend.js +72 -105
  128. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  129. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  130. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +58 -70
  131. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  132. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  133. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +208 -221
  134. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  135. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  136. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  137. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +63 -73
  138. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  139. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  140. package/lib/cjs/component/ChartLegend/index.js +4 -4
  141. package/lib/cjs/component/ChartLegend/index.js.map +1 -1
  142. package/lib/cjs/component/Cigarette/Cigarette.js +115 -129
  143. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  144. package/lib/cjs/component/StackGroupBar/StackGroupBar.js +107 -137
  145. package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
  146. package/lib/cjs/component/SvgElement.js +7 -7
  147. package/lib/cjs/component/SvgElement.js.map +1 -1
  148. package/lib/cjs/createElement.js +66 -65
  149. package/lib/cjs/createElement.js.map +1 -1
  150. package/lib/cjs/index.js +62 -62
  151. package/lib/cjs/style/axis.shadow.css +3 -0
  152. package/lib/cjs/style/plot.shadow.css +1 -3
  153. package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
  154. package/lib/cjs/style/plotA11yView.shadow.css +13 -26
  155. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +15 -15
  156. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  157. package/lib/cjs/types/Axis.d.js.map +1 -1
  158. package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
  159. package/lib/cjs/types/Hover.d.js.map +1 -1
  160. package/lib/cjs/types/Line.d.js.map +1 -1
  161. package/lib/cjs/types/Plot.d.js.map +1 -1
  162. package/lib/cjs/types/Radar.d.js.map +1 -1
  163. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
  164. package/lib/cjs/types/Tooltip.d.js.map +1 -1
  165. package/lib/cjs/types/Venn.d.js.map +1 -1
  166. package/lib/cjs/types/index.d.js +80 -80
  167. package/lib/cjs/types/index.d.js.map +1 -1
  168. package/lib/cjs/utils.js +122 -145
  169. package/lib/cjs/utils.js.map +1 -1
  170. package/lib/es6/AnimatedClipPath.js +24 -37
  171. package/lib/es6/AnimatedClipPath.js.map +1 -1
  172. package/lib/es6/Area.js +179 -215
  173. package/lib/es6/Area.js.map +1 -1
  174. package/lib/es6/Axis.js +242 -321
  175. package/lib/es6/Axis.js.map +1 -1
  176. package/lib/es6/Bar.js +154 -177
  177. package/lib/es6/Bar.js.map +1 -1
  178. package/lib/es6/Bubble.js +206 -235
  179. package/lib/es6/Bubble.js.map +1 -1
  180. package/lib/es6/CompactHorizontalBar.js +433 -467
  181. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  182. package/lib/es6/Donut.js +337 -384
  183. package/lib/es6/Donut.js.map +1 -1
  184. package/lib/es6/Dots.js +60 -79
  185. package/lib/es6/Dots.js.map +1 -1
  186. package/lib/es6/GroupBar.js +74 -89
  187. package/lib/es6/GroupBar.js.map +1 -1
  188. package/lib/es6/HorizontalBar.js +141 -159
  189. package/lib/es6/HorizontalBar.js.map +1 -1
  190. package/lib/es6/Hover.js +174 -203
  191. package/lib/es6/Hover.js.map +1 -1
  192. package/lib/es6/Line.js +173 -213
  193. package/lib/es6/Line.js.map +1 -1
  194. package/lib/es6/Pattern.js +68 -74
  195. package/lib/es6/Pattern.js.map +1 -1
  196. package/lib/es6/Plot.js +95 -121
  197. package/lib/es6/Plot.js.map +1 -1
  198. package/lib/es6/Radar.js +554 -659
  199. package/lib/es6/Radar.js.map +1 -1
  200. package/lib/es6/RadialTree.js +500 -553
  201. package/lib/es6/RadialTree.js.map +1 -1
  202. package/lib/es6/Reference.js +140 -171
  203. package/lib/es6/Reference.js.map +1 -1
  204. package/lib/es6/ResponsiveContainer.js +58 -76
  205. package/lib/es6/ResponsiveContainer.js.map +1 -1
  206. package/lib/es6/ScatterPlot.js +161 -191
  207. package/lib/es6/ScatterPlot.js.map +1 -1
  208. package/lib/es6/StackBar.js +130 -172
  209. package/lib/es6/StackBar.js.map +1 -1
  210. package/lib/es6/StackedArea.js +56 -69
  211. package/lib/es6/StackedArea.js.map +1 -1
  212. package/lib/es6/Tooltip.js +183 -198
  213. package/lib/es6/Tooltip.js.map +1 -1
  214. package/lib/es6/Venn.js +169 -204
  215. package/lib/es6/Venn.js.map +1 -1
  216. package/lib/es6/a11y/DataAccessibilityTable.js +41 -80
  217. package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
  218. package/lib/es6/a11y/PlotA11yModule.js +35 -95
  219. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  220. package/lib/es6/a11y/PlotA11yView.js +89 -84
  221. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  222. package/lib/es6/a11y/bezier.js +16 -23
  223. package/lib/es6/a11y/bezier.js.map +1 -1
  224. package/lib/es6/a11y/focus.js +15 -16
  225. package/lib/es6/a11y/focus.js.map +1 -1
  226. package/lib/es6/a11y/hints.js +67 -73
  227. package/lib/es6/a11y/hints.js.map +1 -1
  228. package/lib/es6/a11y/insights.js +353 -524
  229. package/lib/es6/a11y/insights.js.map +1 -1
  230. package/lib/es6/a11y/intl.js +4 -5
  231. package/lib/es6/a11y/intl.js.map +1 -1
  232. package/lib/es6/a11y/locale.js +11 -18
  233. package/lib/es6/a11y/locale.js.map +1 -1
  234. package/lib/es6/a11y/serialize.js +162 -203
  235. package/lib/es6/a11y/serialize.js.map +1 -1
  236. package/lib/es6/a11y/summarize.js +6 -6
  237. package/lib/es6/a11y/summarize.js.map +1 -1
  238. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +15 -15
  239. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  240. package/lib/es6/a11y/translations/module/de.json +2 -2
  241. package/lib/es6/a11y/translations/module/en.json +2 -2
  242. package/lib/es6/a11y/translations/module/es.json +2 -2
  243. package/lib/es6/a11y/translations/module/fr.json +2 -2
  244. package/lib/es6/a11y/translations/module/it.json +2 -2
  245. package/lib/es6/a11y/translations/module/ja.json +2 -2
  246. package/lib/es6/a11y/translations/module/ko.json +2 -2
  247. package/lib/es6/a11y/translations/module/nl.json +2 -2
  248. package/lib/es6/a11y/translations/module/pl.json +2 -2
  249. package/lib/es6/a11y/translations/module/pt.json +2 -2
  250. package/lib/es6/a11y/translations/module/sv.json +2 -2
  251. package/lib/es6/a11y/translations/module/tr.json +2 -2
  252. package/lib/es6/a11y/translations/module/vi.json +2 -2
  253. package/lib/es6/a11y/translations/module/zh.json +2 -2
  254. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +15 -15
  255. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  256. package/lib/es6/color.js +1 -1
  257. package/lib/es6/color.js.map +1 -1
  258. package/lib/es6/component/Chart/AbstractChart.js +416 -462
  259. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  260. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  261. package/lib/es6/component/Chart/AreaChart.js +92 -111
  262. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  263. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  264. package/lib/es6/component/Chart/BarChart.js +225 -213
  265. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  266. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  267. package/lib/es6/component/Chart/BubbleChart.js +109 -132
  268. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  269. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  270. package/lib/es6/component/Chart/CigaretteChart.js +276 -301
  271. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  272. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +70 -103
  273. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  274. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  275. package/lib/es6/component/Chart/DonutChart.js +74 -90
  276. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  277. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  278. package/lib/es6/component/Chart/HistogramChart.js +121 -144
  279. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  280. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  281. package/lib/es6/component/Chart/LineChart.js +90 -109
  282. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  283. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  284. package/lib/es6/component/Chart/RadarChart.js +80 -107
  285. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  286. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  287. package/lib/es6/component/Chart/ScatterPlotChart.js +113 -138
  288. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  289. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  290. package/lib/es6/component/Chart/VennChart.js +97 -117
  291. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  292. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  293. package/lib/es6/component/ChartLegend/BaseLegend.js +70 -104
  294. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  295. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  296. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +53 -65
  297. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  298. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  299. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +198 -211
  300. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  301. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
  302. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  303. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +58 -68
  304. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  305. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  306. package/lib/es6/component/Cigarette/Cigarette.js +108 -122
  307. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  308. package/lib/es6/component/StackGroupBar/StackGroupBar.js +100 -130
  309. package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
  310. package/lib/es6/component/SvgElement.js +4 -5
  311. package/lib/es6/component/SvgElement.js.map +1 -1
  312. package/lib/es6/createElement.js +55 -54
  313. package/lib/es6/createElement.js.map +1 -1
  314. package/lib/es6/style/axis.shadow.css +3 -0
  315. package/lib/es6/style/plot.shadow.css +1 -3
  316. package/lib/es6/style/plotA11yModule.shadow.css +10 -11
  317. package/lib/es6/style/plotA11yView.shadow.css +13 -26
  318. package/lib/es6/translations/__intergalactic-dynamic-locales.js +14 -14
  319. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  320. package/lib/es6/types/Axis.d.js.map +1 -1
  321. package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
  322. package/lib/es6/types/Hover.d.js.map +1 -1
  323. package/lib/es6/types/Line.d.js.map +1 -1
  324. package/lib/es6/types/Plot.d.js.map +1 -1
  325. package/lib/es6/types/Radar.d.js.map +1 -1
  326. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
  327. package/lib/es6/types/Tooltip.d.js.map +1 -1
  328. package/lib/es6/types/Venn.d.js.map +1 -1
  329. package/lib/es6/utils.js +105 -144
  330. package/lib/es6/utils.js.map +1 -1
  331. package/lib/esm/AnimatedClipPath.mjs +24 -36
  332. package/lib/esm/Area.mjs +178 -149
  333. package/lib/esm/Axis.mjs +241 -242
  334. package/lib/esm/Bar.mjs +155 -137
  335. package/lib/esm/Bubble.mjs +205 -171
  336. package/lib/esm/CompactHorizontalBar.mjs +428 -383
  337. package/lib/esm/Donut.mjs +315 -266
  338. package/lib/esm/Dots.mjs +60 -49
  339. package/lib/esm/GroupBar.mjs +71 -75
  340. package/lib/esm/HorizontalBar.mjs +142 -120
  341. package/lib/esm/Hover.mjs +173 -163
  342. package/lib/esm/Line.mjs +174 -145
  343. package/lib/esm/Pattern.mjs +67 -63
  344. package/lib/esm/Plot.mjs +98 -95
  345. package/lib/esm/Radar.mjs +550 -498
  346. package/lib/esm/RadialTree.mjs +512 -416
  347. package/lib/esm/Reference.mjs +137 -122
  348. package/lib/esm/ResponsiveContainer.mjs +58 -69
  349. package/lib/esm/ScatterPlot.mjs +163 -162
  350. package/lib/esm/StackBar.mjs +126 -147
  351. package/lib/esm/StackedArea.mjs +53 -61
  352. package/lib/esm/Tooltip.mjs +185 -175
  353. package/lib/esm/Venn.mjs +170 -170
  354. package/lib/esm/a11y/DataAccessibilityTable.mjs +46 -73
  355. package/lib/esm/a11y/PlotA11yModule.mjs +37 -80
  356. package/lib/esm/a11y/PlotA11yView.mjs +99 -74
  357. package/lib/esm/a11y/bezier.mjs +16 -23
  358. package/lib/esm/a11y/focus.mjs +15 -16
  359. package/lib/esm/a11y/hints.mjs +65 -71
  360. package/lib/esm/a11y/insights.mjs +347 -495
  361. package/lib/esm/a11y/intl.mjs +4 -5
  362. package/lib/esm/a11y/locale.mjs +12 -14
  363. package/lib/esm/a11y/serialize.mjs +139 -152
  364. package/lib/esm/a11y/summarize.mjs +3 -3
  365. package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +1 -1
  366. package/lib/esm/a11y/translations/module/de.json.mjs +2 -4
  367. package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
  368. package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
  369. package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
  370. package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
  371. package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
  372. package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
  373. package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
  374. package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
  375. package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
  376. package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
  377. package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
  378. package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
  379. package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
  380. package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +1 -1
  381. package/lib/esm/color.mjs +1 -1
  382. package/lib/esm/component/Chart/AbstractChart.mjs +422 -415
  383. package/lib/esm/component/Chart/AreaChart.mjs +92 -91
  384. package/lib/esm/component/Chart/BarChart.mjs +225 -177
  385. package/lib/esm/component/Chart/BubbleChart.mjs +110 -118
  386. package/lib/esm/component/Chart/CigaretteChart.mjs +277 -268
  387. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +70 -87
  388. package/lib/esm/component/Chart/DonutChart.mjs +74 -84
  389. package/lib/esm/component/Chart/HistogramChart.mjs +121 -117
  390. package/lib/esm/component/Chart/LineChart.mjs +90 -89
  391. package/lib/esm/component/Chart/RadarChart.mjs +81 -97
  392. package/lib/esm/component/Chart/ScatterPlotChart.mjs +113 -111
  393. package/lib/esm/component/Chart/VennChart.mjs +98 -111
  394. package/lib/esm/component/ChartLegend/BaseLegend.mjs +75 -97
  395. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +54 -55
  396. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +194 -165
  397. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +1 -1
  398. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +60 -58
  399. package/lib/esm/component/Cigarette/Cigarette.mjs +109 -99
  400. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +97 -111
  401. package/lib/esm/component/SvgElement.mjs +4 -4
  402. package/lib/esm/createElement.mjs +54 -37
  403. package/lib/esm/style/axis.shadow.css +3 -0
  404. package/lib/esm/style/plot.shadow.css +1 -3
  405. package/lib/esm/style/plotA11yModule.shadow.css +10 -11
  406. package/lib/esm/style/plotA11yView.shadow.css +13 -26
  407. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +1 -1
  408. package/lib/esm/utils.mjs +103 -138
  409. package/lib/types/Axis.d.ts +4 -0
  410. package/lib/types/CompactHorizontalBar.d.ts +1 -1
  411. package/lib/types/Hover.d.ts +1 -1
  412. package/lib/types/Line.d.ts +1 -1
  413. package/lib/types/Plot.d.ts +1 -1
  414. package/lib/types/Radar.d.ts +1 -1
  415. package/lib/types/ResponsiveContainer.d.ts +1 -1
  416. package/lib/types/Tooltip.d.ts +1 -3
  417. package/lib/types/Venn.d.ts +1 -1
  418. package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
  419. package/lib/types/a11y/PlotA11yView.d.ts +12 -1
  420. package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
  421. package/lib/types/component/Chart/AbstractChart.d.ts +1 -1
  422. package/lib/types/component/Chart/AbstractChart.type.d.ts +1 -1
  423. package/lib/types/component/Chart/AreaChart.type.d.ts +1 -1
  424. package/lib/types/component/Chart/BarChart.type.d.ts +1 -1
  425. package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
  426. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
  427. package/lib/types/component/Chart/DonutChart.type.d.ts +1 -1
  428. package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -1
  429. package/lib/types/component/Chart/LineChart.type.d.ts +1 -1
  430. package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
  431. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
  432. package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
  433. package/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
  434. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
  435. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +1 -1
  436. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +1 -1
  437. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
  438. package/lib/types/utils.d.ts +10 -10
  439. package/package.json +11 -14
@@ -1,15 +1,8 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
- import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
5
- import _createClass from "@babel/runtime/helpers/esm/createClass";
6
- import _callSuper from "@babel/runtime/helpers/esm/callSuper";
7
- import _inherits from "@babel/runtime/helpers/esm/inherits";
8
1
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- import { sstyled, assignProps, Component } from "@semcore/core";
2
+ import { Component, sstyled, assignProps } from "@semcore/core";
3
+ import { Flex, Box } from "@semcore/base-components";
10
4
  import { extractAriaProps } from "@semcore/core/lib/utils/ariaProps";
11
5
  import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
12
- import { Flex, Box } from "@semcore/flex-box";
13
6
  import { Text } from "@semcore/typography";
14
7
  import React, { Fragment } from "react";
15
8
  import Plot from "../../Plot.mjs";
@@ -19,470 +12,484 @@ import { YAxis, XAxis } from "../../Axis.mjs";
19
12
  import { interpolateValue } from "../../utils.mjs";
20
13
  import { makeDataHintsContainer } from "../../a11y/hints.mjs";
21
14
  /*!__reshadow-styles__:"../../style/abstract-chart.shadow.css"*/
22
- var style = (
15
+ const style = (
23
16
  /*__reshadow_css_start__*/
24
17
  (sstyled.insert(
25
18
  /*__inner_css_start__*/
26
- ".___STooltipChildrenWrapper_1xuth_gg_{display:grid;grid-column-gap:var(--intergalactic-spacing-2x, 8px);-moz-column-gap:var(--intergalactic-spacing-2x, 8px);column-gap:var(--intergalactic-spacing-2x, 8px)}.___STooltipChildrenWrapper_1xuth_gg_._columnsCount_2_1xuth_gg_{grid-template-columns:auto minmax(28px,max-content)}.___STooltipChildrenWrapper_1xuth_gg_._columnsCount_3_1xuth_gg_{grid-template-columns:auto minmax(28px,max-content) minmax(28px,max-content)}",
19
+ ".___STooltipChildrenWrapper_135h8_gg_{display:grid;grid-column-gap:var(--intergalactic-spacing-2x, 8px);-moz-column-gap:var(--intergalactic-spacing-2x, 8px);column-gap:var(--intergalactic-spacing-2x, 8px)}.___STooltipChildrenWrapper_135h8_gg_._columnsCount_2_135h8_gg_{grid-template-columns:auto minmax(28px,max-content)}.___STooltipChildrenWrapper_135h8_gg_._columnsCount_3_135h8_gg_{grid-template-columns:auto minmax(28px,max-content) minmax(28px,max-content)}",
27
20
  /*__inner_css_end__*/
28
- "1xuth_gg_"
21
+ "135h8_gg_"
29
22
  ), /*__reshadow_css_end__*/
30
23
  {
31
- "__STooltipChildrenWrapper": "___STooltipChildrenWrapper_1xuth_gg_",
32
- "_columnsCount_2": "_columnsCount_2_1xuth_gg_",
33
- "_columnsCount_3": "_columnsCount_3_1xuth_gg_"
24
+ "__STooltipChildrenWrapper": "___STooltipChildrenWrapper_135h8_gg_",
25
+ "_columnsCount_2": "_columnsCount_2_135h8_gg_",
26
+ "_columnsCount_3": "_columnsCount_3_135h8_gg_"
34
27
  })
35
28
  );
36
- var NOT_A_VALUE = "n/a";
37
- var AbstractChart = /* @__PURE__ */ (function(_Component) {
38
- function AbstractChart2(props) {
39
- var _this;
40
- _classCallCheck(this, AbstractChart2);
41
- _this = _callSuper(this, AbstractChart2, [props]);
42
- _defineProperty(_this, "plotPadding", 6);
43
- _defineProperty(_this, "dataHints", makeDataHintsContainer());
44
- _defineProperty(_this, "state", {
45
- dataDefinitions: _this.getDefaultDataDefinitions(),
29
+ const NOT_A_VALUE = "n/a";
30
+ class AbstractChart extends Component {
31
+ constructor(props) {
32
+ super(props);
33
+ _defineProperty(this, "plotPadding", 6);
34
+ _defineProperty(this, "dataHints", makeDataHintsContainer());
35
+ _defineProperty(this, "state", {
36
+ dataDefinitions: this.getDefaultDataDefinitions(),
46
37
  highlightedLine: -1,
47
38
  withTrend: false
48
39
  });
49
- _this.setHighlightedLine = _this.setHighlightedLine.bind(_this);
50
- _this.handleChangeVisible = _this.handleChangeVisible.bind(_this);
51
- _this.handleMouseEnter = _this.handleMouseEnter.bind(_this);
52
- _this.handleMouseLeave = _this.handleMouseLeave.bind(_this);
53
- _this.resolveColor = _this.resolveColor.bind(_this);
54
- _this.tooltipValueFormatter = _this.tooltipValueFormatter.bind(_this);
55
- _this.handleWithTrendChange = _this.handleWithTrendChange.bind(_this);
56
- return _this;
40
+ this.setHighlightedLine = this.setHighlightedLine.bind(this);
41
+ this.handleChangeVisible = this.handleChangeVisible.bind(this);
42
+ this.handleMouseEnter = this.handleMouseEnter.bind(this);
43
+ this.handleMouseLeave = this.handleMouseLeave.bind(this);
44
+ this.resolveColor = this.resolveColor.bind(this);
45
+ this.tooltipValueFormatter = this.tooltipValueFormatter.bind(this);
46
+ this.handleWithTrendChange = this.handleWithTrendChange.bind(this);
57
47
  }
58
- _inherits(AbstractChart2, _Component);
59
- return _createClass(AbstractChart2, [{
60
- key: "componentDidUpdate",
61
- value: function componentDidUpdate(prevProps) {
62
- if (prevProps.data !== this.props.data || prevProps.legendProps !== this.props.legendProps) {
63
- this.setState({
64
- dataDefinitions: this.getDefaultDataDefinitions()
65
- });
66
- }
48
+ componentDidUpdate(prevProps) {
49
+ if (prevProps.data !== this.props.data || prevProps.legendProps !== this.props.legendProps) {
50
+ this.setState({
51
+ dataDefinitions: this.getDefaultDataDefinitions()
52
+ });
67
53
  }
68
- }, {
69
- key: "getDefaultDataDefinitions",
70
- value: function getDefaultDataDefinitions() {
71
- var _this2 = this;
72
- var _this$props = this.props, data = _this$props.data, legendProps = _this$props.legendProps;
73
- return this.dataKeys.map(function(key, index) {
74
- var _legendProps$legendMa, _legendData$label, _legendData$icon, _legendData$defaultCh;
75
- var legendData = legendProps === null || legendProps === void 0 || (_legendProps$legendMa = legendProps.legendMap) === null || _legendProps$legendMa === void 0 ? void 0 : _legendProps$legendMa[key];
76
- var dataDefinition = {
77
- id: key,
78
- label: (_legendData$label = legendData === null || legendData === void 0 ? void 0 : legendData.label) !== null && _legendData$label !== void 0 ? _legendData$label : key,
79
- icon: (_legendData$icon = legendData === null || legendData === void 0 ? void 0 : legendData.icon) !== null && _legendData$icon !== void 0 ? _legendData$icon : void 0,
80
- checked: (_legendData$defaultCh = legendData === null || legendData === void 0 ? void 0 : legendData.defaultChecked) !== null && _legendData$defaultCh !== void 0 ? _legendData$defaultCh : true,
81
- color: _this2.resolveColor(key, index),
82
- columns: []
83
- };
84
- if (legendData !== null && legendData !== void 0 && legendData.additionalInfo || legendData !== null && legendData !== void 0 && legendData.count) {
85
- dataDefinition.additionalInfo = legendData.additionalInfo ? {
86
- label: legendData.additionalInfo
87
- } : legendData.count ? {
88
- count: legendData.count
89
- } : void 0;
54
+ }
55
+ getDefaultDataDefinitions() {
56
+ const {
57
+ data,
58
+ legendProps
59
+ } = this.props;
60
+ return this.dataKeys.map((key, index) => {
61
+ var _a;
62
+ const legendData = (_a = legendProps == null ? void 0 : legendProps.legendMap) == null ? void 0 : _a[key];
63
+ const dataDefinition = {
64
+ id: key,
65
+ label: (legendData == null ? void 0 : legendData.label) ?? key,
66
+ icon: (legendData == null ? void 0 : legendData.icon) ?? void 0,
67
+ checked: (legendData == null ? void 0 : legendData.defaultChecked) ?? true,
68
+ color: this.resolveColor(key, index),
69
+ columns: []
70
+ };
71
+ if ((legendData == null ? void 0 : legendData.additionalInfo) || (legendData == null ? void 0 : legendData.count)) {
72
+ dataDefinition.additionalInfo = legendData.additionalInfo ? {
73
+ label: legendData.additionalInfo
74
+ } : legendData.count ? {
75
+ count: legendData.count
76
+ } : void 0;
77
+ }
78
+ if (legendData && "columns" in legendData) {
79
+ dataDefinition.columns = legendData.columns || [];
80
+ } else if (!Array.isArray(data)) {
81
+ let value = void 0;
82
+ let dataValue = data[key];
83
+ if (data instanceof Map) {
84
+ dataValue = data.get(key);
90
85
  }
91
- if (legendData && "columns" in legendData) {
92
- dataDefinition.columns = legendData.columns || [];
93
- } else if (!Array.isArray(data)) {
94
- var value = void 0;
95
- var dataValue = data[key];
96
- if (data instanceof Map) {
97
- dataValue = data.get(key);
98
- }
99
- if (dataValue !== interpolateValue) {
100
- value = Number(dataValue);
101
- }
102
- var total = Object.values(data).reduce(function(sum, i) {
103
- if (i !== interpolateValue) {
104
- return sum + Number(i);
105
- }
106
- return sum;
107
- }, 0);
108
- var percent = value !== void 0 ? (value / total * 100).toFixed(2) : void 0;
109
- dataDefinition.columns = [/* @__PURE__ */ React.createElement(Text, {
110
- key: "".concat(key, "_percent"),
111
- use: "secondary"
112
- }, percent !== void 0 ? "".concat(percent, "%") : ""), /* @__PURE__ */ React.createElement(Text, {
113
- key: "".concat(key, "_value"),
114
- use: value ? "primary" : "secondary"
115
- }, value !== null && value !== void 0 ? value : NOT_A_VALUE)];
86
+ if (dataValue !== interpolateValue) {
87
+ value = Number(dataValue);
116
88
  }
117
- return dataDefinition;
118
- });
119
- }
120
- }, {
121
- key: "dataKeys",
122
- get: function get() {
123
- var _this$props2 = this.props, data = _this$props2.data, groupKey = _this$props2.groupKey;
124
- var dataKeys;
125
- if (Array.isArray(data) && groupKey) {
126
- dataKeys = Object.keys(data[0]).filter(function(key) {
127
- return key !== groupKey;
128
- });
129
- } else {
130
- dataKeys = Object.keys(data);
89
+ const total = Object.values(data).reduce((sum, i) => {
90
+ if (i !== interpolateValue) {
91
+ return sum + Number(i);
92
+ }
93
+ return sum;
94
+ }, 0);
95
+ const percent = value !== void 0 ? (value / total * 100).toFixed(2) : void 0;
96
+ dataDefinition.columns = [/* @__PURE__ */ React.createElement(Text, {
97
+ key: `${key}_percent`,
98
+ use: "secondary"
99
+ }, percent !== void 0 ? `${percent}%` : ""), /* @__PURE__ */ React.createElement(Text, {
100
+ key: `${key}_value`,
101
+ use: value ? "primary" : "secondary"
102
+ }, value ?? NOT_A_VALUE)];
131
103
  }
132
- return dataKeys;
104
+ return dataDefinition;
105
+ });
106
+ }
107
+ get dataKeys() {
108
+ const {
109
+ data,
110
+ groupKey
111
+ } = this.props;
112
+ let dataKeys;
113
+ if (Array.isArray(data) && groupKey) {
114
+ dataKeys = Object.keys(data[0]).filter((key) => key !== groupKey);
115
+ } else {
116
+ dataKeys = Object.keys(data);
133
117
  }
134
- }, {
135
- key: "xTicks",
136
- get: function get() {
137
- var _this$asProps = this.asProps, data = _this$asProps.data, invertAxis = _this$asProps.invertAxis, xTicksCount = _this$asProps.xTicksCount, yTicksCount = _this$asProps.yTicksCount;
138
- var scale = this.xScale;
139
- if (Array.isArray(data) && "ticks" in scale) {
140
- if (invertAxis && yTicksCount) {
141
- return scale.ticks(yTicksCount);
142
- } else if (xTicksCount) {
143
- return scale.ticks(xTicksCount);
144
- }
145
- return void 0;
118
+ return dataKeys;
119
+ }
120
+ get xTicks() {
121
+ const {
122
+ data,
123
+ invertAxis,
124
+ xTicksCount,
125
+ yTicksCount
126
+ } = this.asProps;
127
+ const scale = this.xScale;
128
+ if (Array.isArray(data) && "ticks" in scale) {
129
+ if (invertAxis && yTicksCount) {
130
+ return scale.ticks(yTicksCount);
131
+ } else if (xTicksCount) {
132
+ return scale.ticks(xTicksCount);
146
133
  }
147
134
  return void 0;
148
135
  }
149
- }, {
150
- key: "yTicks",
151
- get: function get() {
152
- var _this$asProps2 = this.asProps, data = _this$asProps2.data, invertAxis = _this$asProps2.invertAxis, xTicksCount = _this$asProps2.xTicksCount, yTicksCount = _this$asProps2.yTicksCount;
153
- var scale = this.yScale;
154
- if (Array.isArray(data) && "ticks" in scale) {
155
- if (invertAxis && xTicksCount) {
156
- return scale.ticks(xTicksCount);
157
- } else if (yTicksCount) {
158
- return scale.ticks(yTicksCount);
159
- }
160
- return void 0;
136
+ return void 0;
137
+ }
138
+ get yTicks() {
139
+ const {
140
+ data,
141
+ invertAxis,
142
+ xTicksCount,
143
+ yTicksCount
144
+ } = this.asProps;
145
+ const scale = this.yScale;
146
+ if (Array.isArray(data) && "ticks" in scale) {
147
+ if (invertAxis && xTicksCount) {
148
+ return scale.ticks(xTicksCount);
149
+ } else if (yTicksCount) {
150
+ return scale.ticks(yTicksCount);
161
151
  }
162
152
  return void 0;
163
153
  }
164
- }, {
165
- key: "flatValues",
166
- get: function get() {
167
- var _this$asProps3 = this.asProps, data = _this$asProps3.data, groupKey = _this$asProps3.groupKey;
168
- var values = Array.isArray(data) ? data : Object.values(data);
169
- var flatValues = values.reduce(function(result, item) {
170
- if (!groupKey && typeof item === "number") {
171
- result.add(item);
172
- } else {
173
- Object.entries(item).forEach(function(_ref5) {
174
- var _ref6 = _slicedToArray(_ref5, 2), key = _ref6[0], value = _ref6[1];
175
- if (key !== groupKey && typeof value === "number") {
176
- result.add(value);
177
- }
178
- });
179
- }
180
- return result;
181
- }, /* @__PURE__ */ new Set());
182
- return flatValues;
183
- }
184
- }, {
185
- key: "maxStackedValue",
186
- get: function get() {
187
- var _this$asProps4 = this.asProps, data = _this$asProps4.data, groupKey = _this$asProps4.groupKey;
188
- if (!Array.isArray(data)) {
189
- var _max = Object.values(data).reduce(function(sum, val) {
190
- if (typeof val === "number") {
191
- sum = sum + val;
154
+ return void 0;
155
+ }
156
+ get flatValues() {
157
+ const {
158
+ data,
159
+ groupKey
160
+ } = this.asProps;
161
+ const values = Array.isArray(data) ? data : Object.values(data);
162
+ const flatValues = values.reduce((result, item) => {
163
+ if (!groupKey && typeof item === "number") {
164
+ result.add(item);
165
+ } else {
166
+ Object.entries(item).forEach(([key, value]) => {
167
+ if (key !== groupKey && typeof value === "number") {
168
+ result.add(value);
192
169
  }
193
- return sum;
194
- }, 0);
195
- return _max;
170
+ });
196
171
  }
197
- var max = data.reduce(function(max2, item) {
198
- var barSum = Object.entries(item).reduce(function(sum, _ref7) {
199
- var _ref8 = _slicedToArray(_ref7, 2), key = _ref8[0], val = _ref8[1];
200
- if (key === groupKey) {
201
- return sum;
202
- }
203
- if (typeof val === "number") {
204
- return sum + val;
205
- }
206
- if (val instanceof Date && !Number.isNaN(val.getMilliseconds())) {
207
- return sum + val.getMilliseconds();
208
- }
209
- return sum;
210
- }, 0);
211
- if (barSum > max2) {
212
- max2 = barSum;
172
+ return result;
173
+ }, /* @__PURE__ */ new Set());
174
+ return flatValues;
175
+ }
176
+ get maxStackedValue() {
177
+ const {
178
+ data,
179
+ groupKey
180
+ } = this.asProps;
181
+ if (!Array.isArray(data)) {
182
+ const max2 = Object.values(data).reduce((sum, val) => {
183
+ if (typeof val === "number") {
184
+ sum = sum + val;
213
185
  }
214
- return max2;
186
+ return sum;
215
187
  }, 0);
216
- return max;
188
+ return max2;
217
189
  }
218
- }, {
219
- key: "totalValue",
220
- value: function totalValue(data) {
221
- var dataDefinitions = this.state.dataDefinitions;
222
- var allNotAValue = true;
223
- var total = dataDefinitions.reduce(function(sum, legendItem) {
224
- var item = data[legendItem.id];
225
- if (item === null) {
226
- allNotAValue = false;
190
+ const max = data.reduce((max2, item) => {
191
+ const barSum = Object.entries(item).reduce((sum, [key, val]) => {
192
+ if (key === groupKey) {
227
193
  return sum;
228
194
  }
229
- if (typeof item === "number") {
230
- allNotAValue = false;
231
- return sum + item;
195
+ if (typeof val === "number") {
196
+ return sum + val;
232
197
  }
233
- if (item instanceof Date && !Number.isNaN(item.getMilliseconds())) {
234
- allNotAValue = false;
235
- return sum + item.getMilliseconds();
198
+ if (val instanceof Date && !Number.isNaN(val.getMilliseconds())) {
199
+ return sum + val.getMilliseconds();
236
200
  }
237
201
  return sum;
238
202
  }, 0);
239
- if (allNotAValue) {
240
- return Number.NaN;
203
+ if (barSum > max2) {
204
+ max2 = barSum;
241
205
  }
242
- return total;
243
- }
244
- }, {
245
- key: "percentValue",
246
- value: function percentValue(data, key) {
247
- var total = this.totalValue(data);
248
- var value = data[key];
249
- if (typeof value === "number" && total !== 0) {
250
- var percent = Math.round(100 * value / total);
251
- return "".concat(percent, "%");
206
+ return max2;
207
+ }, 0);
208
+ return max;
209
+ }
210
+ totalValue(data) {
211
+ const {
212
+ dataDefinitions
213
+ } = this.state;
214
+ let allNotAValue = true;
215
+ const total = dataDefinitions.reduce((sum, legendItem) => {
216
+ const item = data[legendItem.id];
217
+ if (item === null) {
218
+ allNotAValue = false;
219
+ return sum;
252
220
  }
253
- if (value === null) {
254
- return "0%";
221
+ if (typeof item === "number") {
222
+ allNotAValue = false;
223
+ return sum + item;
255
224
  }
256
- return NOT_A_VALUE;
257
- }
258
- }, {
259
- key: "getValueScale",
260
- value: function getValueScale(values) {
261
- var max = Math.max.apply(Math, _toConsumableArray(values));
262
- var min = Math.min.apply(Math, _toConsumableArray(values));
263
- var avg = (max + min) / 2;
264
- var count = Math.round(Math.log10(avg));
265
- var valueScale = 100 / Math.pow(10, count);
266
- return valueScale;
225
+ if (item instanceof Date && !Number.isNaN(item.getMilliseconds())) {
226
+ allNotAValue = false;
227
+ return sum + item.getMilliseconds();
228
+ }
229
+ return sum;
230
+ }, 0);
231
+ if (allNotAValue) {
232
+ return Number.NaN;
267
233
  }
268
- }, {
269
- key: "setHighlightedLine",
270
- value: function setHighlightedLine(index) {
271
- this.setState({
272
- highlightedLine: index
273
- });
234
+ return total;
235
+ }
236
+ percentValue(data, key) {
237
+ const total = this.totalValue(data);
238
+ const value = data[key];
239
+ if (typeof value === "number" && total !== 0) {
240
+ const percent = Math.round(100 * value / total);
241
+ return `${percent}%`;
274
242
  }
275
- }, {
276
- key: "handleChangeVisible",
277
- value: function handleChangeVisible(id, isVisible) {
278
- this.setState(function(prevState) {
279
- var dataDefinitions = prevState.dataDefinitions.map(function(item) {
280
- if (item.id === id) {
281
- item.checked = isVisible;
282
- }
283
- return item;
284
- });
285
- return {
286
- dataDefinitions
287
- };
288
- });
243
+ if (value === null) {
244
+ return `0%`;
289
245
  }
290
- }, {
291
- key: "handleWithTrendChange",
292
- value: function handleWithTrendChange(isVisible) {
293
- this.setState({
294
- withTrend: isVisible
246
+ return NOT_A_VALUE;
247
+ }
248
+ getValueScale(values) {
249
+ const max = Math.max(...values);
250
+ const min = Math.min(...values);
251
+ const avg = (max + min) / 2;
252
+ const count = Math.round(Math.log10(avg));
253
+ const valueScale = 100 / 10 ** count;
254
+ return valueScale;
255
+ }
256
+ setHighlightedLine(index) {
257
+ this.setState({
258
+ highlightedLine: index
259
+ });
260
+ }
261
+ handleChangeVisible(id, isVisible) {
262
+ this.setState((prevState) => {
263
+ const dataDefinitions = prevState.dataDefinitions.map((item) => {
264
+ if (item.id === id) {
265
+ item.checked = isVisible;
266
+ }
267
+ return item;
295
268
  });
269
+ return {
270
+ dataDefinitions
271
+ };
272
+ });
273
+ }
274
+ handleWithTrendChange(isVisible) {
275
+ this.setState({
276
+ withTrend: isVisible
277
+ });
278
+ }
279
+ handleMouseEnter(id) {
280
+ this.setHighlightedLine(this.state.dataDefinitions.findIndex((line) => line.id === id));
281
+ }
282
+ handleMouseLeave() {
283
+ this.setHighlightedLine(-1);
284
+ }
285
+ resolveColor(id, index) {
286
+ var _a;
287
+ return ((_a = this.props.colorMap) == null ? void 0 : _a[id]) ?? `chart-palette-order-${index + 1}`;
288
+ }
289
+ tooltipValueFormatter(value) {
290
+ const {
291
+ tooltipValueFormatter
292
+ } = this.asProps;
293
+ if (tooltipValueFormatter) {
294
+ return tooltipValueFormatter(value);
296
295
  }
297
- }, {
298
- key: "handleMouseEnter",
299
- value: function handleMouseEnter(id) {
300
- this.setHighlightedLine(this.state.dataDefinitions.findIndex(function(line) {
301
- return line.id === id;
302
- }));
296
+ if (value === void 0 || value === interpolateValue) {
297
+ return NOT_A_VALUE;
303
298
  }
304
- }, {
305
- key: "handleMouseLeave",
306
- value: function handleMouseLeave() {
307
- this.setHighlightedLine(-1);
299
+ if (value === null) {
300
+ return "0";
308
301
  }
309
- }, {
310
- key: "resolveColor",
311
- value: function resolveColor(id, index) {
312
- var _this$props$colorMap$, _this$props$colorMap;
313
- return (_this$props$colorMap$ = (_this$props$colorMap = this.props.colorMap) === null || _this$props$colorMap === void 0 ? void 0 : _this$props$colorMap[id]) !== null && _this$props$colorMap$ !== void 0 ? _this$props$colorMap$ : "chart-palette-order-".concat(index + 1);
302
+ if (value instanceof Date) {
303
+ return value.toDateString();
314
304
  }
315
- }, {
316
- key: "tooltipValueFormatter",
317
- value: function tooltipValueFormatter(value) {
318
- var tooltipValueFormatter2 = this.asProps.tooltipValueFormatter;
319
- if (tooltipValueFormatter2) {
320
- return tooltipValueFormatter2(value);
321
- }
322
- if (value === void 0 || value === interpolateValue) {
323
- return NOT_A_VALUE;
324
- }
325
- if (value === null) {
326
- return "0";
327
- }
328
- if (value instanceof Date) {
329
- return value.toDateString();
330
- }
331
- return value.toString();
305
+ return value.toString();
306
+ }
307
+ defaultLegendProps() {
308
+ return {
309
+ legendType: "Flex"
310
+ };
311
+ }
312
+ renderLegend() {
313
+ const {
314
+ legendProps,
315
+ direction,
316
+ showLegend,
317
+ patterns
318
+ } = this.asProps;
319
+ if (
320
+ // we hide Legend for one item on chart except not manually set to show.
321
+ showLegend === void 0 && this.dataKeys.length === 1 || showLegend === false
322
+ ) {
323
+ return null;
332
324
  }
333
- }, {
334
- key: "defaultLegendProps",
335
- value: function defaultLegendProps() {
336
- return {
337
- legendType: "Flex"
338
- };
325
+ const {
326
+ dataDefinitions,
327
+ withTrend
328
+ } = this.state;
329
+ const lProps = {
330
+ ...this.defaultLegendProps(),
331
+ ...legendProps
332
+ };
333
+ const commonLegendProps = {
334
+ "dataHints": this.dataHints,
335
+ "items": dataDefinitions,
336
+ "size": lProps.size,
337
+ "shape": lProps.shape,
338
+ "w": lProps.w,
339
+ "h": lProps.h,
340
+ patterns,
341
+ "direction": lProps.direction ?? (direction === "row" || direction === "row-reverse" ? "column" : "row"),
342
+ "onChangeVisibleItem": lProps.disableSelectItems ? void 0 : callAllEventHandlers(lProps.onChangeVisibleItem, this.handleChangeVisible),
343
+ "onMouseEnterItem": lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseEnterItem, this.handleMouseEnter),
344
+ "onMouseLeaveItem": lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseLeaveItem, this.handleMouseLeave),
345
+ "aria-label": this.getLegendAriaLabel()
346
+ };
347
+ if (lProps.legendType === "Table") {
348
+ return /* @__PURE__ */ React.createElement(LegendTable, commonLegendProps);
339
349
  }
340
- }, {
341
- key: "renderLegend",
342
- value: function renderLegend() {
343
- var _lProps$direction;
344
- var _this$asProps5 = this.asProps, legendProps = _this$asProps5.legendProps, direction = _this$asProps5.direction, showLegend = _this$asProps5.showLegend, patterns = _this$asProps5.patterns;
345
- if (
346
- // we hide Legend for one item on chart except not manually set to show.
347
- showLegend === void 0 && this.dataKeys.length === 1 || showLegend === false
348
- ) {
349
- return null;
350
- }
351
- var _this$state = this.state, dataDefinitions = _this$state.dataDefinitions, withTrend = _this$state.withTrend;
352
- var lProps = _objectSpread(_objectSpread({}, this.defaultLegendProps()), legendProps);
353
- var commonLegendProps = {
354
- "dataHints": this.dataHints,
355
- "items": dataDefinitions,
356
- "size": lProps.size,
357
- "shape": lProps.shape,
358
- "w": lProps.w,
359
- "h": lProps.h,
360
- patterns,
361
- "direction": (_lProps$direction = lProps.direction) !== null && _lProps$direction !== void 0 ? _lProps$direction : direction === "row" || direction === "row-reverse" ? "column" : "row",
362
- "onChangeVisibleItem": lProps.disableSelectItems ? void 0 : callAllEventHandlers(lProps.onChangeVisibleItem, this.handleChangeVisible),
363
- "onMouseEnterItem": lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseEnterItem, this.handleMouseEnter),
364
- "onMouseLeaveItem": lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseLeaveItem, this.handleMouseLeave),
365
- "aria-label": this.getLegendAriaLabel()
350
+ if ("withTrend" in lProps) {
351
+ const flexLegendProps = {
352
+ ...commonLegendProps,
353
+ withTrend: true,
354
+ trendLabel: lProps.trendLabel,
355
+ trendIsVisible: withTrend,
356
+ onTrendIsVisibleChange: this.handleWithTrendChange
366
357
  };
367
- if (lProps.legendType === "Table") {
368
- return /* @__PURE__ */ React.createElement(LegendTable, commonLegendProps);
369
- }
370
- if ("withTrend" in lProps) {
371
- var flexLegendProps = _objectSpread(_objectSpread({}, commonLegendProps), {}, {
372
- withTrend: true,
373
- trendLabel: lProps.trendLabel,
374
- trendIsVisible: withTrend,
375
- onTrendIsVisibleChange: this.handleWithTrendChange
376
- });
377
- return /* @__PURE__ */ React.createElement(LegendFlex, flexLegendProps);
378
- }
379
- return /* @__PURE__ */ React.createElement(LegendFlex, commonLegendProps);
358
+ return /* @__PURE__ */ React.createElement(LegendFlex, flexLegendProps);
380
359
  }
381
- }, {
382
- key: "renderAxis",
383
- value: function renderAxis() {
384
- var _this$asProps6 = this.asProps, invertAxis = _this$asProps6.invertAxis, showXAxis = _this$asProps6.showXAxis, showYAxis = _this$asProps6.showYAxis, data = _this$asProps6.data, axisXValueFormatter = _this$asProps6.axisXValueFormatter, axisYValueFormatter = _this$asProps6.axisYValueFormatter, multilineXTicks = _this$asProps6.multilineXTicks, multilineYTicks = _this$asProps6.multilineYTicks;
385
- if (!Array.isArray(data)) {
386
- return null;
387
- }
388
- var xTicks = this.xTicks;
389
- var yTicks = this.yTicks;
390
- var childrenX = axisXValueFormatter ? function(_ref9) {
391
- var value = _ref9.value;
392
- return {
393
- children: axisXValueFormatter(value)
394
- };
395
- } : void 0;
396
- var childrenY = axisYValueFormatter ? function(_ref0) {
397
- var value = _ref0.value;
398
- return {
399
- children: axisYValueFormatter(value)
400
- };
401
- } : void 0;
402
- return /* @__PURE__ */ React.createElement(React.Fragment, null, showYAxis && /* @__PURE__ */ React.createElement(YAxis, null, yTicks ? /* @__PURE__ */ React.createElement(YAxis.Ticks, {
403
- multiline: multilineYTicks,
404
- ticks: yTicks
405
- }, childrenY) : /* @__PURE__ */ React.createElement(YAxis.Ticks, {
406
- multiline: multilineYTicks
407
- }, childrenY), invertAxis !== true && (yTicks ? /* @__PURE__ */ React.createElement(YAxis.Grid, {
408
- ticks: yTicks
409
- }) : /* @__PURE__ */ React.createElement(YAxis.Grid, null))), showXAxis && /* @__PURE__ */ React.createElement(XAxis, null, xTicks ? /* @__PURE__ */ React.createElement(XAxis.Ticks, {
410
- multiline: multilineXTicks,
411
- ticks: xTicks
412
- }, childrenX) : /* @__PURE__ */ React.createElement(XAxis.Ticks, {
413
- multiline: multilineXTicks
414
- }, childrenX), invertAxis === true && (xTicks ? /* @__PURE__ */ React.createElement(XAxis.Grid, {
415
- ticks: xTicks
416
- }) : /* @__PURE__ */ React.createElement(XAxis.Grid, null))));
360
+ return /* @__PURE__ */ React.createElement(LegendFlex, commonLegendProps);
361
+ }
362
+ renderAxis() {
363
+ const {
364
+ invertAxis,
365
+ showXAxis,
366
+ showYAxis,
367
+ data,
368
+ axisXValueFormatter,
369
+ axisYValueFormatter,
370
+ multilineXTicks,
371
+ multilineYTicks
372
+ } = this.asProps;
373
+ if (!Array.isArray(data)) {
374
+ return null;
417
375
  }
418
- }, {
419
- key: "getTooltipChildren",
420
- value: function getTooltipChildren(options) {
421
- var _ref = this.asProps, _ref3, _dataItem, _this3 = this;
422
- var STooltipChildrenWrapper = Box;
423
- var Tooltip = options.Tooltip, dataItem = options.dataItem;
424
- var _this$asProps7 = this.asProps, styles = _this$asProps7.styles, groupKey = _this$asProps7.groupKey;
425
- var dataDefinitions = this.state.dataDefinitions;
426
- var title = (_dataItem = dataItem[groupKey]) === null || _dataItem === void 0 ? void 0 : _dataItem.toString();
427
- return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(Flex, _ref3.cn("Flex", {
428
- "direction": "column"
429
- }), title && /* @__PURE__ */ React.createElement(Tooltip.Title, null, title), /* @__PURE__ */ React.createElement(STooltipChildrenWrapper, _ref3.cn("STooltipChildrenWrapper", _objectSpread({}, assignProps({
376
+ const xTicks = this.xTicks;
377
+ const yTicks = this.yTicks;
378
+ const childrenX = axisXValueFormatter ? ({
379
+ value
380
+ }) => ({
381
+ children: axisXValueFormatter(value)
382
+ }) : void 0;
383
+ const childrenY = axisYValueFormatter ? ({
384
+ value
385
+ }) => ({
386
+ children: axisYValueFormatter(value)
387
+ }) : void 0;
388
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, showYAxis && /* @__PURE__ */ React.createElement(YAxis, null, yTicks ? /* @__PURE__ */ React.createElement(YAxis.Ticks, {
389
+ multiline: multilineYTicks,
390
+ ticks: yTicks
391
+ }, childrenY) : /* @__PURE__ */ React.createElement(YAxis.Ticks, {
392
+ multiline: multilineYTicks
393
+ }, childrenY), invertAxis !== true && (yTicks ? /* @__PURE__ */ React.createElement(YAxis.Grid, {
394
+ ticks: yTicks
395
+ }) : /* @__PURE__ */ React.createElement(YAxis.Grid, null))), showXAxis && /* @__PURE__ */ React.createElement(XAxis, null, xTicks ? /* @__PURE__ */ React.createElement(XAxis.Ticks, {
396
+ multiline: multilineXTicks,
397
+ ticks: xTicks
398
+ }, childrenX) : /* @__PURE__ */ React.createElement(XAxis.Ticks, {
399
+ multiline: multilineXTicks
400
+ }, childrenX), invertAxis === true && (xTicks ? /* @__PURE__ */ React.createElement(XAxis.Grid, {
401
+ ticks: xTicks
402
+ }) : /* @__PURE__ */ React.createElement(XAxis.Grid, null))));
403
+ }
404
+ getTooltipChildren(options) {
405
+ var _a;
406
+ var _ref = this.asProps, _ref3;
407
+ const STooltipChildrenWrapper = Box;
408
+ const {
409
+ Tooltip,
410
+ dataItem
411
+ } = options;
412
+ const {
413
+ styles,
414
+ groupKey
415
+ } = this.asProps;
416
+ const {
417
+ dataDefinitions
418
+ } = this.state;
419
+ const title = (_a = dataItem[groupKey]) == null ? void 0 : _a.toString();
420
+ return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(Flex, _ref3.cn("Flex", {
421
+ "direction": "column"
422
+ }), title && /* @__PURE__ */ React.createElement(Tooltip.Title, null, title), /* @__PURE__ */ React.createElement(STooltipChildrenWrapper, _ref3.cn("STooltipChildrenWrapper", {
423
+ ...assignProps({
430
424
  "columnsCount": "2",
431
425
  "__excludeProps": ["data"]
432
- }, _ref))), dataDefinitions.map(function(item) {
433
- return item.checked && /* @__PURE__ */ React.createElement(Fragment, {
434
- key: item.id
435
- }, /* @__PURE__ */ React.createElement(Tooltip.Dot, {
436
- mr: 2,
437
- color: item.color
438
- }, item.label), /* @__PURE__ */ React.createElement(Text, {
439
- textAlign: "end",
440
- bold: true
441
- }, _this3.tooltipValueFormatter(dataItem[item.id])));
442
- }), this.renderTooltipTotalLine(dataItem)));
443
- }
444
- }, {
445
- key: "renderTooltipTotalLine",
446
- value: function renderTooltipTotalLine(dataItem) {
447
- var showTotalInTooltip = this.asProps.showTotalInTooltip;
448
- if (!showTotalInTooltip) {
449
- return null;
450
- }
451
- var total = this.totalValue(dataItem);
452
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box, {
453
- mt: 2,
454
- mr: 2
455
- }, "Total"), /* @__PURE__ */ React.createElement(Text, {
456
- mt: 2,
426
+ }, _ref)
427
+ }), dataDefinitions.map((item) => {
428
+ return item.checked && /* @__PURE__ */ React.createElement(Fragment, {
429
+ key: item.id
430
+ }, /* @__PURE__ */ React.createElement(Tooltip.Dot, {
431
+ mr: 2,
432
+ color: item.color
433
+ }, item.label), /* @__PURE__ */ React.createElement(Text, {
457
434
  textAlign: "end",
458
435
  bold: true
459
- }, Number.isNaN(total) ? NOT_A_VALUE : total));
436
+ }, this.tooltipValueFormatter(dataItem[item.id])));
437
+ }), this.renderTooltipTotalLine(dataItem)));
438
+ }
439
+ renderTooltipTotalLine(dataItem) {
440
+ const {
441
+ showTotalInTooltip
442
+ } = this.asProps;
443
+ if (!showTotalInTooltip) {
444
+ return null;
460
445
  }
461
- }, {
462
- key: "render",
463
- value: function render() {
464
- var _ref2 = this.asProps, _ref4;
465
- var SChart = Flex;
466
- var _this$asProps8 = this.asProps, styles = _this$asProps8.styles, plotWidth = _this$asProps8.plotWidth, plotHeight = _this$asProps8.plotHeight, data = _this$asProps8.data, patterns = _this$asProps8.patterns, a11yAltTextConfig = _this$asProps8.a11yAltTextConfig, duration = _this$asProps8.duration, eventEmitter = _this$asProps8.eventEmitter, showTooltip = _this$asProps8.showTooltip;
467
- var _extractAriaProps = extractAriaProps(this.asProps), extractedAriaProps = _extractAriaProps.extractedAriaProps;
468
- return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref4.cn("SChart", _objectSpread({}, assignProps({
446
+ const total = this.totalValue(dataItem);
447
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box, {
448
+ mt: 2,
449
+ mr: 2
450
+ }, "Total"), /* @__PURE__ */ React.createElement(Text, {
451
+ mt: 2,
452
+ textAlign: "end",
453
+ bold: true
454
+ }, Number.isNaN(total) ? NOT_A_VALUE : total));
455
+ }
456
+ render() {
457
+ var _ref2 = this.asProps, _ref4;
458
+ const SChart = Flex;
459
+ const {
460
+ styles,
461
+ plotWidth,
462
+ plotHeight,
463
+ data,
464
+ patterns,
465
+ a11yAltTextConfig,
466
+ duration,
467
+ eventEmitter,
468
+ showTooltip
469
+ } = this.asProps;
470
+ const {
471
+ extractedAriaProps
472
+ } = extractAriaProps(this.asProps);
473
+ return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref4.cn("SChart", {
474
+ ...assignProps({
469
475
  "gap": 5,
470
476
  "__excludeProps": ["data", "eventEmitter"],
471
477
  "role": "group"
472
- }, _ref2))), this.renderLegend(), /* @__PURE__ */ React.createElement(Plot, _ref4.cn("Plot", _objectSpread({
473
- "data": data,
474
- "scale": [this.xScale, this.yScale],
475
- "width": plotWidth,
476
- "height": plotHeight,
477
- "dataHints": this.dataHints,
478
- "a11yAltTextConfig": a11yAltTextConfig,
479
- "patterns": patterns,
480
- "duration": duration,
481
- "eventEmitter": eventEmitter
482
- }, extractedAriaProps)), this.renderAxis(), !showTooltip ? null : this.renderTooltip(), this.renderChart()));
483
- }
484
- }]);
485
- })(Component);
478
+ }, _ref2)
479
+ }), this.renderLegend(), /* @__PURE__ */ React.createElement(Plot, _ref4.cn("Plot", {
480
+ "data": data,
481
+ "scale": [this.xScale, this.yScale],
482
+ "width": plotWidth,
483
+ "height": plotHeight,
484
+ "dataHints": this.dataHints,
485
+ "a11yAltTextConfig": a11yAltTextConfig,
486
+ "patterns": patterns,
487
+ "duration": duration,
488
+ "eventEmitter": eventEmitter,
489
+ ...extractedAriaProps
490
+ }), this.renderAxis(), !showTooltip ? null : this.renderTooltip(), this.renderChart()));
491
+ }
492
+ }
486
493
  _defineProperty(AbstractChart, "style", style);
487
494
  _defineProperty(AbstractChart, "defaultProps", {
488
495
  direction: "column",