@fluentui/react-charts 9.3.27 → 9.3.29

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 (440) hide show
  1. package/CHANGELOG.md +32 -2
  2. package/dist/index.d.cts +51 -0
  3. package/dist/index.d.ts +51 -0
  4. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -4
  5. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
  6. package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +1 -1
  7. package/lib/components/AnnotationOnlyChart/index.js.map +1 -1
  8. package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +1 -1
  9. package/lib/components/AreaChart/AreaChart.js +35 -5
  10. package/lib/components/AreaChart/AreaChart.js.map +1 -1
  11. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  12. package/lib/components/AreaChart/index.js.map +1 -1
  13. package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
  14. package/lib/components/ChartTable/ChartTable.js.map +1 -1
  15. package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
  16. package/lib/components/ChartTable/index.js.map +1 -1
  17. package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
  18. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +19 -29
  19. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
  20. package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
  21. package/lib/components/CommonComponents/Annotations/index.js.map +1 -1
  22. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +2 -2
  23. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -1
  24. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +2 -2
  25. package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -1
  26. package/lib/components/CommonComponents/CartesianChart.js +17 -15
  27. package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
  28. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  29. package/lib/components/CommonComponents/ChartPopover.js +3 -2
  30. package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
  31. package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
  32. package/lib/components/CommonComponents/index.js.map +1 -1
  33. package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
  34. package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
  35. package/lib/components/DeclarativeChart/DeclarativeChart.js +9 -9
  36. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  37. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +4 -4
  38. package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
  39. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +92 -110
  40. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  41. package/lib/components/DeclarativeChart/index.js.map +1 -1
  42. package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
  43. package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
  44. package/lib/components/DonutChart/Arc/index.js.map +1 -1
  45. package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
  46. package/lib/components/DonutChart/DonutChart.js.map +1 -1
  47. package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
  48. package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
  49. package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
  50. package/lib/components/DonutChart/Pie/index.js.map +1 -1
  51. package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -1
  52. package/lib/components/DonutChart/index.js.map +1 -1
  53. package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
  54. package/lib/components/FunnelChart/FunnelChart.js +5 -5
  55. package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
  56. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
  57. package/lib/components/FunnelChart/funnelGeometry.js.map +1 -1
  58. package/lib/components/FunnelChart/index.js.map +1 -1
  59. package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
  60. package/lib/components/GanttChart/GanttChart.js +4 -3
  61. package/lib/components/GanttChart/GanttChart.js.map +1 -1
  62. package/lib/components/GanttChart/GanttChart.types.js.map +1 -1
  63. package/lib/components/GanttChart/index.js.map +1 -1
  64. package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
  65. package/lib/components/GaugeChart/GaugeChart.js +34 -13
  66. package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
  67. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  68. package/lib/components/GaugeChart/index.js.map +1 -1
  69. package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
  70. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +45 -46
  71. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
  72. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  73. package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
  74. package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
  75. package/lib/components/HeatMapChart/HeatMapChart.js +1 -0
  76. package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
  77. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  78. package/lib/components/HeatMapChart/index.js.map +1 -1
  79. package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -1
  80. package/lib/components/HorizontalBarChart/HorizontalBarChart.js +5 -6
  81. package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
  82. package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
  83. package/lib/components/HorizontalBarChart/index.js.map +1 -1
  84. package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
  85. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +4 -4
  86. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
  87. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
  88. package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
  89. package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
  90. package/lib/components/Legends/Legends.js +16 -20
  91. package/lib/components/Legends/Legends.js.map +1 -1
  92. package/lib/components/Legends/Legends.types.js.map +1 -1
  93. package/lib/components/Legends/OverflowMenu.js +13 -10
  94. package/lib/components/Legends/OverflowMenu.js.map +1 -1
  95. package/lib/components/Legends/index.js.map +1 -1
  96. package/lib/components/Legends/shape.js.map +1 -1
  97. package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
  98. package/lib/components/LineChart/LineChart.js +40 -36
  99. package/lib/components/LineChart/LineChart.js.map +1 -1
  100. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  101. package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
  102. package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
  103. package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
  104. package/lib/components/LineChart/index.js.map +1 -1
  105. package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
  106. package/lib/components/PolarChart/PolarChart.js +3 -4
  107. package/lib/components/PolarChart/PolarChart.js.map +1 -1
  108. package/lib/components/PolarChart/PolarChart.types.js.map +1 -1
  109. package/lib/components/PolarChart/PolarChart.utils.js +3 -3
  110. package/lib/components/PolarChart/PolarChart.utils.js.map +1 -1
  111. package/lib/components/PolarChart/index.js.map +1 -1
  112. package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js.map +1 -1
  113. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +1 -1
  114. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
  115. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
  116. package/lib/components/ResponsiveContainer/index.js.map +1 -1
  117. package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -1
  118. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
  119. package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
  120. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  121. package/lib/components/SankeyChart/index.js.map +1 -1
  122. package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
  123. package/lib/components/ScatterChart/ScatterChart.js +3 -3
  124. package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
  125. package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
  126. package/lib/components/ScatterChart/index.js.map +1 -1
  127. package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
  128. package/lib/components/Sparkline/Sparkline.js +1 -3
  129. package/lib/components/Sparkline/Sparkline.js.map +1 -1
  130. package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
  131. package/lib/components/Sparkline/index.js.map +1 -1
  132. package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -1
  133. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -1
  134. package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -1
  135. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +2 -2
  136. package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -1
  137. package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +1 -0
  138. package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +1 -1
  139. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +88 -88
  140. package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
  141. package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js.map +1 -1
  142. package/lib/components/VegaDeclarativeChart/index.js.map +1 -1
  143. package/lib/components/VerticalBarChart/VerticalBarChart.js +2 -1
  144. package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
  145. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  146. package/lib/components/VerticalBarChart/index.js.map +1 -1
  147. package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
  148. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +6 -5
  149. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
  150. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  151. package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
  152. package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
  153. package/lib/types/ChartAnnotation.js.map +1 -1
  154. package/lib/types/DataPoint.js.map +1 -1
  155. package/lib/types/EventAnnotation.js.map +1 -1
  156. package/lib/types/LegendDataItem.js.map +1 -1
  157. package/lib/types/index.js.map +1 -1
  158. package/lib/utilities/ChartTitle.js +3 -4
  159. package/lib/utilities/ChartTitle.js.map +1 -1
  160. package/lib/utilities/Common.styles.js +1 -4
  161. package/lib/utilities/Common.styles.js.map +1 -1
  162. package/lib/utilities/Common.styles.raw.js +1 -4
  163. package/lib/utilities/Common.styles.raw.js.map +1 -1
  164. package/lib/utilities/FocusableTooltipText.js.map +1 -1
  165. package/lib/utilities/KeyCodes.js.map +1 -1
  166. package/lib/utilities/SVGTooltipText.js.map +1 -1
  167. package/lib/utilities/async-utils.js.map +1 -1
  168. package/lib/utilities/colors.js.map +1 -1
  169. package/lib/utilities/getWindow.js.map +1 -1
  170. package/lib/utilities/hooks.js.map +1 -1
  171. package/lib/utilities/image-export-utils.js.map +1 -1
  172. package/lib/utilities/index.js.map +1 -1
  173. package/lib/utilities/overflow-utils.js.map +1 -1
  174. package/lib/utilities/scatterpolar-utils.js +3 -4
  175. package/lib/utilities/scatterpolar-utils.js.map +1 -1
  176. package/lib/utilities/string.js.map +1 -1
  177. package/lib/utilities/test-data/specialChartNames.js +11 -0
  178. package/lib/utilities/test-data/specialChartNames.js.map +1 -0
  179. package/lib/utilities/test-data.js.map +1 -1
  180. package/lib/utilities/utilities.js +9 -9
  181. package/lib/utilities/utilities.js.map +1 -1
  182. package/lib/utilities/vbc-utils.js.map +1 -1
  183. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.cjs +1 -4
  184. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.cjs.map +1 -1
  185. package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.cjs.map +1 -1
  186. package/lib-commonjs/components/AnnotationOnlyChart/index.cjs.map +1 -1
  187. package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.cjs.map +1 -1
  188. package/lib-commonjs/components/AreaChart/AreaChart.cjs +35 -5
  189. package/lib-commonjs/components/AreaChart/AreaChart.cjs.map +1 -1
  190. package/lib-commonjs/components/AreaChart/AreaChart.types.cjs.map +1 -1
  191. package/lib-commonjs/components/AreaChart/index.cjs.map +1 -1
  192. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs +3 -3
  193. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs.map +1 -1
  194. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.cjs +3 -3
  195. package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.cjs.map +1 -1
  196. package/lib-commonjs/components/ChartTable/ChartTable.cjs.map +1 -1
  197. package/lib-commonjs/components/ChartTable/ChartTable.types.cjs.map +1 -1
  198. package/lib-commonjs/components/ChartTable/index.cjs.map +1 -1
  199. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs +3 -3
  200. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs.map +1 -1
  201. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.cjs +3 -3
  202. package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.cjs.map +1 -1
  203. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.cjs +19 -29
  204. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.cjs.map +1 -1
  205. package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.cjs.map +1 -1
  206. package/lib-commonjs/components/CommonComponents/Annotations/index.cjs.map +1 -1
  207. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs +14 -14
  208. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs.map +1 -1
  209. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.cjs +14 -14
  210. package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.cjs.map +1 -1
  211. package/lib-commonjs/components/CommonComponents/CartesianChart.cjs +17 -15
  212. package/lib-commonjs/components/CommonComponents/CartesianChart.cjs.map +1 -1
  213. package/lib-commonjs/components/CommonComponents/CartesianChart.types.cjs.map +1 -1
  214. package/lib-commonjs/components/CommonComponents/ChartPopover.cjs +3 -2
  215. package/lib-commonjs/components/CommonComponents/ChartPopover.cjs.map +1 -1
  216. package/lib-commonjs/components/CommonComponents/ChartPopover.types.cjs.map +1 -1
  217. package/lib-commonjs/components/CommonComponents/index.cjs.map +1 -1
  218. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs +3 -3
  219. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs.map +1 -1
  220. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.cjs +3 -3
  221. package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.cjs.map +1 -1
  222. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs +3 -3
  223. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs.map +1 -1
  224. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.cjs +3 -3
  225. package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.cjs.map +1 -1
  226. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.cjs +9 -9
  227. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.cjs.map +1 -1
  228. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.cjs +13 -13
  229. package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.cjs.map +1 -1
  230. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.cjs +122 -140
  231. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.cjs.map +1 -1
  232. package/lib-commonjs/components/DeclarativeChart/index.cjs.map +1 -1
  233. package/lib-commonjs/components/DonutChart/Arc/Arc.cjs.map +1 -1
  234. package/lib-commonjs/components/DonutChart/Arc/Arc.types.cjs.map +1 -1
  235. package/lib-commonjs/components/DonutChart/Arc/index.cjs.map +1 -1
  236. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs +3 -3
  237. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs.map +1 -1
  238. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.cjs +3 -3
  239. package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.cjs.map +1 -1
  240. package/lib-commonjs/components/DonutChart/DonutChart.cjs.map +1 -1
  241. package/lib-commonjs/components/DonutChart/DonutChart.types.cjs.map +1 -1
  242. package/lib-commonjs/components/DonutChart/Pie/Pie.cjs.map +1 -1
  243. package/lib-commonjs/components/DonutChart/Pie/Pie.types.cjs.map +1 -1
  244. package/lib-commonjs/components/DonutChart/Pie/index.cjs.map +1 -1
  245. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs +3 -3
  246. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs.map +1 -1
  247. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.cjs +3 -3
  248. package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.cjs.map +1 -1
  249. package/lib-commonjs/components/DonutChart/index.cjs.map +1 -1
  250. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs +3 -3
  251. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs.map +1 -1
  252. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.cjs +3 -3
  253. package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.cjs.map +1 -1
  254. package/lib-commonjs/components/FunnelChart/FunnelChart.cjs +5 -5
  255. package/lib-commonjs/components/FunnelChart/FunnelChart.cjs.map +1 -1
  256. package/lib-commonjs/components/FunnelChart/FunnelChart.types.cjs.map +1 -1
  257. package/lib-commonjs/components/FunnelChart/funnelGeometry.cjs +6 -6
  258. package/lib-commonjs/components/FunnelChart/funnelGeometry.cjs.map +1 -1
  259. package/lib-commonjs/components/FunnelChart/index.cjs.map +1 -1
  260. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs +3 -3
  261. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs.map +1 -1
  262. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.cjs +3 -3
  263. package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.cjs.map +1 -1
  264. package/lib-commonjs/components/GanttChart/GanttChart.cjs +4 -3
  265. package/lib-commonjs/components/GanttChart/GanttChart.cjs.map +1 -1
  266. package/lib-commonjs/components/GanttChart/GanttChart.types.cjs.map +1 -1
  267. package/lib-commonjs/components/GanttChart/index.cjs.map +1 -1
  268. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.cjs +3 -3
  269. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.cjs.map +1 -1
  270. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.cjs +3 -3
  271. package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.cjs.map +1 -1
  272. package/lib-commonjs/components/GaugeChart/GaugeChart.cjs +41 -20
  273. package/lib-commonjs/components/GaugeChart/GaugeChart.cjs.map +1 -1
  274. package/lib-commonjs/components/GaugeChart/GaugeChart.types.cjs.map +1 -1
  275. package/lib-commonjs/components/GaugeChart/index.cjs.map +1 -1
  276. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs +3 -3
  277. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs.map +1 -1
  278. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.cjs +3 -3
  279. package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.cjs.map +1 -1
  280. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs +44 -44
  281. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs.map +1 -1
  282. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.cjs.map +1 -1
  283. package/lib-commonjs/components/GroupedVerticalBarChart/index.cjs.map +1 -1
  284. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs +3 -3
  285. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs.map +1 -1
  286. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.cjs +3 -3
  287. package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.cjs.map +1 -1
  288. package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs +1 -0
  289. package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs.map +1 -1
  290. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.cjs.map +1 -1
  291. package/lib-commonjs/components/HeatMapChart/index.cjs.map +1 -1
  292. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs +3 -3
  293. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs.map +1 -1
  294. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.cjs +3 -3
  295. package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.cjs.map +1 -1
  296. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.cjs +5 -6
  297. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.cjs.map +1 -1
  298. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.cjs.map +1 -1
  299. package/lib-commonjs/components/HorizontalBarChart/index.cjs.map +1 -1
  300. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs +3 -3
  301. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs.map +1 -1
  302. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.cjs +3 -3
  303. package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.cjs.map +1 -1
  304. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs +4 -4
  305. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs.map +1 -1
  306. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.cjs.map +1 -1
  307. package/lib-commonjs/components/HorizontalBarChartWithAxis/index.cjs.map +1 -1
  308. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs +3 -3
  309. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs.map +1 -1
  310. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.cjs +3 -3
  311. package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.cjs.map +1 -1
  312. package/lib-commonjs/components/Legends/Legends.cjs +16 -19
  313. package/lib-commonjs/components/Legends/Legends.cjs.map +1 -1
  314. package/lib-commonjs/components/Legends/Legends.types.cjs.map +1 -1
  315. package/lib-commonjs/components/Legends/OverflowMenu.cjs +12 -9
  316. package/lib-commonjs/components/Legends/OverflowMenu.cjs.map +1 -1
  317. package/lib-commonjs/components/Legends/index.cjs.map +1 -1
  318. package/lib-commonjs/components/Legends/shape.cjs.map +1 -1
  319. package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs +11 -11
  320. package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs.map +1 -1
  321. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.cjs +11 -11
  322. package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.cjs.map +1 -1
  323. package/lib-commonjs/components/LineChart/LineChart.cjs +40 -36
  324. package/lib-commonjs/components/LineChart/LineChart.cjs.map +1 -1
  325. package/lib-commonjs/components/LineChart/LineChart.types.cjs.map +1 -1
  326. package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.cjs.map +1 -1
  327. package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.cjs.map +1 -1
  328. package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.cjs.map +1 -1
  329. package/lib-commonjs/components/LineChart/index.cjs.map +1 -1
  330. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs +3 -3
  331. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs.map +1 -1
  332. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.cjs +3 -3
  333. package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.cjs.map +1 -1
  334. package/lib-commonjs/components/PolarChart/PolarChart.cjs +3 -4
  335. package/lib-commonjs/components/PolarChart/PolarChart.cjs.map +1 -1
  336. package/lib-commonjs/components/PolarChart/PolarChart.types.cjs.map +1 -1
  337. package/lib-commonjs/components/PolarChart/PolarChart.utils.cjs +10 -10
  338. package/lib-commonjs/components/PolarChart/PolarChart.utils.cjs.map +1 -1
  339. package/lib-commonjs/components/PolarChart/index.cjs.map +1 -1
  340. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs +3 -3
  341. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs.map +1 -1
  342. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.cjs +3 -3
  343. package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.cjs.map +1 -1
  344. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.cjs +1 -1
  345. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.cjs.map +1 -1
  346. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.cjs.map +1 -1
  347. package/lib-commonjs/components/ResponsiveContainer/index.cjs.map +1 -1
  348. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs +3 -3
  349. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs.map +1 -1
  350. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.cjs +3 -3
  351. package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.cjs.map +1 -1
  352. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.cjs.map +1 -1
  353. package/lib-commonjs/components/SankeyChart/SankeyChart.cjs +5 -5
  354. package/lib-commonjs/components/SankeyChart/SankeyChart.cjs.map +1 -1
  355. package/lib-commonjs/components/SankeyChart/SankeyChart.types.cjs.map +1 -1
  356. package/lib-commonjs/components/SankeyChart/index.cjs.map +1 -1
  357. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs +3 -3
  358. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs.map +1 -1
  359. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.cjs +3 -3
  360. package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.cjs.map +1 -1
  361. package/lib-commonjs/components/ScatterChart/ScatterChart.cjs +3 -3
  362. package/lib-commonjs/components/ScatterChart/ScatterChart.cjs.map +1 -1
  363. package/lib-commonjs/components/ScatterChart/ScatterChart.types.cjs.map +1 -1
  364. package/lib-commonjs/components/ScatterChart/index.cjs.map +1 -1
  365. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs +3 -3
  366. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs.map +1 -1
  367. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.cjs +3 -3
  368. package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.cjs.map +1 -1
  369. package/lib-commonjs/components/Sparkline/Sparkline.cjs +1 -3
  370. package/lib-commonjs/components/Sparkline/Sparkline.cjs.map +1 -1
  371. package/lib-commonjs/components/Sparkline/Sparkline.types.cjs.map +1 -1
  372. package/lib-commonjs/components/Sparkline/index.cjs.map +1 -1
  373. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs +3 -3
  374. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs.map +1 -1
  375. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.cjs +3 -3
  376. package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.cjs.map +1 -1
  377. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.cjs.map +1 -1
  378. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.cjs +3 -3
  379. package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.cjs.map +1 -1
  380. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.cjs +7 -7
  381. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.cjs.map +1 -1
  382. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.cjs +1 -0
  383. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.cjs.map +1 -1
  384. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs +105 -105
  385. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs.map +1 -1
  386. package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.cjs.map +1 -1
  387. package/lib-commonjs/components/VegaDeclarativeChart/index.cjs.map +1 -1
  388. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs +2 -1
  389. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs.map +1 -1
  390. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.cjs.map +1 -1
  391. package/lib-commonjs/components/VerticalBarChart/index.cjs.map +1 -1
  392. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs +3 -3
  393. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs.map +1 -1
  394. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.cjs +3 -3
  395. package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.cjs.map +1 -1
  396. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs +6 -5
  397. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs.map +1 -1
  398. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.cjs.map +1 -1
  399. package/lib-commonjs/components/VerticalStackedBarChart/index.cjs.map +1 -1
  400. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs +3 -3
  401. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs.map +1 -1
  402. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.cjs +3 -3
  403. package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.cjs.map +1 -1
  404. package/lib-commonjs/types/ChartAnnotation.cjs.map +1 -1
  405. package/lib-commonjs/types/DataPoint.cjs.map +1 -1
  406. package/lib-commonjs/types/EventAnnotation.cjs.map +1 -1
  407. package/lib-commonjs/types/LegendDataItem.cjs.map +1 -1
  408. package/lib-commonjs/types/index.cjs.map +1 -1
  409. package/lib-commonjs/utilities/ChartTitle.cjs +3 -4
  410. package/lib-commonjs/utilities/ChartTitle.cjs.map +1 -1
  411. package/lib-commonjs/utilities/Common.styles.cjs +9 -12
  412. package/lib-commonjs/utilities/Common.styles.cjs.map +1 -1
  413. package/lib-commonjs/utilities/Common.styles.raw.cjs +9 -12
  414. package/lib-commonjs/utilities/Common.styles.raw.cjs.map +1 -1
  415. package/lib-commonjs/utilities/FocusableTooltipText.cjs.map +1 -1
  416. package/lib-commonjs/utilities/KeyCodes.cjs.map +1 -1
  417. package/lib-commonjs/utilities/SVGTooltipText.cjs.map +1 -1
  418. package/lib-commonjs/utilities/async-utils.cjs.map +1 -1
  419. package/lib-commonjs/utilities/colors.cjs +7 -7
  420. package/lib-commonjs/utilities/colors.cjs.map +1 -1
  421. package/lib-commonjs/utilities/getWindow.cjs.map +1 -1
  422. package/lib-commonjs/utilities/hooks.cjs.map +1 -1
  423. package/lib-commonjs/utilities/image-export-utils.cjs +3 -3
  424. package/lib-commonjs/utilities/image-export-utils.cjs.map +1 -1
  425. package/lib-commonjs/utilities/index.cjs.map +1 -1
  426. package/lib-commonjs/utilities/overflow-utils.cjs +4 -4
  427. package/lib-commonjs/utilities/overflow-utils.cjs.map +1 -1
  428. package/lib-commonjs/utilities/scatterpolar-utils.cjs +6 -7
  429. package/lib-commonjs/utilities/scatterpolar-utils.cjs.map +1 -1
  430. package/lib-commonjs/utilities/string.cjs +1 -1
  431. package/lib-commonjs/utilities/string.cjs.map +1 -1
  432. package/lib-commonjs/utilities/test-data/specialChartNames.cjs +21 -0
  433. package/lib-commonjs/utilities/test-data/specialChartNames.cjs.map +1 -0
  434. package/lib-commonjs/utilities/test-data.cjs +18 -18
  435. package/lib-commonjs/utilities/test-data.cjs.map +1 -1
  436. package/lib-commonjs/utilities/utilities.cjs +92 -92
  437. package/lib-commonjs/utilities/utilities.cjs.map +1 -1
  438. package/lib-commonjs/utilities/vbc-utils.cjs +7 -7
  439. package/lib-commonjs/utilities/vbc-utils.cjs.map +1 -1
  440. package/package.json +9 -9
