@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.0

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 (453) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -50
  3. package/lib/cjs/AnimatedClipPath.js +13 -13
  4. package/lib/cjs/AnimatedClipPath.js.map +1 -1
  5. package/lib/cjs/Area.js +29 -27
  6. package/lib/cjs/Area.js.map +1 -1
  7. package/lib/cjs/Axis.js +97 -101
  8. package/lib/cjs/Axis.js.map +1 -1
  9. package/lib/cjs/Bar.js +31 -32
  10. package/lib/cjs/Bar.js.map +1 -1
  11. package/lib/cjs/Bubble.js +26 -27
  12. package/lib/cjs/Bubble.js.map +1 -1
  13. package/lib/cjs/CompactHorizontalBar.js +65 -68
  14. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  15. package/lib/cjs/Donut.js +94 -95
  16. package/lib/cjs/Donut.js.map +1 -1
  17. package/lib/cjs/Dots.js +36 -34
  18. package/lib/cjs/Dots.js.map +1 -1
  19. package/lib/cjs/GroupBar.js +16 -16
  20. package/lib/cjs/GroupBar.js.map +1 -1
  21. package/lib/cjs/HorizontalBar.js +30 -31
  22. package/lib/cjs/HorizontalBar.js.map +1 -1
  23. package/lib/cjs/Hover.js +27 -33
  24. package/lib/cjs/Hover.js.map +1 -1
  25. package/lib/cjs/Line.js +23 -23
  26. package/lib/cjs/Line.js.map +1 -1
  27. package/lib/cjs/Pattern.js +13 -11
  28. package/lib/cjs/Pattern.js.map +1 -1
  29. package/lib/cjs/Plot.js +26 -27
  30. package/lib/cjs/Plot.js.map +1 -1
  31. package/lib/cjs/Radar.js +125 -132
  32. package/lib/cjs/Radar.js.map +1 -1
  33. package/lib/cjs/RadialTree.js +164 -145
  34. package/lib/cjs/RadialTree.js.map +1 -1
  35. package/lib/cjs/Reference.js +47 -49
  36. package/lib/cjs/Reference.js.map +1 -1
  37. package/lib/cjs/ResponsiveContainer.js +19 -20
  38. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  39. package/lib/cjs/ScatterPlot.js +24 -25
  40. package/lib/cjs/ScatterPlot.js.map +1 -1
  41. package/lib/cjs/StackBar.js +20 -23
  42. package/lib/cjs/StackBar.js.map +1 -1
  43. package/lib/cjs/StackedArea.js +14 -15
  44. package/lib/cjs/StackedArea.js.map +1 -1
  45. package/lib/cjs/Tooltip.js +34 -35
  46. package/lib/cjs/Tooltip.js.map +1 -1
  47. package/lib/cjs/Venn.js +28 -29
  48. package/lib/cjs/Venn.js.map +1 -1
  49. package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
  50. package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
  51. package/lib/cjs/a11y/PlotA11yModule.js +11 -12
  52. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  53. package/lib/cjs/a11y/PlotA11yView.js +10 -11
  54. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  55. package/lib/cjs/a11y/bezier.js +1 -2
  56. package/lib/cjs/a11y/bezier.js.map +1 -1
  57. package/lib/cjs/a11y/focus.js +4 -5
  58. package/lib/cjs/a11y/focus.js.map +1 -1
  59. package/lib/cjs/a11y/hints.js +5 -8
  60. package/lib/cjs/a11y/hints.js.map +1 -1
  61. package/lib/cjs/a11y/insights.js +63 -64
  62. package/lib/cjs/a11y/insights.js.map +1 -1
  63. package/lib/cjs/a11y/intl.js +1 -2
  64. package/lib/cjs/a11y/intl.js.map +1 -1
  65. package/lib/cjs/a11y/locale.js +4 -5
  66. package/lib/cjs/a11y/locale.js.map +1 -1
  67. package/lib/cjs/a11y/serialize.js +15 -17
  68. package/lib/cjs/a11y/serialize.js.map +1 -1
  69. package/lib/cjs/a11y/summarize.js +1 -2
  70. package/lib/cjs/a11y/summarize.js.map +1 -1
  71. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
  72. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  73. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
  74. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  75. package/lib/cjs/color.js +2 -3
  76. package/lib/cjs/color.js.map +1 -1
  77. package/lib/cjs/component/Chart/AbstractChart.js +43 -46
  78. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  79. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  80. package/lib/cjs/component/Chart/AreaChart.js +17 -20
  81. package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
  82. package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
  83. package/lib/cjs/component/Chart/BarChart.js +17 -21
  84. package/lib/cjs/component/Chart/BarChart.js.map +1 -1
  85. package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
  86. package/lib/cjs/component/Chart/BubbleChart.js +18 -19
  87. package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
  88. package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
  89. package/lib/cjs/component/Chart/CigaretteChart.js +19 -23
  90. package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
  91. package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
  92. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +13 -14
  93. package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  94. package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  95. package/lib/cjs/component/Chart/DonutChart.js +13 -14
  96. package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
  97. package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
  98. package/lib/cjs/component/Chart/HistogramChart.js +15 -16
  99. package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
  100. package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
  101. package/lib/cjs/component/Chart/LineChart.js +17 -18
  102. package/lib/cjs/component/Chart/LineChart.js.map +1 -1
  103. package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
  104. package/lib/cjs/component/Chart/RadarChart.js +14 -17
  105. package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  106. package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
  107. package/lib/cjs/component/Chart/ScatterPlotChart.js +14 -15
  108. package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
  109. package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
  110. package/lib/cjs/component/Chart/VennChart.js +12 -13
  111. package/lib/cjs/component/Chart/VennChart.js.map +1 -1
  112. package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
  113. package/lib/cjs/component/Chart/index.js +7 -8
  114. package/lib/cjs/component/Chart/index.js.map +1 -1
  115. package/lib/cjs/component/ChartLegend/BaseLegend.js +42 -20
  116. package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
  117. package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
  118. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +20 -20
  119. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  120. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  121. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +79 -67
  122. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  123. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
  124. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  125. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -18
  126. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  127. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  128. package/lib/cjs/component/ChartLegend/index.js +1 -2
  129. package/lib/cjs/component/ChartLegend/index.js.map +1 -1
  130. package/lib/cjs/component/Cigarette/Cigarette.js +18 -19
  131. package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
  132. package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
  133. package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
  134. package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  135. package/lib/cjs/component/SvgElement.js +21 -0
  136. package/lib/cjs/component/SvgElement.js.map +1 -0
  137. package/lib/cjs/createElement.d.js.map +1 -1
  138. package/lib/cjs/createElement.js +7 -8
  139. package/lib/cjs/createElement.js.map +1 -1
  140. package/lib/cjs/index.js +9 -2
  141. package/lib/cjs/index.js.map +1 -1
  142. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
  143. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  144. package/lib/cjs/types/Area.d.js.map +1 -1
  145. package/lib/cjs/types/Axis.d.js.map +1 -1
  146. package/lib/cjs/types/Bar.d.js.map +1 -1
  147. package/lib/cjs/types/Bubble.d.js.map +1 -1
  148. package/lib/cjs/types/ClipPath.d.js.map +1 -1
  149. package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
  150. package/lib/cjs/types/Donut.d.js.map +1 -1
  151. package/lib/cjs/types/GroupBar.d.js.map +1 -1
  152. package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
  153. package/lib/cjs/types/Hover.d.js.map +1 -1
  154. package/lib/cjs/types/Line.d.js.map +1 -1
  155. package/lib/cjs/types/Plot.d.js.map +1 -1
  156. package/lib/cjs/types/Radar.d.js.map +1 -1
  157. package/lib/cjs/types/Reference.d.js.map +1 -1
  158. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
  159. package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
  160. package/lib/cjs/types/StackBar.d.js.map +1 -1
  161. package/lib/cjs/types/StackedArea.d.js.map +1 -1
  162. package/lib/cjs/types/Tooltip.d.js.map +1 -1
  163. package/lib/cjs/types/Venn.d.js.map +1 -1
  164. package/lib/cjs/types/context.d.js.map +1 -1
  165. package/lib/cjs/types/index.d.js +2 -2
  166. package/lib/cjs/types/index.d.js.map +1 -1
  167. package/lib/cjs/utils.js +31 -52
  168. package/lib/cjs/utils.js.map +1 -1
  169. package/lib/es6/AnimatedClipPath.js +11 -10
  170. package/lib/es6/AnimatedClipPath.js.map +1 -1
  171. package/lib/es6/Area.js +27 -24
  172. package/lib/es6/Area.js.map +1 -1
  173. package/lib/es6/Axis.js +96 -98
  174. package/lib/es6/Axis.js.map +1 -1
  175. package/lib/es6/Bar.js +28 -27
  176. package/lib/es6/Bar.js.map +1 -1
  177. package/lib/es6/Bubble.js +24 -24
  178. package/lib/es6/Bubble.js.map +1 -1
  179. package/lib/es6/CompactHorizontalBar.js +63 -65
  180. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  181. package/lib/es6/Donut.js +92 -92
  182. package/lib/es6/Donut.js.map +1 -1
  183. package/lib/es6/Dots.js +36 -33
  184. package/lib/es6/Dots.js.map +1 -1
  185. package/lib/es6/GroupBar.js +14 -13
  186. package/lib/es6/GroupBar.js.map +1 -1
  187. package/lib/es6/HorizontalBar.js +27 -26
  188. package/lib/es6/HorizontalBar.js.map +1 -1
  189. package/lib/es6/Hover.js +24 -28
  190. package/lib/es6/Hover.js.map +1 -1
  191. package/lib/es6/Line.js +20 -19
  192. package/lib/es6/Line.js.map +1 -1
  193. package/lib/es6/Pattern.js +4 -2
  194. package/lib/es6/Pattern.js.map +1 -1
  195. package/lib/es6/Plot.js +25 -25
  196. package/lib/es6/Plot.js.map +1 -1
  197. package/lib/es6/Radar.js +122 -128
  198. package/lib/es6/Radar.js.map +1 -1
  199. package/lib/es6/RadialTree.js +162 -142
  200. package/lib/es6/RadialTree.js.map +1 -1
  201. package/lib/es6/Reference.js +44 -43
  202. package/lib/es6/Reference.js.map +1 -1
  203. package/lib/es6/ResponsiveContainer.js +17 -17
  204. package/lib/es6/ResponsiveContainer.js.map +1 -1
  205. package/lib/es6/ScatterPlot.js +22 -22
  206. package/lib/es6/ScatterPlot.js.map +1 -1
  207. package/lib/es6/StackBar.js +17 -19
  208. package/lib/es6/StackBar.js.map +1 -1
  209. package/lib/es6/StackedArea.js +12 -12
  210. package/lib/es6/StackedArea.js.map +1 -1
  211. package/lib/es6/Tooltip.js +33 -33
  212. package/lib/es6/Tooltip.js.map +1 -1
  213. package/lib/es6/Venn.js +26 -26
  214. package/lib/es6/Venn.js.map +1 -1
  215. package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
  216. package/lib/es6/a11y/PlotA11yModule.js +11 -11
  217. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  218. package/lib/es6/a11y/PlotA11yView.js +9 -9
  219. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  220. package/lib/es6/a11y/bezier.js.map +1 -1
  221. package/lib/es6/a11y/focus.js +3 -3
  222. package/lib/es6/a11y/focus.js.map +1 -1
  223. package/lib/es6/a11y/hints.js +1 -1
  224. package/lib/es6/a11y/hints.js.map +1 -1
  225. package/lib/es6/a11y/insights.js +61 -61
  226. package/lib/es6/a11y/insights.js.map +1 -1
  227. package/lib/es6/a11y/intl.js.map +1 -1
  228. package/lib/es6/a11y/locale.js +2 -2
  229. package/lib/es6/a11y/locale.js.map +1 -1
  230. package/lib/es6/a11y/serialize.js +14 -13
  231. package/lib/es6/a11y/serialize.js.map +1 -1
  232. package/lib/es6/a11y/summarize.js.map +1 -1
  233. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
  234. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  235. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
  236. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  237. package/lib/es6/color.js +1 -1
  238. package/lib/es6/color.js.map +1 -1
  239. package/lib/es6/component/Chart/AbstractChart.js +40 -41
  240. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  241. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  242. package/lib/es6/component/Chart/AreaChart.js +16 -16
  243. package/lib/es6/component/Chart/AreaChart.js.map +1 -1
  244. package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
  245. package/lib/es6/component/Chart/BarChart.js +15 -17
  246. package/lib/es6/component/Chart/BarChart.js.map +1 -1
  247. package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
  248. package/lib/es6/component/Chart/BubbleChart.js +17 -15
  249. package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
  250. package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
  251. package/lib/es6/component/Chart/CigaretteChart.js +17 -17
  252. package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
  253. package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
  254. package/lib/es6/component/Chart/CompactHorizontalBarChart.js +11 -10
  255. package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
  256. package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
  257. package/lib/es6/component/Chart/DonutChart.js +12 -10
  258. package/lib/es6/component/Chart/DonutChart.js.map +1 -1
  259. package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
  260. package/lib/es6/component/Chart/HistogramChart.js +14 -12
  261. package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
  262. package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
  263. package/lib/es6/component/Chart/LineChart.js +15 -14
  264. package/lib/es6/component/Chart/LineChart.js.map +1 -1
  265. package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
  266. package/lib/es6/component/Chart/RadarChart.js +12 -13
  267. package/lib/es6/component/Chart/RadarChart.js.map +1 -1
  268. package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
  269. package/lib/es6/component/Chart/ScatterPlotChart.js +13 -11
  270. package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
  271. package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
  272. package/lib/es6/component/Chart/VennChart.js +10 -9
  273. package/lib/es6/component/Chart/VennChart.js.map +1 -1
  274. package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
  275. package/lib/es6/component/Chart/index.js +6 -6
  276. package/lib/es6/component/Chart/index.js.map +1 -1
  277. package/lib/es6/component/ChartLegend/BaseLegend.js +40 -17
  278. package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
  279. package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
  280. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +18 -17
  281. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
  282. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
  283. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +77 -64
  284. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
  285. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
  286. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +16 -15
  287. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
  288. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
  289. package/lib/es6/component/ChartLegend/index.js.map +1 -1
  290. package/lib/es6/component/Cigarette/Cigarette.js +16 -16
  291. package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
  292. package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -21
  293. package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
  294. package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
  295. package/lib/es6/component/SvgElement.js +14 -0
  296. package/lib/es6/component/SvgElement.js.map +1 -0
  297. package/lib/es6/createElement.d.js.map +1 -1
  298. package/lib/es6/createElement.js +5 -5
  299. package/lib/es6/createElement.js.map +1 -1
  300. package/lib/es6/index.js +1 -0
  301. package/lib/es6/index.js.map +1 -1
  302. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  303. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  304. package/lib/es6/types/Area.d.js.map +1 -1
  305. package/lib/es6/types/Axis.d.js.map +1 -1
  306. package/lib/es6/types/Bar.d.js.map +1 -1
  307. package/lib/es6/types/Bubble.d.js.map +1 -1
  308. package/lib/es6/types/ClipPath.d.js.map +1 -1
  309. package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
  310. package/lib/es6/types/Donut.d.js.map +1 -1
  311. package/lib/es6/types/GroupBar.d.js.map +1 -1
  312. package/lib/es6/types/HorizontalBar.d.js.map +1 -1
  313. package/lib/es6/types/Hover.d.js.map +1 -1
  314. package/lib/es6/types/Line.d.js.map +1 -1
  315. package/lib/es6/types/Plot.d.js.map +1 -1
  316. package/lib/es6/types/Radar.d.js.map +1 -1
  317. package/lib/es6/types/Reference.d.js.map +1 -1
  318. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
  319. package/lib/es6/types/ScatterPlot.d.js.map +1 -1
  320. package/lib/es6/types/StackBar.d.js.map +1 -1
  321. package/lib/es6/types/StackedArea.d.js.map +1 -1
  322. package/lib/es6/types/Tooltip.d.js.map +1 -1
  323. package/lib/es6/types/Venn.d.js.map +1 -1
  324. package/lib/es6/types/context.d.js.map +1 -1
  325. package/lib/es6/types/index.d.js +1 -0
  326. package/lib/es6/types/index.d.js.map +1 -1
  327. package/lib/es6/utils.js +11 -13
  328. package/lib/es6/utils.js.map +1 -1
  329. package/lib/esm/AnimatedClipPath.mjs +10 -7
  330. package/lib/esm/Area.mjs +30 -25
  331. package/lib/esm/Axis.mjs +67 -67
  332. package/lib/esm/Bar.mjs +31 -28
  333. package/lib/esm/Bubble.mjs +28 -26
  334. package/lib/esm/CompactHorizontalBar.mjs +61 -60
  335. package/lib/esm/Donut.mjs +50 -49
  336. package/lib/esm/Dots.mjs +32 -27
  337. package/lib/esm/GroupBar.mjs +14 -11
  338. package/lib/esm/HorizontalBar.mjs +30 -27
  339. package/lib/esm/Hover.mjs +28 -30
  340. package/lib/esm/Line.mjs +23 -20
  341. package/lib/esm/Pattern.mjs +1 -1
  342. package/lib/esm/Plot.mjs +27 -25
  343. package/lib/esm/Radar.mjs +90 -94
  344. package/lib/esm/RadialTree.mjs +86 -86
  345. package/lib/esm/Reference.mjs +34 -31
  346. package/lib/esm/ResponsiveContainer.mjs +19 -17
  347. package/lib/esm/ScatterPlot.mjs +26 -24
  348. package/lib/esm/StackBar.mjs +17 -17
  349. package/lib/esm/StackedArea.mjs +13 -11
  350. package/lib/esm/Tooltip.mjs +35 -33
  351. package/lib/esm/Venn.mjs +29 -27
  352. package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
  353. package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
  354. package/lib/esm/a11y/PlotA11yView.mjs +9 -9
  355. package/lib/esm/a11y/focus.mjs +3 -3
  356. package/lib/esm/a11y/hints.mjs +1 -1
  357. package/lib/esm/a11y/insights.mjs +77 -78
  358. package/lib/esm/a11y/intl.mjs +1 -1
  359. package/lib/esm/a11y/locale.mjs +2 -2
  360. package/lib/esm/a11y/serialize.mjs +12 -12
  361. package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
  362. package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
  363. package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
  364. package/lib/esm/component/Chart/AreaChart.mjs +19 -15
  365. package/lib/esm/component/Chart/BarChart.mjs +20 -17
  366. package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
  367. package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
  368. package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
  369. package/lib/esm/component/Chart/DonutChart.mjs +13 -10
  370. package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
  371. package/lib/esm/component/Chart/LineChart.mjs +18 -12
  372. package/lib/esm/component/Chart/RadarChart.mjs +19 -12
  373. package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
  374. package/lib/esm/component/Chart/VennChart.mjs +12 -9
  375. package/lib/esm/component/Chart/index.mjs +6 -6
  376. package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
  377. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
  378. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
  379. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
  380. package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
  381. package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
  382. package/lib/esm/component/SvgElement.mjs +14 -0
  383. package/lib/esm/createElement.mjs +5 -5
  384. package/lib/esm/index.mjs +2 -0
  385. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  386. package/lib/esm/utils.mjs +8 -8
  387. package/lib/types/Area.d.ts +7 -6
  388. package/lib/types/Axis.d.ts +4 -3
  389. package/lib/types/Bar.d.ts +7 -6
  390. package/lib/types/Bubble.d.ts +6 -5
  391. package/lib/types/ClipPath.d.ts +4 -3
  392. package/lib/types/CompactHorizontalBar.d.ts +7 -8
  393. package/lib/types/Donut.d.ts +6 -5
  394. package/lib/types/GroupBar.d.ts +6 -6
  395. package/lib/types/HorizontalBar.d.ts +7 -6
  396. package/lib/types/Hover.d.ts +8 -8
  397. package/lib/types/Line.d.ts +7 -6
  398. package/lib/types/Pattern.d.ts +51 -51
  399. package/lib/types/Plot.d.ts +10 -9
  400. package/lib/types/Radar.d.ts +8 -7
  401. package/lib/types/RadialTree.d.ts +9 -54
  402. package/lib/types/Reference.d.ts +5 -4
  403. package/lib/types/ResponsiveContainer.d.ts +5 -4
  404. package/lib/types/ScatterPlot.d.ts +6 -5
  405. package/lib/types/StackBar.d.ts +7 -6
  406. package/lib/types/StackedArea.d.ts +6 -5
  407. package/lib/types/Tooltip.d.ts +14 -12
  408. package/lib/types/Venn.d.ts +7 -6
  409. package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
  410. package/lib/types/a11y/PlotA11yModule.d.ts +1 -1
  411. package/lib/types/a11y/hints.d.ts +5 -5
  412. package/lib/types/a11y/insights.d.ts +1 -1
  413. package/lib/types/a11y/intl.d.ts +1 -1
  414. package/lib/types/a11y/serialize.d.ts +7 -7
  415. package/lib/types/a11y/summarize.d.ts +2 -2
  416. package/lib/types/component/Chart/AbstractChart.d.ts +6 -6
  417. package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
  418. package/lib/types/component/Chart/AreaChart.d.ts +1 -1
  419. package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
  420. package/lib/types/component/Chart/BarChart.d.ts +1 -1
  421. package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
  422. package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
  423. package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
  424. package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
  425. package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
  426. package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
  427. package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
  428. package/lib/types/component/Chart/DonutChart.d.ts +1 -1
  429. package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
  430. package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
  431. package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
  432. package/lib/types/component/Chart/LineChart.d.ts +1 -1
  433. package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
  434. package/lib/types/component/Chart/RadarChart.d.ts +1 -1
  435. package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
  436. package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
  437. package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
  438. package/lib/types/component/Chart/VennChart.d.ts +1 -1
  439. package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
  440. package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
  441. package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
  442. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
  443. package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
  444. package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
  445. package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
  446. package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
  447. package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
  448. package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
  449. package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
  450. package/lib/types/component/SvgElement.d.ts +10 -0
  451. package/lib/types/index.d.ts +2 -1
  452. package/lib/types/utils.d.ts +6 -6
  453. package/package.json +22 -23