@@ -49,10 +49,10 @@ const dashOptions = {
49
49
  }
50
50
  };
51
51
  function getTitles(layout) {
52
+ var _ref, _ref1, _ref2;
52
53
  var _layout_xaxis, _layout_xaxis1, _layout_xaxis_title, _layout_xaxis2, _layout_yaxis, _layout_yaxis1, _layout_yaxis_title, _layout_yaxis2;
53
54
  const titleObj = layout === null || layout === void 0 ? void 0 : layout.title;
54
- var _titleObj_text;
55
- const chartTitle = typeof titleObj === 'string' ? titleObj : (_titleObj_text = titleObj === null || titleObj === void 0 ? void 0 : titleObj.text) !== null && _titleObj_text !== void 0 ? _titleObj_text : '';
55
+ const chartTitle = typeof titleObj === 'string' ? titleObj : (_ref = titleObj === null || titleObj === void 0 ? void 0 : titleObj.text) !== null && _ref !== void 0 ? _ref : '';
56
56
  const titleFont = typeof titleObj === 'object' ? titleObj === null || titleObj === void 0 ? void 0 : titleObj.font : undefined;
57
57
  const titleXAnchor = typeof titleObj === 'object' ? titleObj === null || titleObj === void 0 ? void 0 : titleObj.xanchor : undefined;
58
58
  const titleYAnchor = typeof titleObj === 'object' ? titleObj === null || titleObj === void 0 ? void 0 : titleObj.yanchor : undefined;
@@ -71,14 +71,13 @@ function getTitles(layout) {
71
71
  titlePad
72
72
  } : {}
73
73
  };