@@ -1,5 +1,5 @@
1
1
  import { isFocusable } from "@semcore/core/lib/utils/focus-lock/isFocusable";
2
- var findNextFocusableElementInChildren = function findNextFocusableElementInChildren2(element) {
2
+ var _findNextFocusableElementInChildren = function findNextFocusableElementInChildren(element) {
3
3
  if (element && isFocusable(element)) {
4
4
  return element;
5
5
  }
@@ -8,7 +8,7 @@ var findNextFocusableElementInChildren = function findNextFocusableElementInChil
8
8
  for (var i = 0; i < children.length; i++) {
9
9
  var childChild = children.item(i);
10
10
  if (!childChild) continue;
11
- var result = findNextFocusableElementInChildren2(childChild);
11
+ var result = _findNextFocusableElementInChildren(childChild);
12
12
  if (result) return result;
13
13
  }
14
14
  }
@@ -33,7 +33,7 @@ var heavyFindNextFocusableElement = function heavyFindNextFocusableElement2(base
33
33
  siblings = siblings.slice(siblings.indexOf(parents[i - 1] || base) + 1);
34
34
  }
35
35
  for (var _i = 0; _i < siblings.length; _i++) {
36
- var focusable = findNextFocusableElementInChildren(siblings[_i]);
36
+ var focusable = _findNextFocusableElementInChildren(siblings[_i]);
37
37
  if (focusable) return focusable;
38
38
  }
39
39
  }