74
- var _layout_xaxis_title_text, _layout_yaxis_title_text;
75
74
  const titles = {
76
75
  chartTitle,
77
76
  ...Object.keys(titleStyles).length > 0 ? {
78
77
  titleStyles
79
78
  } : {},
80
- xAxisTitle: typeof (layout === null || layout === void 0 ? void 0 : (_layout_xaxis = layout.xaxis) === null || _layout_xaxis === void 0 ? void 0 : _layout_xaxis.title) === 'string' ? layout === null || layout === void 0 ? void 0 : (_layout_xaxis1 = layout.xaxis) === null || _layout_xaxis1 === void 0 ? void 0 : _layout_xaxis1.title : (_layout_xaxis_title_text = layout === null || layout === void 0 ? void 0 : (_layout_xaxis2 = layout.xaxis) === null || _layout_xaxis2 === void 0 ? void 0 : (_layout_xaxis_title = _layout_xaxis2.title) === null || _layout_xaxis_title === void 0 ? void 0 : _layout_xaxis_title.text) !== null && _layout_xaxis_title_text !== void 0 ? _layout_xaxis_title_text : '',
81
- yAxisTitle: typeof (layout === null || layout === void 0 ? void 0 : (_layout_yaxis = layout.yaxis) === null || _layout_yaxis === void 0 ? void 0 : _layout_yaxis.title) === 'string' ? layout === null || layout === void 0 ? void 0 : (_layout_yaxis1 = layout.yaxis) === null || _layout_yaxis1 === void 0 ? void 0 : _layout_yaxis1.title : (_layout_yaxis_title_text = layout === null || layout === void 0 ? void 0 : (_layout_yaxis2 = layout.yaxis) === null || _layout_yaxis2 === void 0 ? void 0 : (_layout_yaxis_title = _layout_yaxis2.title) === null || _layout_yaxis_title === void 0 ? void 0 : _layout_yaxis_title.text) !== null && _layout_yaxis_title_text !== void 0 ? _layout_yaxis_title_text : '',
79
+ xAxisTitle: typeof (layout === null || layout === void 0 ? void 0 : (_layout_xaxis = layout.xaxis) === null || _layout_xaxis === void 0 ? void 0 : _layout_xaxis.title) === 'string' ? layout === null || layout === void 0 ? void 0 : (_layout_xaxis1 = layout.xaxis) === null || _layout_xaxis1 === void 0 ? void 0 : _layout_xaxis1.title : (_ref1 = layout === null || layout === void 0 ? void 0 : (_layout_xaxis2 = layout.xaxis) === null || _layout_xaxis2 === void 0 ? void 0 : (_layout_xaxis_title = _layout_xaxis2.title) === null || _layout_xaxis_title === void 0 ? void 0 : _layout_xaxis_title.text) !== null && _ref1 !== void 0 ? _ref1 : '',
80
+ yAxisTitle: typeof (layout === null || layout === void 0 ? void 0 : (_layout_yaxis = layout.yaxis) === null || _layout_yaxis === void 0 ? void 0 : _layout_yaxis.title) === 'string' ? layout === null || layout === void 0 ? void 0 : (_layout_yaxis1 = layout.yaxis) === null || _layout_yaxis1 === void 0 ? void 0 : _layout_yaxis1.title : (_ref2 = layout === null || layout === void 0 ? void 0 : (_layout_yaxis2 = layout.yaxis) === null || _layout_yaxis2 === void 0 ? void 0 : (_layout_yaxis_title = _layout_yaxis2.title) === null || _layout_yaxis_title === void 0 ? void 0 : _layout_yaxis_title.text) !== null && _ref2 !== void 0 ? _ref2 : '',
82
81
  xAxisAnnotation: chartTitle
83
82
  };
84
83
  return titles;
@@ -586,11 +585,11 @@ const normalizeCoordinateValueForType = (coordinateType, value)=>{
586
585
  };