@@ -105,7 +105,7 @@ var makeDataSummarizationConfig = function makeDataSummarizationConfig2(config)
105
105
  "static": 1 / 15,
106
106
  weak: 1 / 10,
107
107
  medium: 1 / 5,
108
- strong: Infinity
108
+ strong: Number.POSITIVE_INFINITY
109
109
  }, (_config$trendTangens = config === null || config === void 0 ? void 0 : config.trendTangens) !== null && _config$trendTangens !== void 0 ? _config$trendTangens : {}),
110
110
  movingAverage: _objectSpread({
111
111
  longSize: void 0,
@@ -124,9 +124,9 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
124
124
  for (var i2 in values2) {
125
125
  var _values$i, _longMovingAverage$i, _shortMovingAverage$i;
126
126
  table.push({
127
- value: ((_values$i = values2[i2]) !== null && _values$i !== void 0 ? _values$i : NaN).toFixed(2),
128
- "long": ((_longMovingAverage$i = longMovingAverage[i2]) !== null && _longMovingAverage$i !== void 0 ? _longMovingAverage$i : NaN).toFixed(2),
129
- "short": ((_shortMovingAverage$i = shortMovingAverage[i2]) !== null && _shortMovingAverage$i !== void 0 ? _shortMovingAverage$i : NaN).toFixed(2)
127
+ value: ((_values$i = values2[i2]) !== null && _values$i !== void 0 ? _values$i : Number.NaN).toFixed(2),
128
+ "long": ((_longMovingAverage$i = longMovingAverage[i2]) !== null && _longMovingAverage$i !== void 0 ? _longMovingAverage$i : Number.NaN).toFixed(2),
129
+ "short": ((_shortMovingAverage$i = shortMovingAverage[i2]) !== null && _shortMovingAverage$i !== void 0 ? _shortMovingAverage$i : Number.NaN).toFixed(2)
130
130
  });
131
131
  }
132
132
  var strengthsMap = {
@@ -254,7 +254,7 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
254
254
  _iterator.f();
255
255
  }
256
256
  } else if (dataType === "points-cloud") {
257
- var _ref7, _config$clustersGridS, _relativeSizeDistrivu, _insights2;
257
+ var _ref7, _config$clustersGridS, _insights2;
258
258
  var guessedXKey = [].concat(_toConsumableArray(hints.fields.horizontalAxes.values()), ["x"])[0];
259
259
  var guessedYKey = [].concat(_toConsumableArray(hints.fields.verticalAxes.values()), ["y"])[0];
260
260
  var guessedValueKey = [].concat(_toConsumableArray(hints.fields.valueAxes.values()), ["value"])[0];
@@ -274,9 +274,9 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
274
274
  var _iterator2 = _createForOfIteratorHelper(normalized), _step2;
275
275
  try {
276
276
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
277
- var _step2$value = _step2.value, _x = _step2$value.x, _y = _step2$value.y;
278
- usedX.add(_x);
279
- usedY.add(_y);
277
+ var _step2$value = _step2.value, x = _step2$value.x, y = _step2$value.y;
278
+ usedX.add(x);
279
+ usedY.add(y);
280
280
  }
281
281
  } catch (err) {
282
282
  _iterator2.e(err);
@@ -289,29 +289,29 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
289
289
  var orderedY = _toConsumableArray(usedY).sort(function(a, b) {
290
290
  return a - b;
291
291
  });
292
- var distancesX = orderedX.slice(0, -1).map(function(x, index) {
293
- return orderedX[index + 1] - x;
292
+ var distancesX = orderedX.slice(0, -1).map(function(x2, index) {
293
+ return orderedX[index + 1] - x2;
294
294
  });
295
- var distancesY = orderedY.slice(0, -1).map(function(y, index) {
296
- return orderedY[index + 1] - y;
295
+ var distancesY = orderedY.slice(0, -1).map(function(y2, index) {
296
+ return orderedY[index + 1] - y2;
297
297
  });
298
- var avgDistanceX = distancesX.reduce(function(sum, x) {
299
- return sum + x;
298
+ var avgDistanceX = distancesX.reduce(function(sum, x2) {
299
+ return sum + x2;
300
300
  }, 0) / distancesX.length;
301
- var avgDistanceY = distancesY.reduce(function(sum, y) {
302
- return sum + y;
301
+ var avgDistanceY = distancesY.reduce(function(sum, y2) {
302
+ return sum + y2;
303
303
  }, 0) / distancesY.length;
304
- var belowAvgDistancesX = distancesX.filter(function(x) {
305
- return x < avgDistanceX;
304
+ var belowAvgDistancesX = distancesX.filter(function(x2) {
305
+ return x2 < avgDistanceX;
306
306
  });
307
- var belowAvgDistancesY = distancesY.filter(function(y) {
308
- return y < avgDistanceY;
307
+ var belowAvgDistancesY = distancesY.filter(function(y2) {
308
+ return y2 < avgDistanceY;
309
309
  });
310
- var betweenDistanceX = belowAvgDistancesX.reduce(function(sum, x) {
311
- return sum + x;
310
+ var betweenDistanceX = belowAvgDistancesX.reduce(function(sum, x2) {
311
+ return sum + x2;
312
312
  }, 0) / belowAvgDistancesX.length;
313
- var betweenDistanceY = belowAvgDistancesY.reduce(function(sum, y) {
314
- return sum + y;
313
+ var betweenDistanceY = belowAvgDistancesY.reduce(function(sum, y2) {
314
+ return sum + y2;
315
315
  }, 0) / belowAvgDistancesY.length;
316
316
  var avgDistance = 0;
317
317
  if (!Number.isNaN(betweenDistanceX) && !Number.isNaN(betweenDistanceY)) {
@@ -330,11 +330,11 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
330
330
  var takenX = /* @__PURE__ */ new Set();
331
331
  for (var i = 0; i < normalized.length; i++) {
332
332
  var _grid$gridX, _grid$gridX$gridY;
333
- var _normalized$i = normalized[i], _x2 = _normalized$i.x, _y2 = _normalized$i.y;
334
- var gridX = Math.round(_x2 / gridSize);
335
- var gridY = Math.round(_y2 / gridSize);
336
- takenY.add(_y2);
337
- takenX.add(_x2);
333
+ var _normalized$i = normalized[i], _x = _normalized$i.x, _y = _normalized$i.y;
334
+ var gridX = Math.round(_x / gridSize);
335
+ var gridY = Math.round(_y / gridSize);
336
+ takenY.add(_y);
337
+ takenX.add(_x);
338
338
  grid[gridX] = (_grid$gridX = grid[gridX]) !== null && _grid$gridX !== void 0 ? _grid$gridX : {};
339
339
  grid[gridX][gridY] = (_grid$gridX$gridY = grid[gridX][gridY]) !== null && _grid$gridX$gridY !== void 0 ? _grid$gridX$gridY : {
340
340
  clusterId: "".concat(gridX, "_").concat(gridY),
@@ -343,36 +343,36 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
343
343
  grid[gridX][gridY].members.push(normalized[i]);
344
344
  }
345
345
  var clusters = {};
346
- var _iterator3 = _createForOfIteratorHelper(Object.keys(grid).map(function(x) {
347
- return parseInt(x, 10);
346
+ var _iterator3 = _createForOfIteratorHelper(Object.keys(grid).map(function(x2) {
347
+ return Number.parseInt(x2, 10);
348
348
  })), _step3;
349
349
  try {
350
350
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
351
- var _x4 = _step3.value;
352
- var _iterator4 = _createForOfIteratorHelper(Object.keys(grid[_x4]).map(function(y) {
353
- return parseInt(y, 10);
351
+ var _x3 = _step3.value;
352
+ var _iterator4 = _createForOfIteratorHelper(Object.keys(grid[_x3]).map(function(y2) {
353
+ return Number.parseInt(y2, 10);
354
354
  })), _step4;
355
355
  try {
356
356
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
357
- var _clusters$grid$_x4$_y, _clusters$grid$_x4$_y2;
358
- var _y4 = _step4.value;
357
+ var _clusters$grid$_x3$_y, _clusters$grid$_x3$_y2;
358
+ var _y3 = _step4.value;
359
359
  var pointHandled = false;
360
- for (var _i4 = 0, _arr = [_x4 - 1, _x4, _x4 + 1]; _i4 < _arr.length; _i4++) {
360
+ for (var _i4 = 0, _arr = [_x3 - 1, _x3, _x3 + 1]; _i4 < _arr.length; _i4++) {
361
361
  var xNeighbour = _arr[_i4];
362
- for (var _i5 = 0, _arr2 = [_y4 - 1, _y4, _y4 + 1]; _i5 < _arr2.length; _i5++) {
362
+ for (var _i5 = 0, _arr2 = [_y3 - 1, _y3, _y3 + 1]; _i5 < _arr2.length; _i5++) {
363
363
  var _grid$xNeighbour;
364
364
  var yNeighbour = _arr2[_i5];
365
365
  if (xNeighbour === void 0 || yNeighbour === void 0) continue;
366
- if (xNeighbour === _x4 && yNeighbour === _y4) continue;
366
+ if (xNeighbour === _x3 && yNeighbour === _y3) continue;
367
367
  if (!((_grid$xNeighbour = grid[xNeighbour]) !== null && _grid$xNeighbour !== void 0 && _grid$xNeighbour[yNeighbour])) continue;
368
368
  pointHandled = true;
369
- grid[_x4][_y4].clusterId = grid[xNeighbour][yNeighbour].clusterId;
369
+ grid[_x3][_y3].clusterId = grid[xNeighbour][yNeighbour].clusterId;
370
370
  break;
371
371
  }
372
372
  if (pointHandled) break;
373
373
  }
374
- clusters[grid[_x4][_y4].clusterId] = (_clusters$grid$_x4$_y = clusters[grid[_x4][_y4].clusterId]) !== null && _clusters$grid$_x4$_y !== void 0 ? _clusters$grid$_x4$_y : [];
375
- (_clusters$grid$_x4$_y2 = clusters[grid[_x4][_y4].clusterId]).push.apply(_clusters$grid$_x4$_y2, _toConsumableArray(grid[_x4][_y4].members));
374
+ clusters[grid[_x3][_y3].clusterId] = (_clusters$grid$_x3$_y = clusters[grid[_x3][_y3].clusterId]) !== null && _clusters$grid$_x3$_y !== void 0 ? _clusters$grid$_x3$_y : [];
375
+ (_clusters$grid$_x3$_y2 = clusters[grid[_x3][_y3].clusterId]).push.apply(_clusters$grid$_x3$_y2, _toConsumableArray(grid[_x3][_y3].members));
376
376
  }
377
377
  } catch (err) {
378
378
  _iterator4.e(err);
@@ -386,13 +386,13 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
386
386
  _iterator3.f();
387
387
  }
388
388
  var clustersInsights = [];
389
- for (var _clusterId in clusters) {
389
+ for (var clusterId in clusters) {
390
390
  var _hints$axesTitle$hori, _hints$axesTitle$vert3;
391
- var size = clusters[_clusterId].reduce(function(sum, _ref8) {
391
+ var size = clusters[clusterId].reduce(function(sum, _ref8) {
392
392
  var value = _ref8.value;
393
393
  return sum + (value !== null && value !== void 0 ? value : 1);
394
394
  }, 0);
395
- var labels = _toConsumableArray(clusters[_clusterId]).sort(function(a, b) {
395
+ var labels = _toConsumableArray(clusters[clusterId]).sort(function(a, b) {
396
396
  return b.value - a.value;
397
397
  }).map(function(_ref9) {
398
398
  var label = _ref9.label;
@@ -401,14 +401,14 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
401
401
  return label !== void 0;
402
402
  });
403
403
  var uniqueLabels = _toConsumableArray(new Set(labels));
404
- var _x3 = clusters[_clusterId].reduce(function(sum, _ref10) {
405
- var x = _ref10.x;
406
- return sum + x;
407
- }, 0) / clusters[_clusterId].length;
408
- var _y3 = clusters[_clusterId].reduce(function(sum, _ref11) {
409
- var y = _ref11.y;
410
- return sum + y;
411
- }, 0) / clusters[_clusterId].length;
404
+ var _x2 = clusters[clusterId].reduce(function(sum, _ref0) {
405
+ var x2 = _ref0.x;
406
+ return sum + x2;
407
+ }, 0) / clusters[clusterId].length;
408
+ var _y2 = clusters[clusterId].reduce(function(sum, _ref1) {
409
+ var y2 = _ref1.y;
410
+ return sum + y2;
411
+ }, 0) / clusters[clusterId].length;
412
412
  clustersInsights.push({
413
413
  type: "cluster",
414
414
  priority: 1,
@@ -416,8 +416,8 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
416
416
  labels: uniqueLabels,
417
417
  relativeSize: "average",
418
418
  center: {
419
- x: _x3,
420
- y: _y3,
419
+ x: _x2,
420
+ y: _y2,
421
421
  xLabel: (_hints$axesTitle$hori = hints.axesTitle.horizontal) !== null && _hints$axesTitle$hori !== void 0 ? _hints$axesTitle$hori : guessedXKey,
422
422
  yLabel: (_hints$axesTitle$vert3 = hints.axesTitle.vertical) !== null && _hints$axesTitle$vert3 !== void 0 ? _hints$axesTitle$vert3 : guessedYKey
423
423
  }
@@ -427,28 +427,28 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
427
427
  clustersInsights.sort(function(a, b) {
428
428
  return b.size - a.size;
429
429
  });
430
- var relativeSizeDistrivution = (_relativeSizeDistrivu = {}, _defineProperty(_relativeSizeDistrivu, "significantly-bigger", {
431
- max: Infinity,
430
+ var relativeSizeDistrivution = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "significantly-bigger", {
431
+ max: Number.POSITIVE_INFINITY,
432
432
  min: 0.85
433
- }), _defineProperty(_relativeSizeDistrivu, "bigger", {
433
+ }), "bigger", {
434
434
  min: 0.7,
435
435
  max: 0.85
436
- }), _defineProperty(_relativeSizeDistrivu, "slightly-bigger", {
436
+ }), "slightly-bigger", {
437
437
  min: 0.6,
438
438
  max: 0.7
439
- }), _defineProperty(_relativeSizeDistrivu, "average", {
439
+ }), "average", {
440
440
  min: 0.4,
441
441
  max: 0.6
442
- }), _defineProperty(_relativeSizeDistrivu, "slightly-smaller", {
442
+ }), "slightly-smaller", {
443
443
  max: 0.4,
444
444
  min: 0.3
445
- }), _defineProperty(_relativeSizeDistrivu, "smaller", {
445
+ }), "smaller", {
446
446
  min: 0.15,
447
447
  max: 0.3
448
- }), _defineProperty(_relativeSizeDistrivu, "significantly-smaller", {
449
- min: -Infinity,
448
+ }), "significantly-smaller", {
449
+ min: Number.NEGATIVE_INFINITY,
450
450
  max: 0.15
451
- }), _relativeSizeDistrivu);
451
+ });
452
452
  var averageSize = clustersInsights.reduce(function(sum, cluster) {
453
453
  return sum + cluster.size;
454
454
  }, 0) / clustersInsights.length;
@@ -489,8 +489,7 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
489
489
  x: 1,
490
490
  y: 1
491
491
  }], {
492
- width: 1,
493
- height: 1
492
+ width: 1
494
493
  });
495
494
  for (var _i3 = 0, _clustersInsights = clustersInsights; _i3 < _clustersInsights.length; _i3++) {
496
495
  var clustersInsight = _clustersInsights[_i3];
@@ -535,12 +534,12 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
535
534
  var allRowsIds = data.map(makeRowKey);
536
535
  var groupedValues = {};
537
536
  for (var _i6 = 0; _i6 < data.length; _i6++) {
538
- var _groupedValues$key, _hints$titles$getHori9, _hints$titles$getHori10, _hints$titles5;
537
+ var _groupedValues$key, _hints$titles$getHori9, _hints$titles$getHori0, _hints$titles5;
539
538
  var row = data[_i6];
540
539
  var key = allRowsIds[_i6];
541
540
  var groupKeyValue = getPropByPath(row, groupKeys[0]);
542
541
  groupedValues[key] = (_groupedValues$key = groupedValues[key]) !== null && _groupedValues$key !== void 0 ? _groupedValues$key : {
543
- groupName: (_hints$titles$getHori9 = (_hints$titles$getHori10 = (_hints$titles5 = hints.titles).getHorizontalAxesTitle) === null || _hints$titles$getHori10 === void 0 ? void 0 : _hints$titles$getHori10.call(_hints$titles5, groupKeyValue)) !== null && _hints$titles$getHori9 !== void 0 ? _hints$titles$getHori9 : groupKeyValue,
542
+ groupName: (_hints$titles$getHori9 = (_hints$titles$getHori0 = (_hints$titles5 = hints.titles).getHorizontalAxesTitle) === null || _hints$titles$getHori0 === void 0 ? void 0 : _hints$titles$getHori0.call(_hints$titles5, groupKeyValue)) !== null && _hints$titles$getHori9 !== void 0 ? _hints$titles$getHori9 : groupKeyValue,
544
543
  rows: []
545
544
  };
546
545
  groupedValues[key].rows.push(row);
@@ -556,9 +555,9 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
556
555
  fields = fields.filter(function(key2) {
557
556
  return !grouppingKeys[key2];
558
557
  });
559
- var groups = Object.entries(groupedValues).map(function(_ref12) {
558
+ var groups = Object.entries(groupedValues).map(function(_ref10) {
560
559
  var _group$groupName;
561
- var _ref13 = _slicedToArray(_ref12, 2), groupKey = _ref13[0], group = _ref13[1];
560
+ var _ref11 = _slicedToArray(_ref10, 2), groupKey = _ref11[0], group = _ref11[1];
562
561
  var values2 = [];
563
562
  var _iterator5 = _createForOfIteratorHelper(group.rows), _step5;
564
563
  try {
@@ -567,10 +566,10 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
567
566
  var _iterator6 = _createForOfIteratorHelper(fields), _step6;
568
567
  try {
569
568
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {
570
- var _ref15, _hints$titles$valuesA, _hints$titles$getVert, _hints$titles6;
569
+ var _ref13, _hints$titles$valuesA, _hints$titles$getVert, _hints$titles6;
571
570
  var field = _step6.value;
572
571
  values2.push({
573
- label: (_ref15 = (_hints$titles$valuesA = hints.titles.valuesAxes[field]) !== null && _hints$titles$valuesA !== void 0 ? _hints$titles$valuesA : (_hints$titles$getVert = (_hints$titles6 = hints.titles).getVerticalAxesTitle) === null || _hints$titles$getVert === void 0 ? void 0 : _hints$titles$getVert.call(_hints$titles6, field)) !== null && _ref15 !== void 0 ? _ref15 : field,
572
+ label: (_ref13 = (_hints$titles$valuesA = hints.titles.valuesAxes[field]) !== null && _hints$titles$valuesA !== void 0 ? _hints$titles$valuesA : (_hints$titles$getVert = (_hints$titles6 = hints.titles).getVerticalAxesTitle) === null || _hints$titles$getVert === void 0 ? void 0 : _hints$titles$getVert.call(_hints$titles6, field)) !== null && _ref13 !== void 0 ? _ref13 : field,
574
573
  value: getPropByPath(_row, field)
575
574
  });
576
575
  }
@@ -589,8 +588,8 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
589
588
  if (typeof a.value !== "number" || typeof b.value !== "number") return 0;
590
589
  return b.value - a.value;
591
590
  });
592
- var averageValue = values2.reduce(function(sum, _ref14) {
593
- var value = _ref14.value;
591
+ var averageValue = values2.reduce(function(sum, _ref12) {
592
+ var value = _ref12.value;
594
593
  return sum + value;
595
594
  }, 0) / values2.length;
596
595
  return {
@@ -620,9 +619,9 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
620
619
  _fields2.push.apply(_fields2, _toConsumableArray(Object.keys(keysMap)));
621
620
  }
622
621
  var values = _fields2.map(function(field) {
623
- var _ref16, _hints$titles$valuesA2, _hints$titles$getValu, _hints$titles7;
622
+ var _ref14, _hints$titles$valuesA2, _hints$titles$getValu, _hints$titles7;
624
623
  return {
625
- label: (_ref16 = (_hints$titles$valuesA2 = hints.titles.valuesAxes[field]) !== null && _hints$titles$valuesA2 !== void 0 ? _hints$titles$valuesA2 : (_hints$titles$getValu = (_hints$titles7 = hints.titles).getValueAxesTitle) === null || _hints$titles$getValu === void 0 ? void 0 : _hints$titles$getValu.call(_hints$titles7, field)) !== null && _ref16 !== void 0 ? _ref16 : field,
624
+ label: (_ref14 = (_hints$titles$valuesA2 = hints.titles.valuesAxes[field]) !== null && _hints$titles$valuesA2 !== void 0 ? _hints$titles$valuesA2 : (_hints$titles$getValu = (_hints$titles7 = hints.titles).getValueAxesTitle) === null || _hints$titles$getValu === void 0 ? void 0 : _hints$titles$getValu.call(_hints$titles7, field)) !== null && _ref14 !== void 0 ? _ref14 : field,
626
625
  value: getPropByPath(data, field)
627
626
  };
628
627
  });
@@ -653,8 +652,8 @@ var extractDataInsights = function extractDataInsights2(data, hints, config) {
653
652
  if (typeof a.value !== "number" || typeof b.value !== "number") return 0;
654
653
  return b.value - a.value;
655
654
  });
656
- var averageValue = values2.reduce(function(sum, _ref17) {
657
- var value = _ref17.value;
655
+ var averageValue = values2.reduce(function(sum, _ref15) {
656
+ var value = _ref15.value;
658
657
  return sum + value;
659
658
  }, 0) / values2.length;
660
659
  return {
@@ -1,4 +1,4 @@
1
- import { createIntlCache, createIntl } from "@formatjs/intl";
1
+ import { createIntl, createIntlCache } from "@formatjs/intl";
2
2
  import { normalizeLocale } from "./locale.mjs";
3
3
  var messagesCache = createIntlCache();
4
4
  var intlCache = {};
@@ -1,12 +1,12 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  var normalizeLocale = function normalizeLocale2(providedLocale) {
3
- var _ref, _providedLocale, _globalThis$navigator;
3
+ var _ref, _globalThis$navigator;
4
4
  var translations = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5
5
  var translationNames = {};
6
6
  for (var _locale in translations) {
7
7
  translationNames[_locale.toLowerCase()] = _locale;
8
8
  }
9
- providedLocale = (_ref = (_providedLocale = providedLocale) !== null && _providedLocale !== void 0 ? _providedLocale : isAvailableLocale(globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$navigator = globalThis.navigator) === null || _globalThis$navigator === void 0 ? void 0 : _globalThis$navigator.language, translations)) !== null && _ref !== void 0 ? _ref : "en";
9
+ providedLocale = (_ref = providedLocale !== null && providedLocale !== void 0 ? providedLocale : isAvailableLocale(globalThis === null || globalThis === void 0 || (_globalThis$navigator = globalThis.navigator) === null || _globalThis$navigator === void 0 ? void 0 : _globalThis$navigator.language, translations)) !== null && _ref !== void 0 ? _ref : "en";
10
10
  var locale = providedLocale.toLowerCase();
11
11
  if (locale.includes("-") && !translations[locale]) {
12
12
  var _locale$split = locale.split("-"), _locale$split2 = _slicedToArray(_locale$split, 1), localeBase = _locale$split2[0];
@@ -44,11 +44,11 @@ var isReactComponent = function isReactComponent2(obj) {
44
44
  return _typeof(obj) === "object" && obj && "displayName" in obj && typeof obj.displayName === "string";
45
45
  };
46
46
  var guessNumberAsTimestampMinDate = (/* @__PURE__ */ new Date("1975")).getTime();
47
- var defaultValueFormatter = function defaultValueFormatter2(intl, value) {
47
+ var _defaultValueFormatter = function defaultValueFormatter(intl, value) {
48
48
  var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, siblingsTimeMark = _ref.siblingsTimeMark, maxListSymbols = _ref.maxListSymbols, datesWithTime = _ref.datesWithTime;
49
49
  if (typeof value === "number") {
50
50
  if (value >= guessNumberAsTimestampMinDate) {
51
- return defaultValueFormatter2(intl, new Date(value), {
51
+ return _defaultValueFormatter(intl, new Date(value), {
52
52
  siblingsTimeMark,
53
53
  maxListSymbols,
54
54
  datesWithTime
@@ -69,7 +69,7 @@ var defaultValueFormatter = function defaultValueFormatter2(intl, value) {
69
69
  }
70
70
  if (Array.isArray(value)) {
71
71
  var formattedValues = value.map(function(subValue) {
72
- return defaultValueFormatter2(intl, subValue, {
72
+ return _defaultValueFormatter(intl, subValue, {
73
73
  siblingsTimeMark,
74
74
  maxListSymbols,
75
75
  datesWithTime
@@ -92,7 +92,7 @@ var formatValuesList = function formatValuesList2(values, _ref2) {
92
92
  var result = values.slice(0, limit).map(function(_ref3) {
93
93
  var rawValue = _ref3.value, label = _ref3.label;
94
94
  if (rawValue === void 0) return label;
95
- var value = defaultValueFormatter(intl, rawValue, {
95
+ var value = _defaultValueFormatter(intl, rawValue, {
96
96
  datesWithTime,
97
97
  maxListSymbols
98
98
  });
@@ -121,12 +121,12 @@ var serialize = function serialize2(_ref4, _ref5, _ref6) {
121
121
  var intl = getIntl(locale, translations, availableLocales);
122
122
  var dataRangeSummary = intl.formatList(dataRange.map(function(range) {
123
123
  var _valuesFormatter, _valuesFormatter2, _titlesFormatter;
124
- var from = (_valuesFormatter = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(range.from, range.label)) !== null && _valuesFormatter !== void 0 ? _valuesFormatter : defaultValueFormatter(intl, range.from, {
124
+ var from = (_valuesFormatter = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(range.from, range.label)) !== null && _valuesFormatter !== void 0 ? _valuesFormatter : _defaultValueFormatter(intl, range.from, {
125
125
  siblingsTimeMark: range.to,
126
126
  datesWithTime,
127
127
  maxListSymbols
128
128
  });
129
- var to = (_valuesFormatter2 = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(range.to, range.label)) !== null && _valuesFormatter2 !== void 0 ? _valuesFormatter2 : defaultValueFormatter(intl, range.to, {
129
+ var to = (_valuesFormatter2 = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(range.to, range.label)) !== null && _valuesFormatter2 !== void 0 ? _valuesFormatter2 : _defaultValueFormatter(intl, range.to, {
130
130
  siblingsTimeMark: range.from,
131
131
  datesWithTime,
132
132
  maxListSymbols
@@ -193,12 +193,12 @@ var serialize = function serialize2(_ref4, _ref5, _ref6) {
193
193
  trend: intl.formatMessage({
194
194
  id: "trend-".concat(trend.change.strength)
195
195
  }),
196
- from: (_valuesFormatter5 = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(trend.from, trend.dataKey)) !== null && _valuesFormatter5 !== void 0 ? _valuesFormatter5 : defaultValueFormatter(intl, trend.from, {
196
+ from: (_valuesFormatter5 = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(trend.from, trend.dataKey)) !== null && _valuesFormatter5 !== void 0 ? _valuesFormatter5 : _defaultValueFormatter(intl, trend.from, {
197
197
  siblingsTimeMark: trend.to,
198
198
  datesWithTime,
199
199
  maxListSymbols
200
200
  }),
201
- to: (_valuesFormatter6 = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(trend.to, trend.dataKey)) !== null && _valuesFormatter6 !== void 0 ? _valuesFormatter6 : defaultValueFormatter(intl, trend.to, {
201
+ to: (_valuesFormatter6 = valuesFormatter === null || valuesFormatter === void 0 ? void 0 : valuesFormatter(trend.to, trend.dataKey)) !== null && _valuesFormatter6 !== void 0 ? _valuesFormatter6 : _defaultValueFormatter(intl, trend.to, {
202
202
  siblingsTimeMark: trend.from,
203
203
  datesWithTime,
204
204
  maxListSymbols
@@ -285,7 +285,7 @@ var serialize = function serialize2(_ref4, _ref5, _ref6) {
285
285
  return _summary;
286
286
  } else if (dataType === "values-set") {
287
287
  var _titlesFormatter8;
288
- var _ref9 = insights, _ref10 = _slicedToArray(_ref9, 1), valuesInsight = _ref10[0];
288
+ var _ref9 = insights, _ref0 = _slicedToArray(_ref9, 1), valuesInsight = _ref0[0];
289
289
  var _entities2 = intl.formatMessage({
290
290
  id: "entity-type-values"
291
291
  }, {
@@ -324,8 +324,8 @@ var serialize = function serialize2(_ref4, _ref5, _ref6) {
324
324
  minValuesCount,
325
325
  maxValuesCount
326
326
  });
327
- var _entitiesList3 = groupInsights.slice(0, groupsLimit).map(function(_ref11) {
328
- var label = _ref11.label, values = _ref11.values;
327
+ var _entitiesList3 = groupInsights.slice(0, groupsLimit).map(function(_ref1) {
328
+ var label = _ref1.label, values = _ref1.values;
329
329
  var formattedValues = formatValuesList(values, {
330
330
  intl,
331
331
  limit: valuesLimit,
@@ -358,6 +358,6 @@ var serialize = function serialize2(_ref4, _ref5, _ref6) {
358
358
  return null;
359
359
  };
360
360
  export {
361
- defaultValueFormatter,
361
+ _defaultValueFormatter as defaultValueFormatter,
362
362
  serialize
363
363
  };
@@ -6,12 +6,12 @@ import it from "./it.json.mjs";
6
6
  import ja from "./ja.json.mjs";
7
7
  import ko from "./ko.json.mjs";
8
8
  import nl from "./nl.json.mjs";
9
+ import pl from "./pl.json.mjs";
9
10
  import pt from "./pt.json.mjs";
11
+ import sv from "./sv.json.mjs";
10
12
  import tr from "./tr.json.mjs";
11
13
  import vi from "./vi.json.mjs";
12
14
  import zh from "./zh.json.mjs";
13
- import pl from "./pl.json.mjs";
14
- import sv from "./sv.json.mjs";
15
15
  var localizedMessages = {
16
16
  de,
17
17
  en,
@@ -6,12 +6,12 @@ import it from "./it.json.mjs";
6
6
  import ja from "./ja.json.mjs";
7
7
  import ko from "./ko.json.mjs";
8
8
  import nl from "./nl.json.mjs";
9
+ import pl from "./pl.json.mjs";
9
10
  import pt from "./pt.json.mjs";
11
+ import sv from "./sv.json.mjs";
10
12
  import tr from "./tr.json.mjs";
11
13
  import vi from "./vi.json.mjs";
12
14
  import zh from "./zh.json.mjs";
13
- import pl from "./pl.json.mjs";
14
- import sv from "./sv.json.mjs";
15
15
  var localizedMessages = {
16
16
  de,
17
17
  en,
@@ -3,46 +3,49 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
4
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
5
5
  import _createClass from "@babel/runtime/helpers/esm/createClass";
6
- import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
8
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
9
  import _inherits from "@babel/runtime/helpers/esm/inherits";
8
- import _createSuper from "@babel/runtime/helpers/esm/createSuper";
9
10
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
10
11
  import { sstyled, assignProps, Component } from "@semcore/core";
11
- import { makeDataHintsContainer } from "../../a11y/hints.mjs";
12
- import { interpolateValue } from "../../utils.mjs";
13
- import React from "react";
12
+ import { extractAriaProps } from "@semcore/core/lib/utils/ariaProps";
14
13
  import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
15
- import { LegendFlex } from "../ChartLegend/LegendFlex/LegendFlex.mjs";
16
- import { LegendTable } from "../ChartLegend/LegendTable/LegendTable.mjs";
17
14
  import { Flex } from "@semcore/flex-box";
15
+ import { Text } from "@semcore/typography";
16
+ import React from "react";
18
17
  import Plot from "../../Plot.mjs";
18
+ import { LegendFlex } from "../ChartLegend/LegendFlex/LegendFlex.mjs";
19
+ import { LegendTable } from "../ChartLegend/LegendTable/LegendTable.mjs";
19
20
  import { YAxis, XAxis } from "../../Axis.mjs";
20
- import { Text } from "@semcore/typography";
21
- import { extractAriaProps } from "@semcore/core/lib/utils/ariaProps";
21
+ import { interpolateValue } from "../../utils.mjs";
22
+ import { makeDataHintsContainer } from "../../a11y/hints.mjs";
23
+ function _callSuper(t, o, e) {
24
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
25
+ }
22
26
  var AbstractChart = /* @__PURE__ */ function(_Component) {
23
- _inherits(AbstractChart2, _Component);
24
- var _super = _createSuper(AbstractChart2);
25
27
  function AbstractChart2(props) {
26
28
  var _this;
27
29
  _classCallCheck(this, AbstractChart2);
28
- _this = _super.call(this, props);
29
- _defineProperty(_assertThisInitialized(_this), "plotPadding", 6);
30
- _defineProperty(_assertThisInitialized(_this), "dataHints", makeDataHintsContainer());
31
- _defineProperty(_assertThisInitialized(_this), "state", {
30
+ _this = _callSuper(this, AbstractChart2, [props]);
31
+ _defineProperty(_this, "plotPadding", 6);
32
+ _defineProperty(_this, "dataHints", makeDataHintsContainer());
33
+ _defineProperty(_this, "state", {
32
34
  dataDefinitions: _this.getDefaultDataDefinitions(),
33
35
  highlightedLine: -1,
34
36
  withTrend: false
35
37
  });
36
- _this.setHighlightedLine = _this.setHighlightedLine.bind(_assertThisInitialized(_this));
37
- _this.handleChangeVisible = _this.handleChangeVisible.bind(_assertThisInitialized(_this));
38
- _this.handleMouseEnter = _this.handleMouseEnter.bind(_assertThisInitialized(_this));
39
- _this.handleMouseLeave = _this.handleMouseLeave.bind(_assertThisInitialized(_this));
40
- _this.resolveColor = _this.resolveColor.bind(_assertThisInitialized(_this));
41
- _this.tooltipValueFormatter = _this.tooltipValueFormatter.bind(_assertThisInitialized(_this));
42
- _this.handleWithTrendChange = _this.handleWithTrendChange.bind(_assertThisInitialized(_this));
38
+ _this.setHighlightedLine = _this.setHighlightedLine.bind(_this);
39
+ _this.handleChangeVisible = _this.handleChangeVisible.bind(_this);
40
+ _this.handleMouseEnter = _this.handleMouseEnter.bind(_this);
41
+ _this.handleMouseLeave = _this.handleMouseLeave.bind(_this);
42
+ _this.resolveColor = _this.resolveColor.bind(_this);
43
+ _this.tooltipValueFormatter = _this.tooltipValueFormatter.bind(_this);
44
+ _this.handleWithTrendChange = _this.handleWithTrendChange.bind(_this);
43
45
  return _this;
44
46
  }
45
- _createClass(AbstractChart2, [{
47
+ _inherits(AbstractChart2, _Component);
48
+ return _createClass(AbstractChart2, [{
46
49
  key: "componentDidUpdate",
47
50
  value: function componentDidUpdate(prevProps) {
48
51
  if (prevProps.data !== this.props.data || prevProps.legendProps !== this.props.legendProps) {
@@ -58,7 +61,7 @@ var AbstractChart = /* @__PURE__ */ function(_Component) {
58
61
  var _this$props = this.props, data = _this$props.data, legendProps = _this$props.legendProps;
59
62
  return this.dataKeys.map(function(key, index) {
60
63
  var _legendProps$legendMa, _legendData$label, _legendData$icon, _legendData$defaultCh;
61
- var legendData = legendProps === null || legendProps === void 0 ? void 0 : (_legendProps$legendMa = legendProps.legendMap) === null || _legendProps$legendMa === void 0 ? void 0 : _legendProps$legendMa[key];
64
+ var legendData = legendProps === null || legendProps === void 0 || (_legendProps$legendMa = legendProps.legendMap) === null || _legendProps$legendMa === void 0 ? void 0 : _legendProps$legendMa[key];
62
65
  var dataDefinition = {
63
66
  id: key,
64
67
  label: (_legendData$label = legendData === null || legendData === void 0 ? void 0 : legendData.label) !== null && _legendData$label !== void 0 ? _legendData$label : key,
@@ -77,7 +80,6 @@ var AbstractChart = /* @__PURE__ */ function(_Component) {
77
80
  if (legendData && "columns" in legendData) {
78
81
  dataDefinition.columns = legendData.columns || [];
79
82
  } else if (!Array.isArray(data)) {
80
- var _value;
81
83
  var value = void 0;
82
84
  var dataValue = data[key];
83
85
  if (data instanceof Map) {
@@ -99,7 +101,7 @@ var AbstractChart = /* @__PURE__ */ function(_Component) {
99
101
  }, percent !== void 0 ? "".concat(percent, "%") : ""), /* @__PURE__ */ React.createElement(Text, {
100
102
  key: "".concat(key, "_value"),
101
103
  use: value ? "primary" : "secondary"
102
- }, (_value = value) !== null && _value !== void 0 ? _value : "n/a")];
104
+ }, value !== null && value !== void 0 ? value : "n/a")];
103
105
  }
104
106
  return dataDefinition;
105
107
  });
@@ -312,17 +314,17 @@ var AbstractChart = /* @__PURE__ */ function(_Component) {
312
314
  var _this$state = this.state, dataDefinitions = _this$state.dataDefinitions, withTrend = _this$state.withTrend;
313
315
  var lProps = _objectSpread(_objectSpread({}, this.defaultLegendProps()), legendProps);
314
316
  var commonLegendProps = {
315
- dataHints: this.dataHints,
316
- items: dataDefinitions,
317
- size: lProps.size,
318
- shape: lProps.shape,
319
- w: lProps.w,
320
- h: lProps.h,
317
+ "dataHints": this.dataHints,
318
+ "items": dataDefinitions,
319
+ "size": lProps.size,
320
+ "shape": lProps.shape,
321
+ "w": lProps.w,
322
+ "h": lProps.h,
321
323
  patterns,
322
- direction: (_lProps$direction = lProps.direction) !== null && _lProps$direction !== void 0 ? _lProps$direction : direction === "row" || direction === "row-reverse" ? "column" : "row",
323
- onChangeVisibleItem: lProps.disableSelectItems ? void 0 : callAllEventHandlers(lProps.onChangeVisibleItem, this.handleChangeVisible),
324
- onMouseEnterItem: lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseEnterItem, this.handleMouseEnter),
325
- onMouseLeaveItem: lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseLeaveItem, this.handleMouseLeave),
324
+ "direction": (_lProps$direction = lProps.direction) !== null && _lProps$direction !== void 0 ? _lProps$direction : direction === "row" || direction === "row-reverse" ? "column" : "row",
325
+ "onChangeVisibleItem": lProps.disableSelectItems ? void 0 : callAllEventHandlers(lProps.onChangeVisibleItem, this.handleChangeVisible),
326
+ "onMouseEnterItem": lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseEnterItem, this.handleMouseEnter),
327
+ "onMouseLeaveItem": lProps.disableHoverItems ? void 0 : callAllEventHandlers(lProps.onMouseLeaveItem, this.handleMouseLeave),
326
328
  "aria-label": this.getLegendAriaLabel()
327
329
  };
328
330
  if (lProps.legendType === "Table") {
@@ -393,7 +395,6 @@ var AbstractChart = /* @__PURE__ */ function(_Component) {
393
395
  }, extractedAriaProps)), this.renderAxis(), this.renderTooltip(), this.renderChart()));
394
396
  }
395
397
  }]);
396
- return AbstractChart2;
397
398
  }(Component);
398
399
  _defineProperty(AbstractChart, "style", {});
399
400
  _defineProperty(AbstractChart, "defaultProps", {