587
586
  const getAnnotationCoordinateValue = (axis, refType, annotation, layout)=>{
588
587
  if (refType === 'axis') {
588
+ var _ref;
589
589
  const axisRef = axis === 'x' ? annotation === null || annotation === void 0 ? void 0 : annotation.xref : annotation === null || annotation === void 0 ? void 0 : annotation.yref;
590
590
  const axisLayout = getAxisLayoutByRef(layout, axisRef, axis);
591
591
  const rawValue = axis === 'x' ? annotation === null || annotation === void 0 ? void 0 : annotation.x : annotation === null || annotation === void 0 ? void 0 : annotation.y;
592
- var _axisLayout_type;
593
- const axisType = (_axisLayout_type = axisLayout === null || axisLayout === void 0 ? void 0 : axisLayout.type) !== null && _axisLayout_type !== void 0 ? _axisLayout_type : 'category';
592
+ const axisType = (_ref = axisLayout === null || axisLayout === void 0 ? void 0 : axisLayout.type) !== null && _ref !== void 0 ? _ref : 'category';
594
593
  return convertAnnotationDataValue(rawValue, axisType);
595
594
  }
596
595
  const numericValue = toFiniteNumber(axis === 'x' ? annotation === null || annotation === void 0 ? void 0 : annotation.x : annotation === null || annotation === void 0 ? void 0 : annotation.y);
@@ -839,12 +838,12 @@ const getChartAnnotationsFromLayout = (data, layout, isMultiPlot)=>{
839
838
  'x',
840
839
  'y'
841
840
  ].forEach((axLetter)=>{
841
+ var _valuesByAxisKey_get;
842
842
  const coords = trace[axLetter];
843
843
  if (!coords || !isArrayOrTypedArray(coords)) {
844
844
  return;
845
845
  }
846
846
  const axisKey = getAxisKey(axLetter, axisIds[axLetter]);
847
- var _valuesByAxisKey_get;
848
847
  const existing = (_valuesByAxisKey_get = valuesByAxisKey.get(axisKey)) !== null && _valuesByAxisKey_get !== void 0 ? _valuesByAxisKey_get : [];
849
848
  coords.forEach((val)=>{
850
849
  if (!isInvalidValue(val)) {
@@ -970,8 +969,8 @@ const getChartAnnotationsFromLayout = (data, layout, isMultiPlot)=>{
970
969
  };
971
970
  };
972
971
  export const transformPlotlyJsonToAnnotationChartProps = (input, isMultiPlot, _colorMap, _colorwayType, _isDarkTheme)=>{
973
- var _layoutWithMeta_meta, _input_layout, _input_layout1, _input_layout2, _input_layout3, _input_layout_font, _input_layout4, _input_layout_font1, _input_layout5, _input_layout6;
974
972
  var _getChartAnnotationsFromLayout;
973
+ var _layoutWithMeta_meta, _input_layout, _input_layout1, _input_layout2, _input_layout3, _input_layout_font, _input_layout4, _input_layout_font1, _input_layout5, _input_layout6;
975
974
  const annotations = (_getChartAnnotationsFromLayout = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot)) !== null && _getChartAnnotationsFromLayout !== void 0 ? _getChartAnnotationsFromLayout : [];
976
975
  const titles = getTitles(input.layout);
977
976
  const layoutTitle = titles.chartTitle || undefined;
@@ -998,13 +997,13 @@ export const transformPlotlyJsonToAnnotationChartProps = (input, isMultiPlot, _c
998
997
  };
999
998
  };
1000
999
  export const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
1000
+ var _ref, _ref1, _ref2, _ref3;
1001
1001
  var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1, _input_layout2, _firstData_marker, _input_layout3, _input_layout4, _input_layout5, _input_layout6;
1002
1002
  const firstData = input.data[0];
1003
- var _input_layout_piecolorway, _input_layout_piecolorway1;
1004
1003
  // extract colors for each series only once
1005
1004
  // use piecolorway if available
1006
1005
  // otherwise, default to colorway from template
1007
- const colors = extractColor((_input_layout_piecolorway = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _input_layout_piecolorway !== void 0 ? _input_layout_piecolorway : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_input_layout_piecolorway1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.piecolorway) !== null && _input_layout_piecolorway1 !== void 0 ? _input_layout_piecolorway1 : firstData === null || firstData === void 0 ? void 0 : (_firstData_marker = firstData.marker) === null || _firstData_marker === void 0 ? void 0 : _firstData_marker.colors, colorMap, isDarkTheme, true);
1006
+ const colors = extractColor((_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _ref !== void 0 ? _ref : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_ref1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.piecolorway) !== null && _ref1 !== void 0 ? _ref1 : firstData === null || firstData === void 0 ? void 0 : (_firstData_marker = firstData.marker) === null || _firstData_marker === void 0 ? void 0 : _firstData_marker.colors, colorMap, isDarkTheme, true);
1008
1007
  const mapLegendToDataPoint = Object.create(null);
1009
1008
  // clear colorMap for donut chart to reassign colors as the colorMap initially gets assigned by
1010
1009
  // getAllupLegendsProps function without sorting labels by value
@@ -1025,10 +1024,10 @@ export const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, co
1025
1024
  // Sort descending by value; when marker colors are present, keep color attached to the label
1026
1025
  validPairs.sort((a, b)=>b.value - a.value);
1027
1026
  validPairs.forEach((pair, sortedIdx)=>{
1027
+ var _pair_color, _ref;
1028
1028
  var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1;
1029
1029
  const legend = `${pair.label}`;
1030
- var _input_layout_piecolorway, _pair_color;
1031
- const color = (_pair_color = pair.color) !== null && _pair_color !== void 0 ? _pair_color : resolveColor(colors, sortedIdx, legend, colorMap, (_input_layout_piecolorway = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _input_layout_piecolorway !== void 0 ? _input_layout_piecolorway : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, isDarkTheme, true);
1030
+ const color = (_pair_color = pair.color) !== null && _pair_color !== void 0 ? _pair_color : resolveColor(colors, sortedIdx, legend, colorMap, (_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _ref !== void 0 ? _ref : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, isDarkTheme, true);
1032
1031
  if (!mapLegendToDataPoint[legend]) {
1033
1032
  mapLegendToDataPoint[legend] = {
1034
1033
  legend,
@@ -1040,10 +1039,8 @@ export const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, co
1040
1039
  }
1041
1040
  });
1042
1041
  }
1043
- var _input_layout_width;
1044
- const width = (_input_layout_width = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.width) !== null && _input_layout_width !== void 0 ? _input_layout_width : 440;
1045
- var _input_layout_height;
1046
- const height = (_input_layout_height = (_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : _input_layout4.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 220;
1042
+ const width = (_ref2 = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.width) !== null && _ref2 !== void 0 ? _ref2 : 440;
1043
+ const height = (_ref3 = (_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : _input_layout4.height) !== null && _ref3 !== void 0 ? _ref3 : 220;
1047
1044
  const hideLabels = firstData.textinfo ? ![
1048
1045
  'value',
1049
1046
  'percent',
@@ -1092,6 +1089,7 @@ export const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, co
1092
1089
  };
1093
1090
  };
1094
1091
  export const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme, fallbackVSBC)=>{
1092
+ var _ref, _ref1;
1095
1093
  var _input_layout, _input_layout1, _input_layout2;
1096
1094
  const mapXToDataPoints = Object.create(null);
1097
1095
  let yMaxValue = 0;
@@ -1150,11 +1148,11 @@ export const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, col
1150
1148
  yMaxValue = Math.max(yMaxValue, yVal);
1151
1149
  }
1152
1150
  } else if (series.type === 'scatter' || !!fallbackVSBC) {
1151
+ var _rgb_copy_formatHex81;
1153
1152
  var _input_layout_template_layout1, _input_layout_template1, _input_layout1, _series_mode;
1154
1153
  const lineColor = resolveColor(extractedLineColors, index1, legend, colorMap, (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template1 = _input_layout1.template) === null || _input_layout_template1 === void 0 ? void 0 : (_input_layout_template_layout1 = _input_layout_template1.layout) === null || _input_layout_template_layout1 === void 0 ? void 0 : _input_layout_template_layout1.colorway, isDarkTheme);
1155
1154
  const lineOptions = !((_series_mode = series.mode) === null || _series_mode === void 0 ? void 0 : _series_mode.includes('text')) ? getLineOptions(series.line) : undefined;
1156
1155
  const legendShape = getLegendShape(series);
1157
- var _rgb_copy_formatHex81;
1158
1156
  mapXToDataPoints[x].lineData.push({
1159
1157
  legend: legend + (validXYRanges.length > 1 ? `.${rangeIdx + 1}` : ''),
1160
1158
  legendShape,
@@ -1179,8 +1177,7 @@ export const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, col
1179
1177
  });
1180
1178
  });
1181
1179
  const xCategories = extractXCategories(input.data);
1182
- var _input_layout_shapes;
1183
- ((_input_layout_shapes = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.shapes) !== null && _input_layout_shapes !== void 0 ? _input_layout_shapes : []).filter((shape)=>shape.type === 'line').forEach((shape, shapeIdx)=>{
1180
+ ((_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.shapes) !== null && _ref !== void 0 ? _ref : []).filter((shape)=>shape.type === 'line').forEach((shape, shapeIdx)=>{
1184
1181
  var _shape_line;
1185
1182
  const lineColor = (_shape_line = shape.line) === null || _shape_line === void 0 ? void 0 : _shape_line.color;
1186
1183
  const resolveX = (val)=>{
@@ -1243,11 +1240,10 @@ export const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, col
1243
1240
  });
1244
1241
  const vsbcData = Object.values(mapXToDataPoints);
1245
1242
  const annotations = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot);
1246
- var _input_layout_height;
1247
1243
  return {
1248
1244
  data: vsbcData,
1249
1245
  width: (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.width,
1250
- height: (_input_layout_height = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 350,
1246
+ height: (_ref1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.height) !== null && _ref1 !== void 0 ? _ref1 : 350,
1251
1247
  barWidth: 'auto',
1252
1248
  yMaxValue,
1253
1249
  yMinValue,
@@ -1275,6 +1271,7 @@ export const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, col
1275
1271
  };
1276
1272
  };
1277
1273
  export const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
1274
+ var _ref;
1278
1275
  var _processedInput_layout, _processedInput_layout1;
1279
1276
  // Handle object arrays in y values by normalizing the data first
1280
1277
  let processedInput = {
@@ -1322,6 +1319,7 @@ export const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, col
1322
1319
  legend,
1323
1320
  key: legend,
1324
1321
  data: series.x.map((x, xIndex)=>{
1322
+ var _rgb_copy_formatHex8;
1325
1323
  var _series_y, _series_marker, _series_marker1, _series_marker_color, _series_marker2, _processedInput_layout_template_layout, _processedInput_layout_template, _processedInput_layout;
1326
1324
  if (isInvalidValue(x) || isInvalidValue((_series_y = series.y) === null || _series_y === void 0 ? void 0 : _series_y[xIndex])) {
1327
1325
  return;
@@ -1336,7 +1334,6 @@ export const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, col
1336
1334
  if (barLabel && series.texttemplate) {
1337
1335
  barLabel = formatTextWithTemplate(barLabel, series.texttemplate, xIndex);
1338
1336
  }
1339
- var _rgb_copy_formatHex8;
1340
1337
  return {
1341
1338
  x: x.toString(),
1342
1339
  y: yVal,
@@ -1360,9 +1357,9 @@ export const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, col
1360
1357
  const opacity = getOpacity(series, index1);
1361
1358
  const validXYRanges = getValidXYRanges(series);
1362
1359
  validXYRanges.forEach(([rangeStart, rangeEnd])=>{
1360
+ var _rgb_copy_formatHex8;
1363
1361
  const rangeXValues = series.x.slice(rangeStart, rangeEnd);
1364
1362
  const rangeYValues = series.y.slice(rangeStart, rangeEnd);
1365
- var _rgb_copy_formatHex8;
1366
1363
  gvbcDataV2.push({
1367
1364
  type: 'line',
1368
1365
  legend,
@@ -1388,11 +1385,10 @@ export const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, col
1388
1385
  }
1389
1386
  });
1390
1387
  const annotations = getChartAnnotationsFromLayout(processedInput.data, processedInput.layout, isMultiPlot);
1391
- var _processedInput_layout_height;
1392
1388
  return {
1393
1389
  dataV2: gvbcDataV2,
1394
1390
  width: (_processedInput_layout = processedInput.layout) === null || _processedInput_layout === void 0 ? void 0 : _processedInput_layout.width,
1395
- height: (_processedInput_layout_height = (_processedInput_layout1 = processedInput.layout) === null || _processedInput_layout1 === void 0 ? void 0 : _processedInput_layout1.height) !== null && _processedInput_layout_height !== void 0 ? _processedInput_layout_height : 350,
1391
+ height: (_ref = (_processedInput_layout1 = processedInput.layout) === null || _processedInput_layout1 === void 0 ? void 0 : _processedInput_layout1.height) !== null && _ref !== void 0 ? _ref : 350,
1396
1392
  barWidth: 'auto',
1397
1393
  mode: 'plotly',
1398
1394
  ...secondaryYAxisValues,
@@ -1415,6 +1411,7 @@ export const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, col
1415
1411
  };
1416
1412
  };
1417
1413
  export const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
1414
+ var _ref;
1418
1415
  var _input_layout, _input_layout1;
1419
1416
  const vbcData = [];
1420
1417
  const { legends, hideLegend } = getLegendProps(input.data, input.layout, isMultiPlot);
@@ -1456,6 +1453,7 @@ export const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colo
1456
1453
  return yVal;
1457
1454
  });
1458
1455
  xBins.forEach((bin, index)=>{
1456
+ var _rgb_copy_formatHex8;
1459
1457
  var _series_marker, _series_marker1, _series_marker_color, _series_marker2, _input_layout_template_layout, _input_layout_template, _input_layout;
1460
1458
  const legend = legends[seriesIdx];
1461
1459
  // resolve color for each legend's bars from the colorscale or extracted colors
@@ -1467,7 +1465,6 @@ export const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colo
1467
1465
  if (barLabel && series.texttemplate) {
1468
1466
  barLabel = formatTextWithTemplate(barLabel, series.texttemplate, index);
1469
1467
  }
1470
- var _rgb_copy_formatHex8;
1471
1468
  vbcData.push({
1472
1469
  x: isXString ? bin.join(', ') : getBinCenter(bin),
1473
1470
  y: yVal,
@@ -1485,11 +1482,10 @@ export const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colo
1485
1482
  });
1486
1483
  });
1487
1484
  const annotations = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot);
1488
- var _input_layout_height;
1489
1485
  return {
1490
1486
  data: vbcData,
1491
1487
  width: (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.width,
1492
- height: (_input_layout_height = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 350,
1488
+ height: (_ref = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.height) !== null && _ref !== void 0 ? _ref : 350,
1493
1489
  mode: 'histogram',
1494
1490
  hideTickOverlap: true,
1495
1491
  maxBarWidth: 50,
@@ -1537,6 +1533,7 @@ const mapColorFillBars = (layout)=>{
1537
1533
  });
1538
1534
  };
1539
1535
  const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, colorMap, colorwayType, isDarkTheme)=>{
1536
+ var _ref, _ref1;
1540
1537
  var _input_data_, _chartData__data_, _chartData_, _chartData__data_1, _chartData_1, _chartData__data_2, _chartData_2, _chartData__data_3, _chartData_3, _input_layout, _input_layout1, _input_layout2;
1541
1538
  const isScatterMarkers = [
1542
1539
  'text',
@@ -1571,13 +1568,13 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
1571
1568
  const legendShape = getLegendShape(series);
1572
1569
  const validXYRanges = getValidXYRanges(series, resolveXValue);
1573
1570
  return validXYRanges.map(([rangeStart, rangeEnd], rangeIdx)=>{
1571
+ var _rgb_copy_formatHex8;
1574
1572
  var _series_marker, _series_marker1, _series_marker2, _input_layout, _input_layout_polar_angularaxis, _input_layout_polar, _input_layout1, _input_layout_polar_angularaxis1, _input_layout_polar1, _input_layout2;
1575
1573
  const rangeXValues = xValues.slice(rangeStart, rangeEnd);
1576
1574
  const rangeYValues = series.y.slice(rangeStart, rangeEnd);
1577
1575
  const markerSizes = isArrayOrTypedArray((_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.size) ? series.marker.size.slice(rangeStart, rangeEnd) : [];
1578
1576
  const markerColors = isArrayOrTypedArray((_series_marker1 = series.marker) === null || _series_marker1 === void 0 ? void 0 : _series_marker1.color) ? series.marker.color.slice(rangeStart, rangeEnd) : Array.isArray((_series_marker2 = series.marker) === null || _series_marker2 === void 0 ? void 0 : _series_marker2.color) ? series.marker.color.slice(rangeStart, rangeEnd) : undefined;
1579
1577
  const textValues = Array.isArray(series.text) ? series.text.slice(rangeStart, rangeEnd) : undefined;
1580
- var _rgb_copy_formatHex8;
1581
1578
  return {
1582
1579
  legend,
1583
1580
  legendShape,
@@ -1625,8 +1622,8 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
1625
1622
  const yMinValue = (_chartData_2 = chartData[0]) === null || _chartData_2 === void 0 ? void 0 : (_chartData__data_2 = _chartData_2.data[0]) === null || _chartData__data_2 === void 0 ? void 0 : _chartData__data_2.y;
1626
1623
  const yMaxValue = (_chartData_3 = chartData[0]) === null || _chartData_3 === void 0 ? void 0 : (_chartData__data_3 = _chartData_3.data[chartData[0].data.length - 1]) === null || _chartData__data_3 === void 0 ? void 0 : _chartData__data_3.y;
1627
1624
  const xCategories = extractXCategories(input.data);
1628
- var _input_layout_shapes;
1629
- const lineShape = ((_input_layout_shapes = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.shapes) !== null && _input_layout_shapes !== void 0 ? _input_layout_shapes : []).filter((shape)=>shape.type === 'line').map((shape, shapeIdx)=>{
1625
+ const lineShape = ((_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.shapes) !== null && _ref !== void 0 ? _ref : []).filter((shape)=>shape.type === 'line').map((shape, shapeIdx)=>{
1626
+ var _rgb_formatHex8;
1630
1627
  var _shape_line;
1631
1628
  const lineColor = (_shape_line = shape.line) === null || _shape_line === void 0 ? void 0 : _shape_line.color;
1632
1629
  const resolveX = (val)=>{
@@ -1666,7 +1663,6 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
1666
1663
  }
1667
1664
  return val;
1668
1665
  };
1669
- var _rgb_formatHex8;
1670
1666
  return {
1671
1667
  legend: `Reference_${shapeIdx}`,
1672
1668
  data: [
@@ -1704,12 +1700,11 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
1704
1700
  ]
1705
1701
  };
1706
1702
  const annotations = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot);
1707
- var _input_layout_height;
1708
1703
  const commonProps = {
1709
1704
  supportNegativeData: true,
1710
1705
  ...secondaryYAxisValues,
1711
1706
  width: (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.width,
1712
- height: (_input_layout_height = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 350,
1707
+ height: (_ref1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.height) !== null && _ref1 !== void 0 ? _ref1 : 350,
1713
1708
  hideTickOverlap: true,
1714
1709
  hideLegend,
1715
1710
  useUTC: false,
@@ -1751,6 +1746,7 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
1751
1746
  }
1752
1747
  };
1753
1748
  export const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
1749
+ var _ref, _ref1, _ref2;
1754
1750
  var _input_layout, _input_layout_margin, _input_layout1, _input_layout_margin1, _input_layout2, _input_layout_yaxis2, _input_layout3, _input_layout_yaxis21, _input_layout4, _input_layout_yaxis2_title, _input_layout_yaxis22, _input_layout5, _input_layout6;
1755
1751
  const { legends, hideLegend } = getLegendProps(input.data, input.layout, isMultiPlot);
1756
1752
  let colorScale = undefined;
@@ -1761,6 +1757,7 @@ export const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPl
1761
1757
  const extractedColors = extractColor((_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.color, colorMap, isDarkTheme);
1762
1758
  const legend = legends[index];
1763
1759
  return series.y.map((yValue, i)=>{
1760
+ var _rgb_copy_formatHex8;
1764
1761
  var _series_marker, _series_marker1, _series_marker_color, _series_marker2, _input_layout_template_layout, _input_layout_template, _input_layout, _series_x, _series_text;
1765
1762
  if (isInvalidValue(yValue)) {
1766
1763
  return null;
@@ -1768,7 +1765,6 @@ export const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPl
1768
1765
  // resolve color for each legend's bars from the colorscale or extracted colors
1769
1766
  const color = colorScale ? colorScale(isArrayOrTypedArray((_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.color) ? (_series_marker2 = series.marker) === null || _series_marker2 === void 0 ? void 0 : (_series_marker_color = _series_marker2.color) === null || _series_marker_color === void 0 ? void 0 : _series_marker_color[i % ((_series_marker1 = series.marker) === null || _series_marker1 === void 0 ? void 0 : _series_marker1.color).length] : 0) : resolveColor(extractedColors, i, legend, colorMap, (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, isDarkTheme);
1770
1767
  const opacity = getOpacity(series, i);
1771
- var _rgb_copy_formatHex8;
1772
1768
  return {
1773
1769
  x: isInvalidValue((_series_x = series.x) === null || _series_x === void 0 ? void 0 : _series_x[i]) ? 0 : series.x[i],
1774
1770
  y: yValue,
@@ -1782,12 +1778,9 @@ export const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPl
1782
1778
  };
1783
1779
  }).filter((point)=>point !== null);
1784
1780
  }).flat();
1785
- var _input_layout_height;
1786
- const chartHeight = (_input_layout_height = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 450;
1787
- var _input_layout_margin_l;
1788
- const margin = (_input_layout_margin_l = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_margin = _input_layout1.margin) === null || _input_layout_margin === void 0 ? void 0 : _input_layout_margin.l) !== null && _input_layout_margin_l !== void 0 ? _input_layout_margin_l : 0;
1789
- var _input_layout_margin_pad;
1790
- const padding = (_input_layout_margin_pad = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : (_input_layout_margin1 = _input_layout2.margin) === null || _input_layout_margin1 === void 0 ? void 0 : _input_layout_margin1.pad) !== null && _input_layout_margin_pad !== void 0 ? _input_layout_margin_pad : 0;
1781
+ const chartHeight = (_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.height) !== null && _ref !== void 0 ? _ref : 450;
1782
+ const margin = (_ref1 = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_margin = _input_layout1.margin) === null || _input_layout_margin === void 0 ? void 0 : _input_layout_margin.l) !== null && _ref1 !== void 0 ? _ref1 : 0;
1783
+ const padding = (_ref2 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : (_input_layout_margin1 = _input_layout2.margin) === null || _input_layout_margin1 === void 0 ? void 0 : _input_layout_margin1.pad) !== null && _ref2 !== void 0 ? _ref2 : 0;
1791
1784
  const availableHeight = chartHeight - margin - padding;
1792
1785
  const numberOfRows = new Set(chartData.map((d)=>d.y)).size || 1;
1793
1786
  const scalingFactor = 0.01;
@@ -1814,6 +1807,7 @@ export const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPl
1814
1807
  };
1815
1808
  };
1816
1809
  export const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
1810
+ var _ref;
1817
1811
  var _input_layout, _input_layout1;
1818
1812
  const data = input.data.filter((series)=>series.type !== 'scatter' || series.mode !== 'markers');
1819
1813
  const { legends, hideLegend } = getLegendProps(data, input.layout, isMultiPlot);
@@ -1834,6 +1828,7 @@ export const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMa
1834
1828
  // extract colors for each series only once
1835
1829
  const extractedColors = extractColor((_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.color, colorMap, isDarkTheme);
1836
1830
  series.y.forEach((yVal, i)=>{
1831
+ var _rgb_copy_formatHex8;
1837
1832
  var _series_marker, _series_marker1, _series_marker_color, _series_marker2, _input_layout_template_layout, _input_layout_template, _input_layout, _series_x;
1838
1833
  if (isInvalidValue(yVal)) {
1839
1834
  return;
@@ -1843,7 +1838,6 @@ export const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMa
1843
1838
  const opacity = getOpacity(series, i);
1844
1839
  const base = +resolveGanttXValue(isArrayOrTypedArray(series.base) ? series.base[i] : series.base);
1845
1840
  const xVal = +resolveGanttXValue((_series_x = series.x) === null || _series_x === void 0 ? void 0 : _series_x[i]);
1846
- var _rgb_copy_formatHex8;
1847
1841
  ganttData.push({
1848
1842
  x: {
1849
1843
  start: isXDate ? new Date(base) : base,
@@ -1877,11 +1871,10 @@ export const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMa
1877
1871
  }
1878
1872
  }
1879
1873
  });
1880
- var _input_layout_height;
1881
1874
  return {
1882
1875
  data: ganttData,
1883
1876
  showYAxisLables: true,
1884
- height: (_input_layout_height = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 350,
1877
+ height: (_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.height) !== null && _ref !== void 0 ? _ref : 350,
1885
1878
  width: (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.width,
1886
1879
  hideTickOverlap: true,
1887
1880
  hideLegend,
@@ -1896,6 +1889,7 @@ export const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMa
1896
1889
  };
1897
1890
  };
1898
1891
  export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
1892
+ var _firstData_name, _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
1899
1893
  var _input_layout, _input_layout1, _input_layout_coloraxis, _input_layout2, _input_layout_template_layout, _input_layout_template, _input_layout3, _input_layout_template_data_histogram2d_, _input_layout_template_data_histogram2d, _input_layout_template_data, _input_layout_template1, _input_layout4, _input_layout_template_data_heatmap_, _input_layout_template_data_heatmap, _input_layout_template_data1, _input_layout_template2, _input_layout5, _input_layout6, _input_layout7;
1900
1894
  const firstData = input.data[0];
1901
1895
  const heatmapDataPoints = [];
@@ -1949,8 +1943,8 @@ export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap,
1949
1943
  const yValues = [];
1950
1944
  const zValues = [];
1951
1945
  (_firstData_x = firstData.x) === null || _firstData_x === void 0 ? void 0 : _firstData_x.forEach((xVal, index)=>{
1952
- var _firstData_y;
1953
1946
  var _getNumberAtIndexOrDefault;
1947
+ var _firstData_y;
1954
1948
  const zVal = (_getNumberAtIndexOrDefault = getNumberAtIndexOrDefault(firstData.z, index)) !== null && _getNumberAtIndexOrDefault !== void 0 ? _getNumberAtIndexOrDefault : 0;
1955
1949
  if (isInvalidValue(xVal) || isInvalidValue((_firstData_y = firstData.y) === null || _firstData_y === void 0 ? void 0 : _firstData_y[index])) {
1956
1950
  return;
@@ -1996,16 +1990,15 @@ export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap,
1996
1990
  });
1997
1991
  });
1998
1992
  } else {
1993
+ var _ref6, _ref7;
1999
1994
  var _zArray_;
2000
1995
  // If x and y are not provided, generate indices based on z dimensions
2001
1996
  const zArray = firstData.z;
2002
1997
  const xValues = firstData.x;
2003
1998
  const yValues = firstData.y;
2004
- var _zArray_length;
2005
1999
  // Determine the dimensions from z array
2006
- const yLength = (_zArray_length = zArray === null || zArray === void 0 ? void 0 : zArray.length) !== null && _zArray_length !== void 0 ? _zArray_length : 0;
2007
- var _zArray__length;
2008
- const xLength = (_zArray__length = zArray === null || zArray === void 0 ? void 0 : (_zArray_ = zArray[0]) === null || _zArray_ === void 0 ? void 0 : _zArray_.length) !== null && _zArray__length !== void 0 ? _zArray__length : 0;
2000
+ const yLength = (_ref6 = zArray === null || zArray === void 0 ? void 0 : zArray.length) !== null && _ref6 !== void 0 ? _ref6 : 0;
2001
+ const xLength = (_ref7 = zArray === null || zArray === void 0 ? void 0 : (_zArray_ = zArray[0]) === null || _zArray_ === void 0 ? void 0 : _zArray_.length) !== null && _ref7 !== void 0 ? _ref7 : 0;
2009
2002
  // Use provided x/y values or generate indices
2010
2003
  const xData = xValues !== null && xValues !== void 0 ? xValues : Array.from({
2011
2004
  length: xLength
@@ -2032,7 +2025,6 @@ export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap,
2032
2025
  });
2033
2026
  });
2034
2027
  }
2035
- var _firstData_name;
2036
2028
  const heatmapData = {
2037
2029
  legend: (_firstData_name = firstData.name) !== null && _firstData_name !== void 0 ? _firstData_name : '',
2038
2030
  data: heatmapDataPoints,
@@ -2049,8 +2041,7 @@ export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap,
2049
2041
  getColorFromToken(DataVizPalette.color2),
2050
2042
  getColorFromToken(DataVizPalette.color3)
2051
2043
  ];
2052
- var _firstData_colorscale, _ref, _ref1, _ref2, _ref3;
2053
- let colorscale = (_ref3 = (_ref2 = (_ref1 = (_ref = (_firstData_colorscale = firstData === null || firstData === void 0 ? void 0 : firstData.colorscale) !== null && _firstData_colorscale !== void 0 ? _firstData_colorscale : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.colorscale) !== null && _ref !== void 0 ? _ref : (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : (_input_layout_coloraxis = _input_layout2.coloraxis) === null || _input_layout_coloraxis === void 0 ? void 0 : _input_layout_coloraxis.colorscale) !== null && _ref1 !== void 0 ? _ref1 : (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : (_input_layout_template = _input_layout3.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorscale) !== null && _ref2 !== void 0 ? _ref2 : firstData.type === 'histogram2d' && ((_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : (_input_layout_template1 = _input_layout4.template) === null || _input_layout_template1 === void 0 ? void 0 : (_input_layout_template_data = _input_layout_template1.data) === null || _input_layout_template_data === void 0 ? void 0 : (_input_layout_template_data_histogram2d = _input_layout_template_data.histogram2d) === null || _input_layout_template_data_histogram2d === void 0 ? void 0 : (_input_layout_template_data_histogram2d_ = _input_layout_template_data_histogram2d[0]) === null || _input_layout_template_data_histogram2d_ === void 0 ? void 0 : _input_layout_template_data_histogram2d_.colorscale)) !== null && _ref3 !== void 0 ? _ref3 : (_input_layout5 = input.layout) === null || _input_layout5 === void 0 ? void 0 : (_input_layout_template2 = _input_layout5.template) === null || _input_layout_template2 === void 0 ? void 0 : (_input_layout_template_data1 = _input_layout_template2.data) === null || _input_layout_template_data1 === void 0 ? void 0 : (_input_layout_template_data_heatmap = _input_layout_template_data1.heatmap) === null || _input_layout_template_data_heatmap === void 0 ? void 0 : (_input_layout_template_data_heatmap_ = _input_layout_template_data_heatmap[0]) === null || _input_layout_template_data_heatmap_ === void 0 ? void 0 : _input_layout_template_data_heatmap_.colorscale;
2044
+ let colorscale = (_ref = (_ref1 = (_ref2 = (_ref3 = (_ref4 = firstData === null || firstData === void 0 ? void 0 : firstData.colorscale) !== null && _ref4 !== void 0 ? _ref4 : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.colorscale) !== null && _ref3 !== void 0 ? _ref3 : (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : (_input_layout_coloraxis = _input_layout2.coloraxis) === null || _input_layout_coloraxis === void 0 ? void 0 : _input_layout_coloraxis.colorscale) !== null && _ref2 !== void 0 ? _ref2 : (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : (_input_layout_template = _input_layout3.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorscale) !== null && _ref1 !== void 0 ? _ref1 : firstData.type === 'histogram2d' && ((_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : (_input_layout_template1 = _input_layout4.template) === null || _input_layout_template1 === void 0 ? void 0 : (_input_layout_template_data = _input_layout_template1.data) === null || _input_layout_template_data === void 0 ? void 0 : (_input_layout_template_data_histogram2d = _input_layout_template_data.histogram2d) === null || _input_layout_template_data_histogram2d === void 0 ? void 0 : (_input_layout_template_data_histogram2d_ = _input_layout_template_data_histogram2d[0]) === null || _input_layout_template_data_histogram2d_ === void 0 ? void 0 : _input_layout_template_data_histogram2d_.colorscale)) !== null && _ref !== void 0 ? _ref : (_input_layout5 = input.layout) === null || _input_layout5 === void 0 ? void 0 : (_input_layout_template2 = _input_layout5.template) === null || _input_layout_template2 === void 0 ? void 0 : (_input_layout_template_data1 = _input_layout_template2.data) === null || _input_layout_template_data1 === void 0 ? void 0 : (_input_layout_template_data_heatmap = _input_layout_template_data1.heatmap) === null || _input_layout_template_data_heatmap === void 0 ? void 0 : (_input_layout_template_data_heatmap_ = _input_layout_template_data_heatmap[0]) === null || _input_layout_template_data_heatmap_ === void 0 ? void 0 : _input_layout_template_data_heatmap_.colorscale;
2054
2045
  // determine if the types diverging, sequential or sequentialminus are present in colorscale
2055
2046
  if (colorscale && typeof colorscale === 'object' && ('diverging' in colorscale || 'sequential' in colorscale || 'sequentialminus' in colorscale)) {
2056
2047
  const isDivergent = zMin < 0 && zMax > 0; // Data spans both positive and negative values
@@ -2066,7 +2057,6 @@ export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap,
2066
2057
  }
2067
2058
  const domainValuesForColorScale = Array.isArray(colorscale) ? colorscale.map((arr)=>arr[0] * (zMax - zMin) + zMin) : defaultDomain;
2068
2059
  const rangeValuesForColorScale = Array.isArray(colorscale) ? colorscale.map((arr)=>arr[1]) : defaultRange;
2069
- var _input_layout_height;
2070
2060
  return {
2071
2061
  data: [
2072
2062
  heatmapData
@@ -2077,7 +2067,7 @@ export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap,
2077
2067
  showYAxisLables: true,
2078
2068
  sortOrder: 'none',
2079
2069
  width: (_input_layout6 = input.layout) === null || _input_layout6 === void 0 ? void 0 : _input_layout6.width,
2080
- height: (_input_layout_height = (_input_layout7 = input.layout) === null || _input_layout7 === void 0 ? void 0 : _input_layout7.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 350,
2070
+ height: (_ref5 = (_input_layout7 = input.layout) === null || _input_layout7 === void 0 ? void 0 : _input_layout7.height) !== null && _ref5 !== void 0 ? _ref5 : 350,
2081
2071
  hideTickOverlap: true,
2082
2072
  noOfCharsToTruncate: 20,
2083
2073
  showYAxisLablesTooltip: true,
@@ -2089,10 +2079,10 @@ export const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap,
2089
2079
  };
2090
2080
  };
2091
2081
  export const transformPlotlyJsonToSankeyProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
2082
+ var _ref, _ref1;
2092
2083
  var _input_layout_template_layout, _input_layout_template, _input_layout, _input_layout_template_layout1, _input_layout_template1, _input_layout1, _node_label, _input_layout2, _input_layout3, _input_layout4;
2093
2084
  const { link, node } = input.data[0];
2094
- var _link_value;
2095
- const validLinks = ((_link_value = link === null || link === void 0 ? void 0 : link.value) !== null && _link_value !== void 0 ? _link_value : []).map((val, index)=>{
2085
+ const validLinks = ((_ref = link === null || link === void 0 ? void 0 : link.value) !== null && _ref !== void 0 ? _ref : []).map((val, index)=>{
2096
2086
  var _link_source, _link_target;
2097
2087
  if (isInvalidValue(val) || isInvalidValue(link === null || link === void 0 ? void 0 : (_link_source = link.source) === null || _link_source === void 0 ? void 0 : _link_source[index]) || isInvalidValue(link === null || link === void 0 ? void 0 : (_link_target = link.target) === null || _link_target === void 0 ? void 0 : _link_target[index])) {
2098
2088
  return null;
@@ -2132,14 +2122,13 @@ export const transformPlotlyJsonToSankeyProps = (input, isMultiPlot, colorMap, c
2132
2122
  // },
2133
2123
  // };
2134
2124
  const { chartTitle, titleStyles } = getTitles(input.layout);
2135
- var _input_layout_height;
2136
2125
  return {
2137
2126
  data: {
2138
2127
  chartTitle,
2139
2128
  SankeyChartData: sankeyChartData
2140
2129
  },
2141
2130
  width: (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.width,
2142
- height: (_input_layout_height = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 468,
2131
+ height: (_ref1 = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.height) !== null && _ref1 !== void 0 ? _ref1 : 468,
2143
2132
  // TODO
2144
2133
  // styles,
2145
2134
  hideLegend: isMultiPlot || ((_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : _input_layout4.showlegend) === false,
@@ -2149,11 +2138,11 @@ export const transformPlotlyJsonToSankeyProps = (input, isMultiPlot, colorMap, c
2149
2138
  };
2150
2139
  };
2151
2140
  export const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
2141
+ var _firstData_value, _ref, _ref1, _firstData_value1, _firstData_value2, _ref2;
2152
2142
  var _firstData_gauge, _input_layout_template_layout, _input_layout_template, _input_layout, _firstData_gauge_steps, _firstData_gauge1, _firstData_gauge_axis_range, _firstData_gauge_axis, _firstData_gauge2, _input_layout_template_layout1, _input_layout_template1, _input_layout1, _firstData_gauge_axis1, _firstData_gauge3, _firstData_gauge_axis_range1, _firstData_gauge_axis2, _firstData_gauge4, _firstData_delta, _firstData_gauge_axis_range2, _firstData_gauge_axis3, _firstData_gauge5, _firstData_gauge_axis_range3, _firstData_gauge_axis4, _firstData_gauge6, _firstData_gauge_axis_range4, _firstData_gauge_axis5, _firstData_gauge7, _firstData_gauge_axis_range5, _firstData_gauge_axis6, _firstData_gauge8, _input_layout2, _input_layout3, _firstData_gauge_steps1, _firstData_gauge9;
2153
2143
  const firstData = input.data[0];
2154
2144
  const stepsColors = ((_firstData_gauge = firstData.gauge) === null || _firstData_gauge === void 0 ? void 0 : _firstData_gauge.steps) ? firstData.gauge.steps.map((step)=>step.color) : undefined;
2155
2145
  const extractedColors = extractColor((_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, stepsColors, colorMap, isDarkTheme);
2156
- var _firstData_gauge_axis_range_, _firstData_value, _firstData_gauge_axis_range_1, _firstData_value1;
2157
2146
  const segments = ((_firstData_gauge1 = firstData.gauge) === null || _firstData_gauge1 === void 0 ? void 0 : (_firstData_gauge_steps = _firstData_gauge1.steps) === null || _firstData_gauge_steps === void 0 ? void 0 : _firstData_gauge_steps.length) ? firstData.gauge.steps.map((step, index)=>{
2158
2147
  var _input_layout_template_layout, _input_layout_template, _input_layout, _step_range, _step_range1;
2159
2148
  const legend = step.name || `Segment ${index + 1}`;
@@ -2166,12 +2155,12 @@ export const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, co
2166
2155
  }) : [
2167
2156
  {
2168
2157
  legend: 'Current',
2169
- size: (_firstData_value = firstData.value) !== null && _firstData_value !== void 0 ? _firstData_value : 0 - ((_firstData_gauge_axis_range_ = (_firstData_gauge2 = firstData.gauge) === null || _firstData_gauge2 === void 0 ? void 0 : (_firstData_gauge_axis = _firstData_gauge2.axis) === null || _firstData_gauge_axis === void 0 ? void 0 : (_firstData_gauge_axis_range = _firstData_gauge_axis.range) === null || _firstData_gauge_axis_range === void 0 ? void 0 : _firstData_gauge_axis_range[0]) !== null && _firstData_gauge_axis_range_ !== void 0 ? _firstData_gauge_axis_range_ : 0),
2158
+ size: (_firstData_value = firstData.value) !== null && _firstData_value !== void 0 ? _firstData_value : 0 - ((_ref = (_firstData_gauge2 = firstData.gauge) === null || _firstData_gauge2 === void 0 ? void 0 : (_firstData_gauge_axis = _firstData_gauge2.axis) === null || _firstData_gauge_axis === void 0 ? void 0 : (_firstData_gauge_axis_range = _firstData_gauge_axis.range) === null || _firstData_gauge_axis_range === void 0 ? void 0 : _firstData_gauge_axis_range[0]) !== null && _ref !== void 0 ? _ref : 0),
2170
2159
  color: _getGaugeAxisColor((_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template1 = _input_layout1.template) === null || _input_layout_template1 === void 0 ? void 0 : (_input_layout_template_layout1 = _input_layout_template1.layout) === null || _input_layout_template_layout1 === void 0 ? void 0 : _input_layout_template_layout1.colorway, colorwayType, (_firstData_gauge3 = firstData.gauge) === null || _firstData_gauge3 === void 0 ? void 0 : (_firstData_gauge_axis1 = _firstData_gauge3.axis) === null || _firstData_gauge_axis1 === void 0 ? void 0 : _firstData_gauge_axis1.color, colorMap, isDarkTheme)
2171
2160
  },
2172
2161
  {
2173
2162
  legend: 'Target',
2174
- size: ((_firstData_gauge_axis_range_1 = (_firstData_gauge4 = firstData.gauge) === null || _firstData_gauge4 === void 0 ? void 0 : (_firstData_gauge_axis2 = _firstData_gauge4.axis) === null || _firstData_gauge_axis2 === void 0 ? void 0 : (_firstData_gauge_axis_range1 = _firstData_gauge_axis2.range) === null || _firstData_gauge_axis_range1 === void 0 ? void 0 : _firstData_gauge_axis_range1[1]) !== null && _firstData_gauge_axis_range_1 !== void 0 ? _firstData_gauge_axis_range_1 : 100) - ((_firstData_value1 = firstData.value) !== null && _firstData_value1 !== void 0 ? _firstData_value1 : 0),
2163
+ size: ((_ref1 = (_firstData_gauge4 = firstData.gauge) === null || _firstData_gauge4 === void 0 ? void 0 : (_firstData_gauge_axis2 = _firstData_gauge4.axis) === null || _firstData_gauge_axis2 === void 0 ? void 0 : (_firstData_gauge_axis_range1 = _firstData_gauge_axis2.range) === null || _firstData_gauge_axis_range1 === void 0 ? void 0 : _firstData_gauge_axis_range1[1]) !== null && _ref1 !== void 0 ? _ref1 : 100) - ((_firstData_value1 = firstData.value) !== null && _firstData_value1 !== void 0 ? _firstData_value1 : 0),
2175
2164
  color: DataVizPalette.disabled
2176
2165
  }
2177
2166
  ];
@@ -2197,7 +2186,6 @@ export const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, co
2197
2186
  sublabel: sublabelColor
2198
2187
  };
2199
2188
  const { chartTitle, titleStyles } = getTitles(input.layout);
2200
- var _firstData_value2, _input_layout_height;
2201
2189
  return {
2202
2190
  segments,
2203
2191
  chartValue: (_firstData_value2 = firstData.value) !== null && _firstData_value2 !== void 0 ? _firstData_value2 : 0,
@@ -2207,12 +2195,12 @@ export const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, co
2207
2195
  minValue: typeof ((_firstData_gauge5 = firstData.gauge) === null || _firstData_gauge5 === void 0 ? void 0 : (_firstData_gauge_axis3 = _firstData_gauge5.axis) === null || _firstData_gauge_axis3 === void 0 ? void 0 : (_firstData_gauge_axis_range2 = _firstData_gauge_axis3.range) === null || _firstData_gauge_axis_range2 === void 0 ? void 0 : _firstData_gauge_axis_range2[0]) === 'number' ? (_firstData_gauge6 = firstData.gauge) === null || _firstData_gauge6 === void 0 ? void 0 : (_firstData_gauge_axis4 = _firstData_gauge6.axis) === null || _firstData_gauge_axis4 === void 0 ? void 0 : (_firstData_gauge_axis_range3 = _firstData_gauge_axis4.range) === null || _firstData_gauge_axis_range3 === void 0 ? void 0 : _firstData_gauge_axis_range3[0] : undefined,
2208
2196
  maxValue: typeof ((_firstData_gauge7 = firstData.gauge) === null || _firstData_gauge7 === void 0 ? void 0 : (_firstData_gauge_axis5 = _firstData_gauge7.axis) === null || _firstData_gauge_axis5 === void 0 ? void 0 : (_firstData_gauge_axis_range4 = _firstData_gauge_axis5.range) === null || _firstData_gauge_axis_range4 === void 0 ? void 0 : _firstData_gauge_axis_range4[1]) === 'number' ? (_firstData_gauge8 = firstData.gauge) === null || _firstData_gauge8 === void 0 ? void 0 : (_firstData_gauge_axis6 = _firstData_gauge8.axis) === null || _firstData_gauge_axis6 === void 0 ? void 0 : (_firstData_gauge_axis_range5 = _firstData_gauge_axis6.range) === null || _firstData_gauge_axis_range5 === void 0 ? void 0 : _firstData_gauge_axis_range5[1] : undefined,
2209
2197
  chartValueFormat: ()=>{
2198
+ var _ref;
2210
2199
  var _firstData_value;
2211
- var _firstData_value_toString;
2212
- return (_firstData_value_toString = (_firstData_value = firstData.value) === null || _firstData_value === void 0 ? void 0 : _firstData_value.toString()) !== null && _firstData_value_toString !== void 0 ? _firstData_value_toString : '';
2200
+ return (_ref = (_firstData_value = firstData.value) === null || _firstData_value === void 0 ? void 0 : _firstData_value.toString()) !== null && _ref !== void 0 ? _ref : '';
2213
2201
  },
2214
2202
  width: (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.width,
2215
- height: (_input_layout_height = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 220,
2203
+ height: (_ref2 = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.height) !== null && _ref2 !== void 0 ? _ref2 : 220,
2216
2204
  // TODO
2217
2205
  // styles,
2218
2206
  variant: ((_firstData_gauge9 = firstData.gauge) === null || _firstData_gauge9 === void 0 ? void 0 : (_firstData_gauge_steps1 = _firstData_gauge9.steps) === null || _firstData_gauge_steps1 === void 0 ? void 0 : _firstData_gauge_steps1.length) ? 'multiple-segments' : 'single-segment',
@@ -2260,24 +2248,25 @@ function resolveCellStyle(raw, rowIndex, colIndex) {
2260
2248
  return raw;
2261
2249
  }
2262
2250
  function mergeCells(tableCells, templateCells) {
2263
- var _tableCells_values, _ref, _tableCells_align, _templateCells_fill, _tableCells_fill, _templateCells_font, _tableCells_font, _tableCells_format, _tableCells_prefix, _tableCells_suffix;
2251
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
2264
2252
  return {
2265
- values: (_ref = (_tableCells_values = tableCells === null || tableCells === void 0 ? void 0 : tableCells.values) !== null && _tableCells_values !== void 0 ? _tableCells_values : templateCells === null || templateCells === void 0 ? void 0 : templateCells.values) !== null && _ref !== void 0 ? _ref : [],
2266
- align: (_tableCells_align = tableCells === null || tableCells === void 0 ? void 0 : tableCells.align) !== null && _tableCells_align !== void 0 ? _tableCells_align : templateCells === null || templateCells === void 0 ? void 0 : templateCells.align,
2253
+ values: (_ref = (_ref1 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.values) !== null && _ref1 !== void 0 ? _ref1 : templateCells === null || templateCells === void 0 ? void 0 : templateCells.values) !== null && _ref !== void 0 ? _ref : [],
2254
+ align: (_ref2 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.align) !== null && _ref2 !== void 0 ? _ref2 : templateCells === null || templateCells === void 0 ? void 0 : templateCells.align,
2267
2255
  fill: {
2268
- ...(_templateCells_fill = templateCells === null || templateCells === void 0 ? void 0 : templateCells.fill) !== null && _templateCells_fill !== void 0 ? _templateCells_fill : {},
2269
- ...(_tableCells_fill = tableCells === null || tableCells === void 0 ? void 0 : tableCells.fill) !== null && _tableCells_fill !== void 0 ? _tableCells_fill : {}
2256
+ ...(_ref3 = templateCells === null || templateCells === void 0 ? void 0 : templateCells.fill) !== null && _ref3 !== void 0 ? _ref3 : {},
2257
+ ...(_ref4 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.fill) !== null && _ref4 !== void 0 ? _ref4 : {}
2270
2258
  },
2271
2259
  font: {
2272
- ...(_templateCells_font = templateCells === null || templateCells === void 0 ? void 0 : templateCells.font) !== null && _templateCells_font !== void 0 ? _templateCells_font : {},
2273
- ...(_tableCells_font = tableCells === null || tableCells === void 0 ? void 0 : tableCells.font) !== null && _tableCells_font !== void 0 ? _tableCells_font : {}
2260
+ ...(_ref5 = templateCells === null || templateCells === void 0 ? void 0 : templateCells.font) !== null && _ref5 !== void 0 ? _ref5 : {},
2261
+ ...(_ref6 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.font) !== null && _ref6 !== void 0 ? _ref6 : {}
2274
2262
  },
2275
- format: (_tableCells_format = tableCells === null || tableCells === void 0 ? void 0 : tableCells.format) !== null && _tableCells_format !== void 0 ? _tableCells_format : templateCells === null || templateCells === void 0 ? void 0 : templateCells.format,
2276
- prefix: (_tableCells_prefix = tableCells === null || tableCells === void 0 ? void 0 : tableCells.prefix) !== null && _tableCells_prefix !== void 0 ? _tableCells_prefix : templateCells === null || templateCells === void 0 ? void 0 : templateCells.prefix,
2277
- suffix: (_tableCells_suffix = tableCells === null || tableCells === void 0 ? void 0 : tableCells.suffix) !== null && _tableCells_suffix !== void 0 ? _tableCells_suffix : templateCells === null || templateCells === void 0 ? void 0 : templateCells.suffix
2263
+ format: (_ref7 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.format) !== null && _ref7 !== void 0 ? _ref7 : templateCells === null || templateCells === void 0 ? void 0 : templateCells.format,
2264
+ prefix: (_ref8 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.prefix) !== null && _ref8 !== void 0 ? _ref8 : templateCells === null || templateCells === void 0 ? void 0 : templateCells.prefix,
2265
+ suffix: (_ref9 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.suffix) !== null && _ref9 !== void 0 ? _ref9 : templateCells === null || templateCells === void 0 ? void 0 : templateCells.suffix
2278
2266
  };
2279
2267
  }
2280
2268
  export const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
2269
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
2281
2270
  var _tableData_cells, _input_layout_template_data_table_, _input_layout_template_data_table, _input_layout_template_data, _input_layout_template, _input_layout, _input_layout_font, _input_layout1, _input_layout_template_data_table_1, _input_layout_template_data_table1, _input_layout_template_data1, _input_layout_template1, _input_layout2, _tableData_header, _input_layout3, _input_layout4;
2282
2271
  const tableData = input.data[0];
2283
2272
  const normalizeHeaders = (values, header)=>{
@@ -2310,8 +2299,7 @@ export const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMa
2310
2299
  };
2311
2300
  });
2312
2301
  };
2313
- var _tableData_cells_values;
2314
- const columns = (_tableData_cells_values = (_tableData_cells = tableData.cells) === null || _tableData_cells === void 0 ? void 0 : _tableData_cells.values) !== null && _tableData_cells_values !== void 0 ? _tableData_cells_values : [];
2302
+ const columns = (_ref = (_tableData_cells = tableData.cells) === null || _tableData_cells === void 0 ? void 0 : _tableData_cells.values) !== null && _ref !== void 0 ? _ref : [];
2315
2303
  const cells = mergeCells(tableData.cells, (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_data = _input_layout_template.data) === null || _input_layout_template_data === void 0 ? void 0 : (_input_layout_template_data_table = _input_layout_template_data.table) === null || _input_layout_template_data_table === void 0 ? void 0 : (_input_layout_template_data_table_ = _input_layout_template_data_table[0]) === null || _input_layout_template_data_table_ === void 0 ? void 0 : _input_layout_template_data_table_.cells);
2316
2304
  const rows = columns[0].map((_, rowIndex)=>columns.map((col, colIndex)=>{
2317
2305
  var _cells_font, _cells_font1, _cells_fill;
@@ -2350,23 +2338,21 @@ export const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMa
2350
2338
  };
2351
2339
  const templateHeader = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : (_input_layout_template1 = _input_layout2.template) === null || _input_layout_template1 === void 0 ? void 0 : (_input_layout_template_data1 = _input_layout_template1.data) === null || _input_layout_template_data1 === void 0 ? void 0 : (_input_layout_template_data_table1 = _input_layout_template_data1.table) === null || _input_layout_template_data_table1 === void 0 ? void 0 : (_input_layout_template_data_table_1 = _input_layout_template_data_table1[0]) === null || _input_layout_template_data_table_1 === void 0 ? void 0 : _input_layout_template_data_table_1.header;
2352
2340
  const tableHeader = tableData.header;
2353
- var _tableHeader_align, _templateHeader_fill, _tableHeader_fill, _templateHeader_font, _tableHeader_font, _tableHeader_values, _ref;
2354
2341
  const header = {
2355
- align: (_tableHeader_align = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.align) !== null && _tableHeader_align !== void 0 ? _tableHeader_align : templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.align,
2342
+ align: (_ref1 = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.align) !== null && _ref1 !== void 0 ? _ref1 : templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.align,
2356
2343
  fill: {
2357
- ...(_templateHeader_fill = templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.fill) !== null && _templateHeader_fill !== void 0 ? _templateHeader_fill : {},
2358
- ...(_tableHeader_fill = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.fill) !== null && _tableHeader_fill !== void 0 ? _tableHeader_fill : {}
2344
+ ...(_ref2 = templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.fill) !== null && _ref2 !== void 0 ? _ref2 : {},
2345
+ ...(_ref3 = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.fill) !== null && _ref3 !== void 0 ? _ref3 : {}
2359
2346
  },
2360
2347
  font: {
2361
- ...(_templateHeader_font = templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.font) !== null && _templateHeader_font !== void 0 ? _templateHeader_font : {},
2362
- ...(_tableHeader_font = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.font) !== null && _tableHeader_font !== void 0 ? _tableHeader_font : {}
2348
+ ...(_ref4 = templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.font) !== null && _ref4 !== void 0 ? _ref4 : {},
2349
+ ...(_ref5 = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.font) !== null && _ref5 !== void 0 ? _ref5 : {}
2363
2350
  },
2364
- values: (_ref = (_tableHeader_values = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.values) !== null && _tableHeader_values !== void 0 ? _tableHeader_values : templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.values) !== null && _ref !== void 0 ? _ref : []
2351
+ values: (_ref6 = (_ref7 = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.values) !== null && _ref7 !== void 0 ? _ref7 : templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.values) !== null && _ref6 !== void 0 ? _ref6 : []
2365
2352
  };
2366
2353
  const { chartTitle, titleStyles } = getTitles(input.layout);
2367
- var _tableData_header_values;
2368
2354
  return {
2369
- headers: normalizeHeaders((_tableData_header_values = (_tableData_header = tableData.header) === null || _tableData_header === void 0 ? void 0 : _tableData_header.values) !== null && _tableData_header_values !== void 0 ? _tableData_header_values : [], header),
2355
+ headers: normalizeHeaders((_ref8 = (_tableData_header = tableData.header) === null || _tableData_header === void 0 ? void 0 : _tableData_header.values) !== null && _ref8 !== void 0 ? _ref8 : [], header),
2370
2356
  rows,
2371
2357
  width: (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.width,
2372
2358
  height: (_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : _input_layout4.height,
@@ -2378,10 +2364,9 @@ export const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMa
2378
2364
  };
2379
2365
  };
2380
2366
  function getCategoriesAndValues(series) {
2367
+ var _ref, _series_labels, _ref1, _series_values;
2381
2368
  const orientation = series.orientation || 'h';
2382
- var _series_labels, _ref;
2383
2369
  const y = (_ref = (_series_labels = series.labels) !== null && _series_labels !== void 0 ? _series_labels : series.y) !== null && _ref !== void 0 ? _ref : series.stage;
2384
- var _series_values, _ref1;
2385
2370
  const x = (_ref1 = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref1 !== void 0 ? _ref1 : series.value;
2386
2371
  const xIsString = isStringArray(x);
2387
2372
  const yIsString = isStringArray(y);
@@ -2440,9 +2425,8 @@ export const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorM
2440
2425
  const funnelData = [];
2441
2426
  // Determine if data is stacked based on multiple series with multiple values per series
2442
2427
  const isStacked = input.data.length > 1 && input.data.every((series)=>{
2443
- var _series_values, _ref;
2428
+ var _ref, _series_values, _ref1, _series_labels;
2444
2429
  const values = (_ref = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref !== void 0 ? _ref : series.value;
2445
- var _series_labels, _ref1;
2446
2430
  const labels = (_ref1 = (_series_labels = series.labels) !== null && _series_labels !== void 0 ? _series_labels : series.y) !== null && _ref1 !== void 0 ? _ref1 : series.stage;
2447
2431
  return Array.isArray(labels) && Array.isArray(values) && values.length > 1 && labels.length > 1;
2448
2432
  });
@@ -2450,18 +2434,16 @@ export const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorM
2450
2434
  // Assign a color per series/category and use it for all subValues of that category
2451
2435
  const seriesColors = Object.create(null);
2452
2436
  input.data.forEach((series, seriesIdx)=>{
2437
+ var _ref, _ref1, _series_labels, _ref2, _series_values;
2453
2438
  var _input_layout_template_layout, _input_layout_template, _input_layout, _series_marker, _series_marker1, _input_layout_template_layout1, _input_layout_template1, _input_layout1;
2454
2439
  const category = series.name || `Category ${seriesIdx + 1}`;
2455
- var _series_marker_colors;
2456
2440
  // Use the same color for this category across all stages
2457
- const extractedColors = extractColor((_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_series_marker_colors = (_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.colors) !== null && _series_marker_colors !== void 0 ? _series_marker_colors : (_series_marker1 = series.marker) === null || _series_marker1 === void 0 ? void 0 : _series_marker1.color, colorMap, isDarkTheme);
2441
+ const extractedColors = extractColor((_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_ref = (_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.colors) !== null && _ref !== void 0 ? _ref : (_series_marker1 = series.marker) === null || _series_marker1 === void 0 ? void 0 : _series_marker1.color, colorMap, isDarkTheme);
2458
2442
  // Always use the first color for the series/category
2459
2443
  const color = resolveColor(extractedColors, 0, category, colorMap, (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template1 = _input_layout1.template) === null || _input_layout_template1 === void 0 ? void 0 : (_input_layout_template_layout1 = _input_layout_template1.layout) === null || _input_layout_template_layout1 === void 0 ? void 0 : _input_layout_template_layout1.colorway, isDarkTheme);
2460
2444
  seriesColors[category] = color;
2461
- var _series_labels, _ref;
2462
- const labels = (_ref = (_series_labels = series.labels) !== null && _series_labels !== void 0 ? _series_labels : series.y) !== null && _ref !== void 0 ? _ref : series.stage;
2463
- var _series_values, _ref1;
2464
- const values = (_ref1 = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref1 !== void 0 ? _ref1 : series.value;
2445
+ const labels = (_ref1 = (_series_labels = series.labels) !== null && _series_labels !== void 0 ? _series_labels : series.y) !== null && _ref1 !== void 0 ? _ref1 : series.stage;
2446
+ const values = (_ref2 = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref2 !== void 0 ? _ref2 : series.value;
2465
2447
  if (!isArrayOrTypedArray(labels) || !isArrayOrTypedArray(values)) {
2466
2448
  return;
2467
2449
  }
@@ -2496,13 +2478,13 @@ export const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorM
2496
2478
  } else {
2497
2479
  // Non-stacked data handling (multiple series with single-value arrays)
2498
2480
  input.data.forEach((series, seriesIdx)=>{
2481
+ var _ref;
2499
2482
  var _input_layout_template_layout, _input_layout_template, _input_layout, _series_marker, _series_marker1;
2500
2483
  const { categories, values } = getCategoriesAndValues(series);
2501
2484
  if (!isArrayOrTypedArray(categories) || !isArrayOrTypedArray(values)) {
2502
2485
  return;
2503
2486
  }
2504
- var _series_marker_colors;
2505
- const extractedColors = extractColor((_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_series_marker_colors = (_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.colors) !== null && _series_marker_colors !== void 0 ? _series_marker_colors : (_series_marker1 = series.marker) === null || _series_marker1 === void 0 ? void 0 : _series_marker1.color, colorMap, isDarkTheme);
2487
+ const extractedColors = extractColor((_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_ref = (_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.colors) !== null && _ref !== void 0 ? _ref : (_series_marker1 = series.marker) === null || _series_marker1 === void 0 ? void 0 : _series_marker1.color, colorMap, isDarkTheme);
2506
2488
  categories.forEach((label, i)=>{
2507
2489
  var _input_layout_template_layout, _input_layout_template, _input_layout;
2508
2490
  const color = resolveColor(extractedColors, i, label, colorMap, (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : (_input_layout_template = _input_layout.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, isDarkTheme);
@@ -2532,6 +2514,7 @@ export const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorM
2532
2514
  };
2533
2515
  };
2534
2516
  export const transformPlotlyJsonToPolarChartProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
2517
+ var _ref;
2535
2518
  var _input_layout, _input_layout1;
2536
2519
  const polarData = [];
2537
2520
  const { legends, hideLegend } = getLegendProps(input.data, input.layout, isMultiPlot);
@@ -2594,11 +2577,10 @@ export const transformPlotlyJsonToPolarChartProps = (input, isMultiPlot, colorMa
2594
2577
  }
2595
2578
  }
2596
2579
  });
2597
- var _input_layout_height;
2598
2580
  return {
2599
2581
  data: polarData,
2600
2582
  width: (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.width,
2601
- height: (_input_layout_height = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.height) !== null && _input_layout_height !== void 0 ? _input_layout_height : 400,
2583
+ height: (_ref = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.height) !== null && _ref !== void 0 ? _ref : 400,
2602
2584
  hideLegend,
2603
2585
  ...getPolarAxisProps(input.data, input.layout)
2604
2586
  };
@@ -2780,17 +2762,17 @@ export const getAllupLegendsProps = (input, colorMap, colorwayType, traceInfo, i
2780
2762
  if (toShowLegend) {
2781
2763
  input.data.forEach((series, index)=>{
2782
2764
  if (traceInfo[index].type === 'donut') {
2765
+ var _ref, _ref1;
2783
2766
  var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1, _input_layout2, _pieSeries_marker;
2784
2767
  const pieSeries = series;
2785
- var _input_layout_piecolorway, _input_layout_piecolorway1;
2786
- const colors = extractColor((_input_layout_piecolorway = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _input_layout_piecolorway !== void 0 ? _input_layout_piecolorway : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_input_layout_piecolorway1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.piecolorway) !== null && _input_layout_piecolorway1 !== void 0 ? _input_layout_piecolorway1 : pieSeries === null || pieSeries === void 0 ? void 0 : (_pieSeries_marker = pieSeries.marker) === null || _pieSeries_marker === void 0 ? void 0 : _pieSeries_marker.colors, colorMap, isDarkTheme, true);
2768
+ const colors = extractColor((_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _ref !== void 0 ? _ref : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, colorwayType, (_ref1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.piecolorway) !== null && _ref1 !== void 0 ? _ref1 : pieSeries === null || pieSeries === void 0 ? void 0 : (_pieSeries_marker = pieSeries.marker) === null || _pieSeries_marker === void 0 ? void 0 : _pieSeries_marker.colors, colorMap, isDarkTheme, true);
2787
2769
  if (isArrayOrTypedArray(pieSeries.labels)) {
2788
2770
  pieSeries.labels.forEach((label, labelIndex)=>{
2771
+ var _ref;
2789
2772
  var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1;
2790
2773
  const legend = `${label}`;
2791
- var _input_layout_piecolorway;
2792
2774
  // resolve color for each legend from the extracted colors
2793
- const color = resolveColor(colors, labelIndex, legend, colorMap, (_input_layout_piecolorway = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _input_layout_piecolorway !== void 0 ? _input_layout_piecolorway : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, isDarkTheme, true);
2775
+ const color = resolveColor(colors, labelIndex, legend, colorMap, (_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.piecolorway) !== null && _ref !== void 0 ? _ref : (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : (_input_layout_template = _input_layout1.template) === null || _input_layout_template === void 0 ? void 0 : (_input_layout_template_layout = _input_layout_template.layout) === null || _input_layout_template_layout === void 0 ? void 0 : _input_layout_template_layout.colorway, isDarkTheme, true);
2794
2776
  if (legend !== '' && allupLegends.some((group)=>group.title === legend) === false) {
2795
2777
  allupLegends.push({
2796
2778
  title: legend,
@@ -2908,10 +2890,10 @@ export const getGridProperties = (schema, isMultiPlot, validTracesInfo)=>{
2908
2890
  if (layout !== undefined && layout !== null && Object.keys(layout).length > 0) {
2909
2891
  Object.keys(layout !== null && layout !== void 0 ? layout : {}).forEach((key)=>{
2910
2892
  if (key.startsWith('xaxis')) {
2893
+ var _ref;
2911
2894
  var _layout_key;
2912
2895
  const index = getIndexFromKey(key, 'xaxis');
2913
- var _layout_key_anchor;
2914
- const anchor = (_layout_key_anchor = (_layout_key = layout[key]) === null || _layout_key === void 0 ? void 0 : _layout_key.anchor) !== null && _layout_key_anchor !== void 0 ? _layout_key_anchor : 'y';
2896
+ const anchor = (_ref = (_layout_key = layout[key]) === null || _layout_key === void 0 ? void 0 : _layout_key.anchor) !== null && _ref !== void 0 ? _ref : 'y';
2915
2897
  const anchorIndex = getIndexFromKey(anchor, 'y');
2916
2898
  if (index !== anchorIndex) {
2917
2899
  throw new Error(`Invalid layout: xaxis ${index + 1} anchor should be y${anchorIndex + 1}`);
@@ -2924,10 +2906,10 @@ export const getGridProperties = (schema, isMultiPlot, validTracesInfo)=>{
2924
2906
  };
2925
2907
  domainX.push(domainXInfo);
2926
2908
  } else if (key.startsWith('yaxis')) {
2909
+ var _ref1;
2927
2910
  var _layout_key1;
2928
2911
  const index = getIndexFromKey(key, 'yaxis');
2929
- var _layout_key_anchor1;
2930
- const anchor = (_layout_key_anchor1 = (_layout_key1 = layout[key]) === null || _layout_key1 === void 0 ? void 0 : _layout_key1.anchor) !== null && _layout_key_anchor1 !== void 0 ? _layout_key_anchor1 : 'x';
2912
+ const anchor = (_ref1 = (_layout_key1 = layout[key]) === null || _layout_key1 === void 0 ? void 0 : _layout_key1.anchor) !== null && _ref1 !== void 0 ? _ref1 : 'x';
2931
2913
  const anchorIndex = getIndexFromKey(anchor, 'x');
2932
2914
  if (index !== anchorIndex) {
2933
2915
  var _layout_yaxis2;
@@ -3299,10 +3281,10 @@ const getAxisObjects = (data, layout)=>{
3299
3281
  return axisObjects;
3300
3282
  };
3301
3283
  const getAxisType = (data, ax)=>{
3284
+ var _ax_type;
3302
3285
  if (!ax) {
3303
3286
  return 'category';
3304
3287
  }
3305
- var _ax_type;
3306
3288
  if ([
3307
3289
  'linear',
3308
3290
  'log',