@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.
- package/CHANGELOG.md +32 -2
- package/dist/index.d.cts +51 -0
- package/dist/index.d.ts +51 -0
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +1 -4
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +1 -1
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +1 -1
- package/lib/components/AnnotationOnlyChart/index.js.map +1 -1
- package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.js +35 -5
- package/lib/components/AreaChart/AreaChart.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib/components/AreaChart/index.js.map +1 -1
- package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +1 -1
- package/lib/components/ChartTable/ChartTable.js.map +1 -1
- package/lib/components/ChartTable/ChartTable.types.js.map +1 -1
- package/lib/components/ChartTable/index.js.map +1 -1
- package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +19 -29
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/index.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +2 -2
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +1 -1
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +2 -2
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.js +17 -15
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/CommonComponents/ChartPopover.js +3 -2
- package/lib/components/CommonComponents/ChartPopover.js.map +1 -1
- package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -1
- package/lib/components/CommonComponents/index.js.map +1 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +1 -1
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +1 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +9 -9
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +4 -4
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +92 -110
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/DeclarativeChart/index.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib/components/DonutChart/Arc/index.js.map +1 -1
- package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/index.js.map +1 -1
- package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +1 -1
- package/lib/components/DonutChart/index.js.map +1 -1
- package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +1 -1
- package/lib/components/FunnelChart/FunnelChart.js +5 -5
- package/lib/components/FunnelChart/FunnelChart.js.map +1 -1
- package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -1
- package/lib/components/FunnelChart/funnelGeometry.js.map +1 -1
- package/lib/components/FunnelChart/index.js.map +1 -1
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +1 -1
- package/lib/components/GanttChart/GanttChart.js +4 -3
- package/lib/components/GanttChart/GanttChart.js.map +1 -1
- package/lib/components/GanttChart/GanttChart.types.js.map +1 -1
- package/lib/components/GanttChart/index.js.map +1 -1
- package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.js +34 -13
- package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/components/GaugeChart/index.js.map +1 -1
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +45 -46
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.js +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib/components/HeatMapChart/index.js.map +1 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js +5 -6
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChart/index.js.map +1 -1
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +4 -4
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +1 -1
- package/lib/components/Legends/Legends.js +16 -20
- package/lib/components/Legends/Legends.js.map +1 -1
- package/lib/components/Legends/Legends.types.js.map +1 -1
- package/lib/components/Legends/OverflowMenu.js +13 -10
- package/lib/components/Legends/OverflowMenu.js.map +1 -1
- package/lib/components/Legends/index.js.map +1 -1
- package/lib/components/Legends/shape.js.map +1 -1
- package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +1 -1
- package/lib/components/LineChart/LineChart.js +40 -36
- package/lib/components/LineChart/LineChart.js.map +1 -1
- package/lib/components/LineChart/LineChart.types.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib/components/LineChart/index.js.map +1 -1
- package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +1 -1
- package/lib/components/PolarChart/PolarChart.js +3 -4
- package/lib/components/PolarChart/PolarChart.js.map +1 -1
- package/lib/components/PolarChart/PolarChart.types.js.map +1 -1
- package/lib/components/PolarChart/PolarChart.utils.js +3 -3
- package/lib/components/PolarChart/PolarChart.utils.js.map +1 -1
- package/lib/components/PolarChart/index.js.map +1 -1
- package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js.map +1 -1
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js +1 -1
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -1
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -1
- package/lib/components/ResponsiveContainer/index.js.map +1 -1
- package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +1 -1
- package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib/components/SankeyChart/index.js.map +1 -1
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.js +3 -3
- package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.types.js.map +1 -1
- package/lib/components/ScatterChart/index.js.map +1 -1
- package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.js +1 -3
- package/lib/components/Sparkline/Sparkline.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib/components/Sparkline/index.js.map +1 -1
- package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +2 -2
- package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +1 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +88 -88
- package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/index.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js +2 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib/components/VerticalBarChart/index.js.map +1 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +6 -5
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +1 -1
- package/lib/types/ChartAnnotation.js.map +1 -1
- package/lib/types/DataPoint.js.map +1 -1
- package/lib/types/EventAnnotation.js.map +1 -1
- package/lib/types/LegendDataItem.js.map +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib/utilities/ChartTitle.js +3 -4
- package/lib/utilities/ChartTitle.js.map +1 -1
- package/lib/utilities/Common.styles.js +1 -4
- package/lib/utilities/Common.styles.js.map +1 -1
- package/lib/utilities/Common.styles.raw.js +1 -4
- package/lib/utilities/Common.styles.raw.js.map +1 -1
- package/lib/utilities/FocusableTooltipText.js.map +1 -1
- package/lib/utilities/KeyCodes.js.map +1 -1
- package/lib/utilities/SVGTooltipText.js.map +1 -1
- package/lib/utilities/async-utils.js.map +1 -1
- package/lib/utilities/colors.js.map +1 -1
- package/lib/utilities/getWindow.js.map +1 -1
- package/lib/utilities/hooks.js.map +1 -1
- package/lib/utilities/image-export-utils.js.map +1 -1
- package/lib/utilities/index.js.map +1 -1
- package/lib/utilities/overflow-utils.js.map +1 -1
- package/lib/utilities/scatterpolar-utils.js +3 -4
- package/lib/utilities/scatterpolar-utils.js.map +1 -1
- package/lib/utilities/string.js.map +1 -1
- package/lib/utilities/test-data/specialChartNames.js +11 -0
- package/lib/utilities/test-data/specialChartNames.js.map +1 -0
- package/lib/utilities/test-data.js.map +1 -1
- package/lib/utilities/utilities.js +9 -9
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/utilities/vbc-utils.js.map +1 -1
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.cjs +1 -4
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.cjs.map +1 -1
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.cjs.map +1 -1
- package/lib-commonjs/components/AnnotationOnlyChart/index.cjs.map +1 -1
- package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.cjs +35 -5
- package/lib-commonjs/components/AreaChart/AreaChart.cjs.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.cjs.map +1 -1
- package/lib-commonjs/components/AreaChart/index.cjs.map +1 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/ChartTable/ChartTable.cjs.map +1 -1
- package/lib-commonjs/components/ChartTable/ChartTable.types.cjs.map +1 -1
- package/lib-commonjs/components/ChartTable/index.cjs.map +1 -1
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs +3 -3
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.cjs +19 -29
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/index.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs +14 -14
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.cjs +14 -14
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.cjs +17 -15
- package/lib-commonjs/components/CommonComponents/CartesianChart.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.cjs +3 -2
- package/lib-commonjs/components/CommonComponents/ChartPopover.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/index.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs +3 -3
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.cjs +9 -9
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.cjs.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.cjs +13 -13
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.cjs.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.cjs +122 -140
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.cjs.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/index.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/index.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/index.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/index.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.cjs +5 -5
- package/lib-commonjs/components/FunnelChart/FunnelChart.cjs.map +1 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.types.cjs.map +1 -1
- package/lib-commonjs/components/FunnelChart/funnelGeometry.cjs +6 -6
- package/lib-commonjs/components/FunnelChart/funnelGeometry.cjs.map +1 -1
- package/lib-commonjs/components/FunnelChart/index.cjs.map +1 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/GanttChart/GanttChart.cjs +4 -3
- package/lib-commonjs/components/GanttChart/GanttChart.cjs.map +1 -1
- package/lib-commonjs/components/GanttChart/GanttChart.types.cjs.map +1 -1
- package/lib-commonjs/components/GanttChart/index.cjs.map +1 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.cjs +41 -20
- package/lib-commonjs/components/GaugeChart/GaugeChart.cjs.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.cjs.map +1 -1
- package/lib-commonjs/components/GaugeChart/index.cjs.map +1 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs +44 -44
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.cjs.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.cjs.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/index.cjs.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.cjs.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.cjs.map +1 -1
- package/lib-commonjs/components/HeatMapChart/index.cjs.map +1 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.cjs +5 -6
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/index.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs +4 -4
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs +3 -3
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/Legends/Legends.cjs +16 -19
- package/lib-commonjs/components/Legends/Legends.cjs.map +1 -1
- package/lib-commonjs/components/Legends/Legends.types.cjs.map +1 -1
- package/lib-commonjs/components/Legends/OverflowMenu.cjs +12 -9
- package/lib-commonjs/components/Legends/OverflowMenu.cjs.map +1 -1
- package/lib-commonjs/components/Legends/index.cjs.map +1 -1
- package/lib-commonjs/components/Legends/shape.cjs.map +1 -1
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs +11 -11
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.cjs +11 -11
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.cjs +40 -36
- package/lib-commonjs/components/LineChart/LineChart.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.types.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/index.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/PolarChart/PolarChart.cjs +3 -4
- package/lib-commonjs/components/PolarChart/PolarChart.cjs.map +1 -1
- package/lib-commonjs/components/PolarChart/PolarChart.types.cjs.map +1 -1
- package/lib-commonjs/components/PolarChart/PolarChart.utils.cjs +10 -10
- package/lib-commonjs/components/PolarChart/PolarChart.utils.cjs.map +1 -1
- package/lib-commonjs/components/PolarChart/index.cjs.map +1 -1
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.cjs +1 -1
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.cjs.map +1 -1
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.cjs.map +1 -1
- package/lib-commonjs/components/ResponsiveContainer/index.cjs.map +1 -1
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs +3 -3
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.cjs.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.cjs +5 -5
- package/lib-commonjs/components/SankeyChart/SankeyChart.cjs.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.cjs.map +1 -1
- package/lib-commonjs/components/SankeyChart/index.cjs.map +1 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.cjs +3 -3
- package/lib-commonjs/components/ScatterChart/ScatterChart.cjs.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.cjs.map +1 -1
- package/lib-commonjs/components/ScatterChart/index.cjs.map +1 -1
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.cjs +1 -3
- package/lib-commonjs/components/Sparkline/Sparkline.cjs.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.types.cjs.map +1 -1
- package/lib-commonjs/components/Sparkline/index.cjs.map +1 -1
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs +3 -3
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.cjs.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.cjs +3 -3
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.cjs.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.cjs +7 -7
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.cjs.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.cjs +1 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.cjs.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs +105 -105
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.cjs.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.cjs.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/index.cjs.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs +2 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.cjs.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.cjs.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/index.cjs.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs +6 -5
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.cjs.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.cjs.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/index.cjs.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs +3 -3
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.cjs.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.cjs +3 -3
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.cjs.map +1 -1
- package/lib-commonjs/types/ChartAnnotation.cjs.map +1 -1
- package/lib-commonjs/types/DataPoint.cjs.map +1 -1
- package/lib-commonjs/types/EventAnnotation.cjs.map +1 -1
- package/lib-commonjs/types/LegendDataItem.cjs.map +1 -1
- package/lib-commonjs/types/index.cjs.map +1 -1
- package/lib-commonjs/utilities/ChartTitle.cjs +3 -4
- package/lib-commonjs/utilities/ChartTitle.cjs.map +1 -1
- package/lib-commonjs/utilities/Common.styles.cjs +9 -12
- package/lib-commonjs/utilities/Common.styles.cjs.map +1 -1
- package/lib-commonjs/utilities/Common.styles.raw.cjs +9 -12
- package/lib-commonjs/utilities/Common.styles.raw.cjs.map +1 -1
- package/lib-commonjs/utilities/FocusableTooltipText.cjs.map +1 -1
- package/lib-commonjs/utilities/KeyCodes.cjs.map +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.cjs.map +1 -1
- package/lib-commonjs/utilities/async-utils.cjs.map +1 -1
- package/lib-commonjs/utilities/colors.cjs +7 -7
- package/lib-commonjs/utilities/colors.cjs.map +1 -1
- package/lib-commonjs/utilities/getWindow.cjs.map +1 -1
- package/lib-commonjs/utilities/hooks.cjs.map +1 -1
- package/lib-commonjs/utilities/image-export-utils.cjs +3 -3
- package/lib-commonjs/utilities/image-export-utils.cjs.map +1 -1
- package/lib-commonjs/utilities/index.cjs.map +1 -1
- package/lib-commonjs/utilities/overflow-utils.cjs +4 -4
- package/lib-commonjs/utilities/overflow-utils.cjs.map +1 -1
- package/lib-commonjs/utilities/scatterpolar-utils.cjs +6 -7
- package/lib-commonjs/utilities/scatterpolar-utils.cjs.map +1 -1
- package/lib-commonjs/utilities/string.cjs +1 -1
- package/lib-commonjs/utilities/string.cjs.map +1 -1
- package/lib-commonjs/utilities/test-data/specialChartNames.cjs +21 -0
- package/lib-commonjs/utilities/test-data/specialChartNames.cjs.map +1 -0
- package/lib-commonjs/utilities/test-data.cjs +18 -18
- package/lib-commonjs/utilities/test-data.cjs.map +1 -1
- package/lib-commonjs/utilities/utilities.cjs +92 -92
- package/lib-commonjs/utilities/utilities.cjs.map +1 -1
- package/lib-commonjs/utilities/vbc-utils.cjs +7 -7
- package/lib-commonjs/utilities/vbc-utils.cjs.map +1 -1
- package/package.json +9 -9
|
@@ -6,95 +6,95 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for(var name in all)Object.defineProperty(target, name, {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: all
|
|
9
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
DEFAULT_POLAR_SUBPLOT
|
|
13
|
+
get DEFAULT_POLAR_SUBPLOT () {
|
|
14
14
|
return DEFAULT_POLAR_SUBPLOT;
|
|
15
15
|
},
|
|
16
|
-
NON_PLOT_KEY_PREFIX
|
|
16
|
+
get NON_PLOT_KEY_PREFIX () {
|
|
17
17
|
return NON_PLOT_KEY_PREFIX;
|
|
18
18
|
},
|
|
19
|
-
SINGLE_REPEAT
|
|
19
|
+
get SINGLE_REPEAT () {
|
|
20
20
|
return SINGLE_REPEAT;
|
|
21
21
|
},
|
|
22
|
-
_getGaugeAxisColor
|
|
22
|
+
get _getGaugeAxisColor () {
|
|
23
23
|
return _getGaugeAxisColor;
|
|
24
24
|
},
|
|
25
|
-
correctYearMonth
|
|
25
|
+
get correctYearMonth () {
|
|
26
26
|
return correctYearMonth;
|
|
27
27
|
},
|
|
28
|
-
findArrayAttributes
|
|
28
|
+
get findArrayAttributes () {
|
|
29
29
|
return findArrayAttributes;
|
|
30
30
|
},
|
|
31
|
-
getAllupLegendsProps
|
|
31
|
+
get getAllupLegendsProps () {
|
|
32
32
|
return getAllupLegendsProps;
|
|
33
33
|
},
|
|
34
|
-
getGridProperties
|
|
34
|
+
get getGridProperties () {
|
|
35
35
|
return getGridProperties;
|
|
36
36
|
},
|
|
37
|
-
getNumberAtIndexOrDefault
|
|
37
|
+
get getNumberAtIndexOrDefault () {
|
|
38
38
|
return getNumberAtIndexOrDefault;
|
|
39
39
|
},
|
|
40
|
-
getValidXYRanges
|
|
40
|
+
get getValidXYRanges () {
|
|
41
41
|
return getValidXYRanges;
|
|
42
42
|
},
|
|
43
|
-
isNonPlotType
|
|
43
|
+
get isNonPlotType () {
|
|
44
44
|
return isNonPlotType;
|
|
45
45
|
},
|
|
46
|
-
normalizeObjectArrayForGVBC
|
|
46
|
+
get normalizeObjectArrayForGVBC () {
|
|
47
47
|
return normalizeObjectArrayForGVBC;
|
|
48
48
|
},
|
|
49
|
-
resolveXAxisPoint
|
|
49
|
+
get resolveXAxisPoint () {
|
|
50
50
|
return resolveXAxisPoint;
|
|
51
51
|
},
|
|
52
|
-
transformPlotlyJsonToAnnotationChartProps
|
|
52
|
+
get transformPlotlyJsonToAnnotationChartProps () {
|
|
53
53
|
return transformPlotlyJsonToAnnotationChartProps;
|
|
54
54
|
},
|
|
55
|
-
transformPlotlyJsonToAreaChartProps
|
|
55
|
+
get transformPlotlyJsonToAreaChartProps () {
|
|
56
56
|
return transformPlotlyJsonToAreaChartProps;
|
|
57
57
|
},
|
|
58
|
-
transformPlotlyJsonToChartTableProps
|
|
58
|
+
get transformPlotlyJsonToChartTableProps () {
|
|
59
59
|
return transformPlotlyJsonToChartTableProps;
|
|
60
60
|
},
|
|
61
|
-
transformPlotlyJsonToDonutProps
|
|
61
|
+
get transformPlotlyJsonToDonutProps () {
|
|
62
62
|
return transformPlotlyJsonToDonutProps;
|
|
63
63
|
},
|
|
64
|
-
transformPlotlyJsonToFunnelChartProps
|
|
64
|
+
get transformPlotlyJsonToFunnelChartProps () {
|
|
65
65
|
return transformPlotlyJsonToFunnelChartProps;
|
|
66
66
|
},
|
|
67
|
-
transformPlotlyJsonToGVBCProps
|
|
67
|
+
get transformPlotlyJsonToGVBCProps () {
|
|
68
68
|
return transformPlotlyJsonToGVBCProps;
|
|
69
69
|
},
|
|
70
|
-
transformPlotlyJsonToGanttChartProps
|
|
70
|
+
get transformPlotlyJsonToGanttChartProps () {
|
|
71
71
|
return transformPlotlyJsonToGanttChartProps;
|
|
72
72
|
},
|
|
73
|
-
transformPlotlyJsonToGaugeProps
|
|
73
|
+
get transformPlotlyJsonToGaugeProps () {
|
|
74
74
|
return transformPlotlyJsonToGaugeProps;
|
|
75
75
|
},
|
|
76
|
-
transformPlotlyJsonToHeatmapProps
|
|
76
|
+
get transformPlotlyJsonToHeatmapProps () {
|
|
77
77
|
return transformPlotlyJsonToHeatmapProps;
|
|
78
78
|
},
|
|
79
|
-
transformPlotlyJsonToHorizontalBarWithAxisProps
|
|
79
|
+
get transformPlotlyJsonToHorizontalBarWithAxisProps () {
|
|
80
80
|
return transformPlotlyJsonToHorizontalBarWithAxisProps;
|
|
81
81
|
},
|
|
82
|
-
transformPlotlyJsonToLineChartProps
|
|
82
|
+
get transformPlotlyJsonToLineChartProps () {
|
|
83
83
|
return transformPlotlyJsonToLineChartProps;
|
|
84
84
|
},
|
|
85
|
-
transformPlotlyJsonToPolarChartProps
|
|
85
|
+
get transformPlotlyJsonToPolarChartProps () {
|
|
86
86
|
return transformPlotlyJsonToPolarChartProps;
|
|
87
87
|
},
|
|
88
|
-
transformPlotlyJsonToSankeyProps
|
|
88
|
+
get transformPlotlyJsonToSankeyProps () {
|
|
89
89
|
return transformPlotlyJsonToSankeyProps;
|
|
90
90
|
},
|
|
91
|
-
transformPlotlyJsonToScatterChartProps
|
|
91
|
+
get transformPlotlyJsonToScatterChartProps () {
|
|
92
92
|
return transformPlotlyJsonToScatterChartProps;
|
|
93
93
|
},
|
|
94
|
-
transformPlotlyJsonToVBCProps
|
|
94
|
+
get transformPlotlyJsonToVBCProps () {
|
|
95
95
|
return transformPlotlyJsonToVBCProps;
|
|
96
96
|
},
|
|
97
|
-
transformPlotlyJsonToVSBCProps
|
|
97
|
+
get transformPlotlyJsonToVSBCProps () {
|
|
98
98
|
return transformPlotlyJsonToVSBCProps;
|
|
99
99
|
}
|
|
100
100
|
});
|
|
@@ -148,10 +148,10 @@ const dashOptions = {
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
function getTitles(layout) {
|
|
151
|
+
var _ref, _ref1, _ref2;
|
|
151
152
|
var _layout_xaxis, _layout_xaxis1, _layout_xaxis_title, _layout_xaxis2, _layout_yaxis, _layout_yaxis1, _layout_yaxis_title, _layout_yaxis2;
|
|
152
153
|
const titleObj = layout === null || layout === void 0 ? void 0 : layout.title;
|
|
153
|
-
|
|
154
|
-
const chartTitle = typeof titleObj === 'string' ? titleObj : (_titleObj_text = titleObj === null || titleObj === void 0 ? void 0 : titleObj.text) !== null && _titleObj_text !== void 0 ? _titleObj_text : '';
|
|
154
|
+
const chartTitle = typeof titleObj === 'string' ? titleObj : (_ref = titleObj === null || titleObj === void 0 ? void 0 : titleObj.text) !== null && _ref !== void 0 ? _ref : '';
|
|
155
155
|
const titleFont = typeof titleObj === 'object' ? titleObj === null || titleObj === void 0 ? void 0 : titleObj.font : undefined;
|
|
156
156
|
const titleXAnchor = typeof titleObj === 'object' ? titleObj === null || titleObj === void 0 ? void 0 : titleObj.xanchor : undefined;
|
|
157
157
|
const titleYAnchor = typeof titleObj === 'object' ? titleObj === null || titleObj === void 0 ? void 0 : titleObj.yanchor : undefined;
|
|
@@ -170,14 +170,13 @@ function getTitles(layout) {
|
|
|
170
170
|
titlePad
|
|
171
171
|
} : {}
|
|
172
172
|
};
|
|
173
|
-
var _layout_xaxis_title_text, _layout_yaxis_title_text;
|
|
174
173
|
const titles = {
|
|
175
174
|
chartTitle,
|
|
176
175
|
...Object.keys(titleStyles).length > 0 ? {
|
|
177
176
|
titleStyles
|
|
178
177
|
} : {},
|
|
179
|
-
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 : (
|
|
180
|
-
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 : (
|
|
178
|
+
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 : '',
|
|
179
|
+
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 : '',
|
|
181
180
|
xAxisAnnotation: chartTitle
|
|
182
181
|
};
|
|
183
182
|
return titles;
|
|
@@ -684,11 +683,11 @@ const normalizeCoordinateValueForType = (coordinateType, value)=>{
|
|
|
684
683
|
};
|
|
685
684
|
const getAnnotationCoordinateValue = (axis, refType, annotation, layout)=>{
|
|
686
685
|
if (refType === 'axis') {
|
|
686
|
+
var _ref;
|
|
687
687
|
const axisRef = axis === 'x' ? annotation === null || annotation === void 0 ? void 0 : annotation.xref : annotation === null || annotation === void 0 ? void 0 : annotation.yref;
|
|
688
688
|
const axisLayout = getAxisLayoutByRef(layout, axisRef, axis);
|
|
689
689
|
const rawValue = axis === 'x' ? annotation === null || annotation === void 0 ? void 0 : annotation.x : annotation === null || annotation === void 0 ? void 0 : annotation.y;
|
|
690
|
-
|
|
691
|
-
const axisType = (_axisLayout_type = axisLayout === null || axisLayout === void 0 ? void 0 : axisLayout.type) !== null && _axisLayout_type !== void 0 ? _axisLayout_type : 'category';
|
|
690
|
+
const axisType = (_ref = axisLayout === null || axisLayout === void 0 ? void 0 : axisLayout.type) !== null && _ref !== void 0 ? _ref : 'category';
|
|
692
691
|
return convertAnnotationDataValue(rawValue, axisType);
|
|
693
692
|
}
|
|
694
693
|
const numericValue = toFiniteNumber(axis === 'x' ? annotation === null || annotation === void 0 ? void 0 : annotation.x : annotation === null || annotation === void 0 ? void 0 : annotation.y);
|
|
@@ -937,12 +936,12 @@ const getChartAnnotationsFromLayout = (data, layout, isMultiPlot)=>{
|
|
|
937
936
|
'x',
|
|
938
937
|
'y'
|
|
939
938
|
].forEach((axLetter)=>{
|
|
939
|
+
var _valuesByAxisKey_get;
|
|
940
940
|
const coords = trace[axLetter];
|
|
941
941
|
if (!coords || !(0, _chartutilities.isArrayOrTypedArray)(coords)) {
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
944
|
const axisKey = (0, _chartutilities.getAxisKey)(axLetter, axisIds[axLetter]);
|
|
945
|
-
var _valuesByAxisKey_get;
|
|
946
945
|
const existing = (_valuesByAxisKey_get = valuesByAxisKey.get(axisKey)) !== null && _valuesByAxisKey_get !== void 0 ? _valuesByAxisKey_get : [];
|
|
947
946
|
coords.forEach((val)=>{
|
|
948
947
|
if (!(0, _chartutilities.isInvalidValue)(val)) {
|
|
@@ -1063,8 +1062,8 @@ const normalizeObjectArrayForGVBC = (data, xLabels)=>{
|
|
|
1063
1062
|
};
|
|
1064
1063
|
};
|
|
1065
1064
|
const transformPlotlyJsonToAnnotationChartProps = (input, isMultiPlot, _colorMap, _colorwayType, _isDarkTheme)=>{
|
|
1066
|
-
var _layoutWithMeta_meta, _input_layout, _input_layout1, _input_layout2, _input_layout3, _input_layout_font, _input_layout4, _input_layout_font1, _input_layout5, _input_layout6;
|
|
1067
1065
|
var _getChartAnnotationsFromLayout;
|
|
1066
|
+
var _layoutWithMeta_meta, _input_layout, _input_layout1, _input_layout2, _input_layout3, _input_layout_font, _input_layout4, _input_layout_font1, _input_layout5, _input_layout6;
|
|
1068
1067
|
const annotations = (_getChartAnnotationsFromLayout = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot)) !== null && _getChartAnnotationsFromLayout !== void 0 ? _getChartAnnotationsFromLayout : [];
|
|
1069
1068
|
const titles = getTitles(input.layout);
|
|
1070
1069
|
const layoutTitle = titles.chartTitle || undefined;
|
|
@@ -1091,13 +1090,13 @@ const transformPlotlyJsonToAnnotationChartProps = (input, isMultiPlot, _colorMap
|
|
|
1091
1090
|
};
|
|
1092
1091
|
};
|
|
1093
1092
|
const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
1093
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
1094
1094
|
var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1, _input_layout2, _firstData_marker, _input_layout3, _input_layout4, _input_layout5, _input_layout6;
|
|
1095
1095
|
const firstData = input.data[0];
|
|
1096
|
-
var _input_layout_piecolorway, _input_layout_piecolorway1;
|
|
1097
1096
|
// extract colors for each series only once
|
|
1098
1097
|
// use piecolorway if available
|
|
1099
1098
|
// otherwise, default to colorway from template
|
|
1100
|
-
const colors = (0, _PlotlyColorAdapter.extractColor)((
|
|
1099
|
+
const colors = (0, _PlotlyColorAdapter.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);
|
|
1101
1100
|
const mapLegendToDataPoint = Object.create(null);
|
|
1102
1101
|
// clear colorMap for donut chart to reassign colors as the colorMap initially gets assigned by
|
|
1103
1102
|
// getAllupLegendsProps function without sorting labels by value
|
|
@@ -1118,10 +1117,10 @@ const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, colorwayT
|
|
|
1118
1117
|
// Sort descending by value; when marker colors are present, keep color attached to the label
|
|
1119
1118
|
validPairs.sort((a, b)=>b.value - a.value);
|
|
1120
1119
|
validPairs.forEach((pair, sortedIdx)=>{
|
|
1120
|
+
var _pair_color, _ref;
|
|
1121
1121
|
var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1;
|
|
1122
1122
|
const legend = `${pair.label}`;
|
|
1123
|
-
|
|
1124
|
-
const color = (_pair_color = pair.color) !== null && _pair_color !== void 0 ? _pair_color : (0, _PlotlyColorAdapter.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);
|
|
1123
|
+
const color = (_pair_color = pair.color) !== null && _pair_color !== void 0 ? _pair_color : (0, _PlotlyColorAdapter.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);
|
|
1125
1124
|
if (!mapLegendToDataPoint[legend]) {
|
|
1126
1125
|
mapLegendToDataPoint[legend] = {
|
|
1127
1126
|
legend,
|
|
@@ -1133,10 +1132,8 @@ const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, colorwayT
|
|
|
1133
1132
|
}
|
|
1134
1133
|
});
|
|
1135
1134
|
}
|
|
1136
|
-
|
|
1137
|
-
const
|
|
1138
|
-
var _input_layout_height;
|
|
1139
|
-
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;
|
|
1135
|
+
const width = (_ref2 = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.width) !== null && _ref2 !== void 0 ? _ref2 : 440;
|
|
1136
|
+
const height = (_ref3 = (_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : _input_layout4.height) !== null && _ref3 !== void 0 ? _ref3 : 220;
|
|
1140
1137
|
const hideLabels = firstData.textinfo ? ![
|
|
1141
1138
|
'value',
|
|
1142
1139
|
'percent',
|
|
@@ -1185,6 +1182,7 @@ const transformPlotlyJsonToDonutProps = (input, isMultiPlot, colorMap, colorwayT
|
|
|
1185
1182
|
};
|
|
1186
1183
|
};
|
|
1187
1184
|
const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme, fallbackVSBC)=>{
|
|
1185
|
+
var _ref, _ref1;
|
|
1188
1186
|
var _input_layout, _input_layout1, _input_layout2;
|
|
1189
1187
|
const mapXToDataPoints = Object.create(null);
|
|
1190
1188
|
let yMaxValue = 0;
|
|
@@ -1243,11 +1241,11 @@ const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1243
1241
|
yMaxValue = Math.max(yMaxValue, yVal);
|
|
1244
1242
|
}
|
|
1245
1243
|
} else if (series.type === 'scatter' || !!fallbackVSBC) {
|
|
1244
|
+
var _rgb_copy_formatHex81;
|
|
1246
1245
|
var _input_layout_template_layout1, _input_layout_template1, _input_layout1, _series_mode;
|
|
1247
1246
|
const lineColor = (0, _PlotlyColorAdapter.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);
|
|
1248
1247
|
const lineOptions = !((_series_mode = series.mode) === null || _series_mode === void 0 ? void 0 : _series_mode.includes('text')) ? getLineOptions(series.line) : undefined;
|
|
1249
1248
|
const legendShape = getLegendShape(series);
|
|
1250
|
-
var _rgb_copy_formatHex81;
|
|
1251
1249
|
mapXToDataPoints[x].lineData.push({
|
|
1252
1250
|
legend: legend + (validXYRanges.length > 1 ? `.${rangeIdx + 1}` : ''),
|
|
1253
1251
|
legendShape,
|
|
@@ -1272,8 +1270,7 @@ const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1272
1270
|
});
|
|
1273
1271
|
});
|
|
1274
1272
|
const xCategories = extractXCategories(input.data);
|
|
1275
|
-
|
|
1276
|
-
((_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)=>{
|
|
1273
|
+
((_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)=>{
|
|
1277
1274
|
var _shape_line;
|
|
1278
1275
|
const lineColor = (_shape_line = shape.line) === null || _shape_line === void 0 ? void 0 : _shape_line.color;
|
|
1279
1276
|
const resolveX = (val)=>{
|
|
@@ -1336,11 +1333,10 @@ const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1336
1333
|
});
|
|
1337
1334
|
const vsbcData = Object.values(mapXToDataPoints);
|
|
1338
1335
|
const annotations = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot);
|
|
1339
|
-
var _input_layout_height;
|
|
1340
1336
|
return {
|
|
1341
1337
|
data: vsbcData,
|
|
1342
1338
|
width: (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.width,
|
|
1343
|
-
height: (
|
|
1339
|
+
height: (_ref1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.height) !== null && _ref1 !== void 0 ? _ref1 : 350,
|
|
1344
1340
|
barWidth: 'auto',
|
|
1345
1341
|
yMaxValue,
|
|
1346
1342
|
yMinValue,
|
|
@@ -1368,6 +1364,7 @@ const transformPlotlyJsonToVSBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1368
1364
|
};
|
|
1369
1365
|
};
|
|
1370
1366
|
const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
1367
|
+
var _ref;
|
|
1371
1368
|
var _processedInput_layout, _processedInput_layout1;
|
|
1372
1369
|
// Handle object arrays in y values by normalizing the data first
|
|
1373
1370
|
let processedInput = {
|
|
@@ -1415,6 +1412,7 @@ const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1415
1412
|
legend,
|
|
1416
1413
|
key: legend,
|
|
1417
1414
|
data: series.x.map((x, xIndex)=>{
|
|
1415
|
+
var _rgb_copy_formatHex8;
|
|
1418
1416
|
var _series_y, _series_marker, _series_marker1, _series_marker_color, _series_marker2, _processedInput_layout_template_layout, _processedInput_layout_template, _processedInput_layout;
|
|
1419
1417
|
if ((0, _chartutilities.isInvalidValue)(x) || (0, _chartutilities.isInvalidValue)((_series_y = series.y) === null || _series_y === void 0 ? void 0 : _series_y[xIndex])) {
|
|
1420
1418
|
return;
|
|
@@ -1429,7 +1427,6 @@ const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1429
1427
|
if (barLabel && series.texttemplate) {
|
|
1430
1428
|
barLabel = formatTextWithTemplate(barLabel, series.texttemplate, xIndex);
|
|
1431
1429
|
}
|
|
1432
|
-
var _rgb_copy_formatHex8;
|
|
1433
1430
|
return {
|
|
1434
1431
|
x: x.toString(),
|
|
1435
1432
|
y: yVal,
|
|
@@ -1453,9 +1450,9 @@ const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1453
1450
|
const opacity = (0, _PlotlyColorAdapter.getOpacity)(series, index1);
|
|
1454
1451
|
const validXYRanges = getValidXYRanges(series);
|
|
1455
1452
|
validXYRanges.forEach(([rangeStart, rangeEnd])=>{
|
|
1453
|
+
var _rgb_copy_formatHex8;
|
|
1456
1454
|
const rangeXValues = series.x.slice(rangeStart, rangeEnd);
|
|
1457
1455
|
const rangeYValues = series.y.slice(rangeStart, rangeEnd);
|
|
1458
|
-
var _rgb_copy_formatHex8;
|
|
1459
1456
|
gvbcDataV2.push({
|
|
1460
1457
|
type: 'line',
|
|
1461
1458
|
legend,
|
|
@@ -1481,11 +1478,10 @@ const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1481
1478
|
}
|
|
1482
1479
|
});
|
|
1483
1480
|
const annotations = getChartAnnotationsFromLayout(processedInput.data, processedInput.layout, isMultiPlot);
|
|
1484
|
-
var _processedInput_layout_height;
|
|
1485
1481
|
return {
|
|
1486
1482
|
dataV2: gvbcDataV2,
|
|
1487
1483
|
width: (_processedInput_layout = processedInput.layout) === null || _processedInput_layout === void 0 ? void 0 : _processedInput_layout.width,
|
|
1488
|
-
height: (
|
|
1484
|
+
height: (_ref = (_processedInput_layout1 = processedInput.layout) === null || _processedInput_layout1 === void 0 ? void 0 : _processedInput_layout1.height) !== null && _ref !== void 0 ? _ref : 350,
|
|
1489
1485
|
barWidth: 'auto',
|
|
1490
1486
|
mode: 'plotly',
|
|
1491
1487
|
...secondaryYAxisValues,
|
|
@@ -1508,6 +1504,7 @@ const transformPlotlyJsonToGVBCProps = (input, isMultiPlot, colorMap, colorwayTy
|
|
|
1508
1504
|
};
|
|
1509
1505
|
};
|
|
1510
1506
|
const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
1507
|
+
var _ref;
|
|
1511
1508
|
var _input_layout, _input_layout1;
|
|
1512
1509
|
const vbcData = [];
|
|
1513
1510
|
const { legends, hideLegend } = getLegendProps(input.data, input.layout, isMultiPlot);
|
|
@@ -1549,6 +1546,7 @@ const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colorwayTyp
|
|
|
1549
1546
|
return yVal;
|
|
1550
1547
|
});
|
|
1551
1548
|
xBins.forEach((bin, index)=>{
|
|
1549
|
+
var _rgb_copy_formatHex8;
|
|
1552
1550
|
var _series_marker, _series_marker1, _series_marker_color, _series_marker2, _input_layout_template_layout, _input_layout_template, _input_layout;
|
|
1553
1551
|
const legend = legends[seriesIdx];
|
|
1554
1552
|
// resolve color for each legend's bars from the colorscale or extracted colors
|
|
@@ -1560,7 +1558,6 @@ const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colorwayTyp
|
|
|
1560
1558
|
if (barLabel && series.texttemplate) {
|
|
1561
1559
|
barLabel = formatTextWithTemplate(barLabel, series.texttemplate, index);
|
|
1562
1560
|
}
|
|
1563
|
-
var _rgb_copy_formatHex8;
|
|
1564
1561
|
vbcData.push({
|
|
1565
1562
|
x: isXString ? bin.join(', ') : getBinCenter(bin),
|
|
1566
1563
|
y: yVal,
|
|
@@ -1578,11 +1575,10 @@ const transformPlotlyJsonToVBCProps = (input, isMultiPlot, colorMap, colorwayTyp
|
|
|
1578
1575
|
});
|
|
1579
1576
|
});
|
|
1580
1577
|
const annotations = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot);
|
|
1581
|
-
var _input_layout_height;
|
|
1582
1578
|
return {
|
|
1583
1579
|
data: vbcData,
|
|
1584
1580
|
width: (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.width,
|
|
1585
|
-
height: (
|
|
1581
|
+
height: (_ref = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.height) !== null && _ref !== void 0 ? _ref : 350,
|
|
1586
1582
|
mode: 'histogram',
|
|
1587
1583
|
hideTickOverlap: true,
|
|
1588
1584
|
maxBarWidth: 50,
|
|
@@ -1630,6 +1626,7 @@ const mapColorFillBars = (layout)=>{
|
|
|
1630
1626
|
});
|
|
1631
1627
|
};
|
|
1632
1628
|
const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, colorMap, colorwayType, isDarkTheme)=>{
|
|
1629
|
+
var _ref, _ref1;
|
|
1633
1630
|
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;
|
|
1634
1631
|
const isScatterMarkers = [
|
|
1635
1632
|
'text',
|
|
@@ -1664,13 +1661,13 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
1664
1661
|
const legendShape = getLegendShape(series);
|
|
1665
1662
|
const validXYRanges = getValidXYRanges(series, resolveXValue);
|
|
1666
1663
|
return validXYRanges.map(([rangeStart, rangeEnd], rangeIdx)=>{
|
|
1664
|
+
var _rgb_copy_formatHex8;
|
|
1667
1665
|
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;
|
|
1668
1666
|
const rangeXValues = xValues.slice(rangeStart, rangeEnd);
|
|
1669
1667
|
const rangeYValues = series.y.slice(rangeStart, rangeEnd);
|
|
1670
1668
|
const markerSizes = (0, _chartutilities.isArrayOrTypedArray)((_series_marker = series.marker) === null || _series_marker === void 0 ? void 0 : _series_marker.size) ? series.marker.size.slice(rangeStart, rangeEnd) : [];
|
|
1671
1669
|
const markerColors = (0, _chartutilities.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;
|
|
1672
1670
|
const textValues = Array.isArray(series.text) ? series.text.slice(rangeStart, rangeEnd) : undefined;
|
|
1673
|
-
var _rgb_copy_formatHex8;
|
|
1674
1671
|
return {
|
|
1675
1672
|
legend,
|
|
1676
1673
|
legendShape,
|
|
@@ -1718,8 +1715,8 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
1718
1715
|
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;
|
|
1719
1716
|
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;
|
|
1720
1717
|
const xCategories = extractXCategories(input.data);
|
|
1721
|
-
|
|
1722
|
-
|
|
1718
|
+
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)=>{
|
|
1719
|
+
var _rgb_formatHex8;
|
|
1723
1720
|
var _shape_line;
|
|
1724
1721
|
const lineColor = (_shape_line = shape.line) === null || _shape_line === void 0 ? void 0 : _shape_line.color;
|
|
1725
1722
|
const resolveX = (val)=>{
|
|
@@ -1759,7 +1756,6 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
1759
1756
|
}
|
|
1760
1757
|
return val;
|
|
1761
1758
|
};
|
|
1762
|
-
var _rgb_formatHex8;
|
|
1763
1759
|
return {
|
|
1764
1760
|
legend: `Reference_${shapeIdx}`,
|
|
1765
1761
|
data: [
|
|
@@ -1797,12 +1793,11 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
1797
1793
|
]
|
|
1798
1794
|
};
|
|
1799
1795
|
const annotations = getChartAnnotationsFromLayout(input.data, input.layout, isMultiPlot);
|
|
1800
|
-
var _input_layout_height;
|
|
1801
1796
|
const commonProps = {
|
|
1802
1797
|
supportNegativeData: true,
|
|
1803
1798
|
...secondaryYAxisValues,
|
|
1804
1799
|
width: (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.width,
|
|
1805
|
-
height: (
|
|
1800
|
+
height: (_ref1 = (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.height) !== null && _ref1 !== void 0 ? _ref1 : 350,
|
|
1806
1801
|
hideTickOverlap: true,
|
|
1807
1802
|
hideLegend,
|
|
1808
1803
|
useUTC: false,
|
|
@@ -1844,6 +1839,7 @@ const transformPlotlyJsonToScatterTraceProps = (input, isMultiPlot, chartType, c
|
|
|
1844
1839
|
}
|
|
1845
1840
|
};
|
|
1846
1841
|
const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
1842
|
+
var _ref, _ref1, _ref2;
|
|
1847
1843
|
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;
|
|
1848
1844
|
const { legends, hideLegend } = getLegendProps(input.data, input.layout, isMultiPlot);
|
|
1849
1845
|
let colorScale = undefined;
|
|
@@ -1854,6 +1850,7 @@ const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPlot, col
|
|
|
1854
1850
|
const extractedColors = (0, _PlotlyColorAdapter.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);
|
|
1855
1851
|
const legend = legends[index];
|
|
1856
1852
|
return series.y.map((yValue, i)=>{
|
|
1853
|
+
var _rgb_copy_formatHex8;
|
|
1857
1854
|
var _series_marker, _series_marker1, _series_marker_color, _series_marker2, _input_layout_template_layout, _input_layout_template, _input_layout, _series_x, _series_text;
|
|
1858
1855
|
if ((0, _chartutilities.isInvalidValue)(yValue)) {
|
|
1859
1856
|
return null;
|
|
@@ -1861,7 +1858,6 @@ const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPlot, col
|
|
|
1861
1858
|
// resolve color for each legend's bars from the colorscale or extracted colors
|
|
1862
1859
|
const color = colorScale ? colorScale((0, _chartutilities.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) : (0, _PlotlyColorAdapter.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);
|
|
1863
1860
|
const opacity = (0, _PlotlyColorAdapter.getOpacity)(series, i);
|
|
1864
|
-
var _rgb_copy_formatHex8;
|
|
1865
1861
|
return {
|
|
1866
1862
|
x: (0, _chartutilities.isInvalidValue)((_series_x = series.x) === null || _series_x === void 0 ? void 0 : _series_x[i]) ? 0 : series.x[i],
|
|
1867
1863
|
y: yValue,
|
|
@@ -1875,12 +1871,9 @@ const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPlot, col
|
|
|
1875
1871
|
};
|
|
1876
1872
|
}).filter((point)=>point !== null);
|
|
1877
1873
|
}).flat();
|
|
1878
|
-
|
|
1879
|
-
const
|
|
1880
|
-
|
|
1881
|
-
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;
|
|
1882
|
-
var _input_layout_margin_pad;
|
|
1883
|
-
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;
|
|
1874
|
+
const chartHeight = (_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.height) !== null && _ref !== void 0 ? _ref : 450;
|
|
1875
|
+
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;
|
|
1876
|
+
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;
|
|
1884
1877
|
const availableHeight = chartHeight - margin - padding;
|
|
1885
1878
|
const numberOfRows = new Set(chartData.map((d)=>d.y)).size || 1;
|
|
1886
1879
|
const scalingFactor = 0.01;
|
|
@@ -1907,6 +1900,7 @@ const transformPlotlyJsonToHorizontalBarWithAxisProps = (input, isMultiPlot, col
|
|
|
1907
1900
|
};
|
|
1908
1901
|
};
|
|
1909
1902
|
const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
1903
|
+
var _ref;
|
|
1910
1904
|
var _input_layout, _input_layout1;
|
|
1911
1905
|
const data = input.data.filter((series)=>series.type !== 'scatter' || series.mode !== 'markers');
|
|
1912
1906
|
const { legends, hideLegend } = getLegendProps(data, input.layout, isMultiPlot);
|
|
@@ -1927,6 +1921,7 @@ const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMap, colo
|
|
|
1927
1921
|
// extract colors for each series only once
|
|
1928
1922
|
const extractedColors = (0, _PlotlyColorAdapter.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);
|
|
1929
1923
|
series.y.forEach((yVal, i)=>{
|
|
1924
|
+
var _rgb_copy_formatHex8;
|
|
1930
1925
|
var _series_marker, _series_marker1, _series_marker_color, _series_marker2, _input_layout_template_layout, _input_layout_template, _input_layout, _series_x;
|
|
1931
1926
|
if ((0, _chartutilities.isInvalidValue)(yVal)) {
|
|
1932
1927
|
return;
|
|
@@ -1936,7 +1931,6 @@ const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMap, colo
|
|
|
1936
1931
|
const opacity = (0, _PlotlyColorAdapter.getOpacity)(series, i);
|
|
1937
1932
|
const base = +resolveGanttXValue((0, _chartutilities.isArrayOrTypedArray)(series.base) ? series.base[i] : series.base);
|
|
1938
1933
|
const xVal = +resolveGanttXValue((_series_x = series.x) === null || _series_x === void 0 ? void 0 : _series_x[i]);
|
|
1939
|
-
var _rgb_copy_formatHex8;
|
|
1940
1934
|
ganttData.push({
|
|
1941
1935
|
x: {
|
|
1942
1936
|
start: isXDate ? new Date(base) : base,
|
|
@@ -1970,11 +1964,10 @@ const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMap, colo
|
|
|
1970
1964
|
}
|
|
1971
1965
|
}
|
|
1972
1966
|
});
|
|
1973
|
-
var _input_layout_height;
|
|
1974
1967
|
return {
|
|
1975
1968
|
data: ganttData,
|
|
1976
1969
|
showYAxisLables: true,
|
|
1977
|
-
height: (
|
|
1970
|
+
height: (_ref = (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.height) !== null && _ref !== void 0 ? _ref : 350,
|
|
1978
1971
|
width: (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.width,
|
|
1979
1972
|
hideTickOverlap: true,
|
|
1980
1973
|
hideLegend,
|
|
@@ -1989,6 +1982,7 @@ const transformPlotlyJsonToGanttChartProps = (input, isMultiPlot, colorMap, colo
|
|
|
1989
1982
|
};
|
|
1990
1983
|
};
|
|
1991
1984
|
const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
1985
|
+
var _firstData_name, _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
1992
1986
|
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;
|
|
1993
1987
|
const firstData = input.data[0];
|
|
1994
1988
|
const heatmapDataPoints = [];
|
|
@@ -2042,8 +2036,8 @@ const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwa
|
|
|
2042
2036
|
const yValues = [];
|
|
2043
2037
|
const zValues = [];
|
|
2044
2038
|
(_firstData_x = firstData.x) === null || _firstData_x === void 0 ? void 0 : _firstData_x.forEach((xVal, index)=>{
|
|
2045
|
-
var _firstData_y;
|
|
2046
2039
|
var _getNumberAtIndexOrDefault;
|
|
2040
|
+
var _firstData_y;
|
|
2047
2041
|
const zVal = (_getNumberAtIndexOrDefault = getNumberAtIndexOrDefault(firstData.z, index)) !== null && _getNumberAtIndexOrDefault !== void 0 ? _getNumberAtIndexOrDefault : 0;
|
|
2048
2042
|
if ((0, _chartutilities.isInvalidValue)(xVal) || (0, _chartutilities.isInvalidValue)((_firstData_y = firstData.y) === null || _firstData_y === void 0 ? void 0 : _firstData_y[index])) {
|
|
2049
2043
|
return;
|
|
@@ -2089,16 +2083,15 @@ const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwa
|
|
|
2089
2083
|
});
|
|
2090
2084
|
});
|
|
2091
2085
|
} else {
|
|
2086
|
+
var _ref6, _ref7;
|
|
2092
2087
|
var _zArray_;
|
|
2093
2088
|
// If x and y are not provided, generate indices based on z dimensions
|
|
2094
2089
|
const zArray = firstData.z;
|
|
2095
2090
|
const xValues = firstData.x;
|
|
2096
2091
|
const yValues = firstData.y;
|
|
2097
|
-
var _zArray_length;
|
|
2098
2092
|
// Determine the dimensions from z array
|
|
2099
|
-
const yLength = (
|
|
2100
|
-
|
|
2101
|
-
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;
|
|
2093
|
+
const yLength = (_ref6 = zArray === null || zArray === void 0 ? void 0 : zArray.length) !== null && _ref6 !== void 0 ? _ref6 : 0;
|
|
2094
|
+
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;
|
|
2102
2095
|
// Use provided x/y values or generate indices
|
|
2103
2096
|
const xData = xValues !== null && xValues !== void 0 ? xValues : Array.from({
|
|
2104
2097
|
length: xLength
|
|
@@ -2125,7 +2118,6 @@ const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwa
|
|
|
2125
2118
|
});
|
|
2126
2119
|
});
|
|
2127
2120
|
}
|
|
2128
|
-
var _firstData_name;
|
|
2129
2121
|
const heatmapData = {
|
|
2130
2122
|
legend: (_firstData_name = firstData.name) !== null && _firstData_name !== void 0 ? _firstData_name : '',
|
|
2131
2123
|
data: heatmapDataPoints,
|
|
@@ -2142,8 +2134,7 @@ const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwa
|
|
|
2142
2134
|
(0, _colors.getColorFromToken)(_colors.DataVizPalette.color2),
|
|
2143
2135
|
(0, _colors.getColorFromToken)(_colors.DataVizPalette.color3)
|
|
2144
2136
|
];
|
|
2145
|
-
|
|
2146
|
-
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;
|
|
2137
|
+
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;
|
|
2147
2138
|
// determine if the types diverging, sequential or sequentialminus are present in colorscale
|
|
2148
2139
|
if (colorscale && typeof colorscale === 'object' && ('diverging' in colorscale || 'sequential' in colorscale || 'sequentialminus' in colorscale)) {
|
|
2149
2140
|
const isDivergent = zMin < 0 && zMax > 0; // Data spans both positive and negative values
|
|
@@ -2159,7 +2150,6 @@ const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwa
|
|
|
2159
2150
|
}
|
|
2160
2151
|
const domainValuesForColorScale = Array.isArray(colorscale) ? colorscale.map((arr)=>arr[0] * (zMax - zMin) + zMin) : defaultDomain;
|
|
2161
2152
|
const rangeValuesForColorScale = Array.isArray(colorscale) ? colorscale.map((arr)=>arr[1]) : defaultRange;
|
|
2162
|
-
var _input_layout_height;
|
|
2163
2153
|
return {
|
|
2164
2154
|
data: [
|
|
2165
2155
|
heatmapData
|
|
@@ -2170,7 +2160,7 @@ const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwa
|
|
|
2170
2160
|
showYAxisLables: true,
|
|
2171
2161
|
sortOrder: 'none',
|
|
2172
2162
|
width: (_input_layout6 = input.layout) === null || _input_layout6 === void 0 ? void 0 : _input_layout6.width,
|
|
2173
|
-
height: (
|
|
2163
|
+
height: (_ref5 = (_input_layout7 = input.layout) === null || _input_layout7 === void 0 ? void 0 : _input_layout7.height) !== null && _ref5 !== void 0 ? _ref5 : 350,
|
|
2174
2164
|
hideTickOverlap: true,
|
|
2175
2165
|
noOfCharsToTruncate: 20,
|
|
2176
2166
|
showYAxisLablesTooltip: true,
|
|
@@ -2182,10 +2172,10 @@ const transformPlotlyJsonToHeatmapProps = (input, isMultiPlot, colorMap, colorwa
|
|
|
2182
2172
|
};
|
|
2183
2173
|
};
|
|
2184
2174
|
const transformPlotlyJsonToSankeyProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
2175
|
+
var _ref, _ref1;
|
|
2185
2176
|
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;
|
|
2186
2177
|
const { link, node } = input.data[0];
|
|
2187
|
-
|
|
2188
|
-
const validLinks = ((_link_value = link === null || link === void 0 ? void 0 : link.value) !== null && _link_value !== void 0 ? _link_value : []).map((val, index)=>{
|
|
2178
|
+
const validLinks = ((_ref = link === null || link === void 0 ? void 0 : link.value) !== null && _ref !== void 0 ? _ref : []).map((val, index)=>{
|
|
2189
2179
|
var _link_source, _link_target;
|
|
2190
2180
|
if ((0, _chartutilities.isInvalidValue)(val) || (0, _chartutilities.isInvalidValue)(link === null || link === void 0 ? void 0 : (_link_source = link.source) === null || _link_source === void 0 ? void 0 : _link_source[index]) || (0, _chartutilities.isInvalidValue)(link === null || link === void 0 ? void 0 : (_link_target = link.target) === null || _link_target === void 0 ? void 0 : _link_target[index])) {
|
|
2191
2181
|
return null;
|
|
@@ -2225,14 +2215,13 @@ const transformPlotlyJsonToSankeyProps = (input, isMultiPlot, colorMap, colorway
|
|
|
2225
2215
|
// },
|
|
2226
2216
|
// };
|
|
2227
2217
|
const { chartTitle, titleStyles } = getTitles(input.layout);
|
|
2228
|
-
var _input_layout_height;
|
|
2229
2218
|
return {
|
|
2230
2219
|
data: {
|
|
2231
2220
|
chartTitle,
|
|
2232
2221
|
SankeyChartData: sankeyChartData
|
|
2233
2222
|
},
|
|
2234
2223
|
width: (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.width,
|
|
2235
|
-
height: (
|
|
2224
|
+
height: (_ref1 = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.height) !== null && _ref1 !== void 0 ? _ref1 : 468,
|
|
2236
2225
|
// TODO
|
|
2237
2226
|
// styles,
|
|
2238
2227
|
hideLegend: isMultiPlot || ((_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : _input_layout4.showlegend) === false,
|
|
@@ -2242,11 +2231,11 @@ const transformPlotlyJsonToSankeyProps = (input, isMultiPlot, colorMap, colorway
|
|
|
2242
2231
|
};
|
|
2243
2232
|
};
|
|
2244
2233
|
const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
2234
|
+
var _firstData_value, _ref, _ref1, _firstData_value1, _firstData_value2, _ref2;
|
|
2245
2235
|
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;
|
|
2246
2236
|
const firstData = input.data[0];
|
|
2247
2237
|
const stepsColors = ((_firstData_gauge = firstData.gauge) === null || _firstData_gauge === void 0 ? void 0 : _firstData_gauge.steps) ? firstData.gauge.steps.map((step)=>step.color) : undefined;
|
|
2248
2238
|
const extractedColors = (0, _PlotlyColorAdapter.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);
|
|
2249
|
-
var _firstData_gauge_axis_range_, _firstData_value, _firstData_gauge_axis_range_1, _firstData_value1;
|
|
2250
2239
|
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)=>{
|
|
2251
2240
|
var _input_layout_template_layout, _input_layout_template, _input_layout, _step_range, _step_range1;
|
|
2252
2241
|
const legend = step.name || `Segment ${index + 1}`;
|
|
@@ -2259,12 +2248,12 @@ const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, colorwayT
|
|
|
2259
2248
|
}) : [
|
|
2260
2249
|
{
|
|
2261
2250
|
legend: 'Current',
|
|
2262
|
-
size: (_firstData_value = firstData.value) !== null && _firstData_value !== void 0 ? _firstData_value : 0 - ((
|
|
2251
|
+
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),
|
|
2263
2252
|
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)
|
|
2264
2253
|
},
|
|
2265
2254
|
{
|
|
2266
2255
|
legend: 'Target',
|
|
2267
|
-
size: ((
|
|
2256
|
+
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),
|
|
2268
2257
|
color: _colors.DataVizPalette.disabled
|
|
2269
2258
|
}
|
|
2270
2259
|
];
|
|
@@ -2290,7 +2279,6 @@ const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, colorwayT
|
|
|
2290
2279
|
sublabel: sublabelColor
|
|
2291
2280
|
};
|
|
2292
2281
|
const { chartTitle, titleStyles } = getTitles(input.layout);
|
|
2293
|
-
var _firstData_value2, _input_layout_height;
|
|
2294
2282
|
return {
|
|
2295
2283
|
segments,
|
|
2296
2284
|
chartValue: (_firstData_value2 = firstData.value) !== null && _firstData_value2 !== void 0 ? _firstData_value2 : 0,
|
|
@@ -2300,12 +2288,12 @@ const transformPlotlyJsonToGaugeProps = (input, isMultiPlot, colorMap, colorwayT
|
|
|
2300
2288
|
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,
|
|
2301
2289
|
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,
|
|
2302
2290
|
chartValueFormat: ()=>{
|
|
2291
|
+
var _ref;
|
|
2303
2292
|
var _firstData_value;
|
|
2304
|
-
|
|
2305
|
-
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 : '';
|
|
2293
|
+
return (_ref = (_firstData_value = firstData.value) === null || _firstData_value === void 0 ? void 0 : _firstData_value.toString()) !== null && _ref !== void 0 ? _ref : '';
|
|
2306
2294
|
},
|
|
2307
2295
|
width: (_input_layout2 = input.layout) === null || _input_layout2 === void 0 ? void 0 : _input_layout2.width,
|
|
2308
|
-
height: (
|
|
2296
|
+
height: (_ref2 = (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.height) !== null && _ref2 !== void 0 ? _ref2 : 220,
|
|
2309
2297
|
// TODO
|
|
2310
2298
|
// styles,
|
|
2311
2299
|
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',
|
|
@@ -2353,24 +2341,25 @@ function resolveCellStyle(raw, rowIndex, colIndex) {
|
|
|
2353
2341
|
return raw;
|
|
2354
2342
|
}
|
|
2355
2343
|
function mergeCells(tableCells, templateCells) {
|
|
2356
|
-
var
|
|
2344
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
2357
2345
|
return {
|
|
2358
|
-
values: (_ref = (
|
|
2359
|
-
align: (
|
|
2346
|
+
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 : [],
|
|
2347
|
+
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,
|
|
2360
2348
|
fill: {
|
|
2361
|
-
...(
|
|
2362
|
-
...(
|
|
2349
|
+
...(_ref3 = templateCells === null || templateCells === void 0 ? void 0 : templateCells.fill) !== null && _ref3 !== void 0 ? _ref3 : {},
|
|
2350
|
+
...(_ref4 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.fill) !== null && _ref4 !== void 0 ? _ref4 : {}
|
|
2363
2351
|
},
|
|
2364
2352
|
font: {
|
|
2365
|
-
...(
|
|
2366
|
-
...(
|
|
2353
|
+
...(_ref5 = templateCells === null || templateCells === void 0 ? void 0 : templateCells.font) !== null && _ref5 !== void 0 ? _ref5 : {},
|
|
2354
|
+
...(_ref6 = tableCells === null || tableCells === void 0 ? void 0 : tableCells.font) !== null && _ref6 !== void 0 ? _ref6 : {}
|
|
2367
2355
|
},
|
|
2368
|
-
format: (
|
|
2369
|
-
prefix: (
|
|
2370
|
-
suffix: (
|
|
2356
|
+
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,
|
|
2357
|
+
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,
|
|
2358
|
+
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
|
|
2371
2359
|
};
|
|
2372
2360
|
}
|
|
2373
2361
|
const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
2362
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
2374
2363
|
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;
|
|
2375
2364
|
const tableData = input.data[0];
|
|
2376
2365
|
const normalizeHeaders = (values, header)=>{
|
|
@@ -2403,8 +2392,7 @@ const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMap, colo
|
|
|
2403
2392
|
};
|
|
2404
2393
|
});
|
|
2405
2394
|
};
|
|
2406
|
-
|
|
2407
|
-
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 : [];
|
|
2395
|
+
const columns = (_ref = (_tableData_cells = tableData.cells) === null || _tableData_cells === void 0 ? void 0 : _tableData_cells.values) !== null && _ref !== void 0 ? _ref : [];
|
|
2408
2396
|
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);
|
|
2409
2397
|
const rows = columns[0].map((_, rowIndex)=>columns.map((col, colIndex)=>{
|
|
2410
2398
|
var _cells_font, _cells_font1, _cells_fill;
|
|
@@ -2443,23 +2431,21 @@ const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMap, colo
|
|
|
2443
2431
|
};
|
|
2444
2432
|
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;
|
|
2445
2433
|
const tableHeader = tableData.header;
|
|
2446
|
-
var _tableHeader_align, _templateHeader_fill, _tableHeader_fill, _templateHeader_font, _tableHeader_font, _tableHeader_values, _ref;
|
|
2447
2434
|
const header = {
|
|
2448
|
-
align: (
|
|
2435
|
+
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,
|
|
2449
2436
|
fill: {
|
|
2450
|
-
...(
|
|
2451
|
-
...(
|
|
2437
|
+
...(_ref2 = templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.fill) !== null && _ref2 !== void 0 ? _ref2 : {},
|
|
2438
|
+
...(_ref3 = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.fill) !== null && _ref3 !== void 0 ? _ref3 : {}
|
|
2452
2439
|
},
|
|
2453
2440
|
font: {
|
|
2454
|
-
...(
|
|
2455
|
-
...(
|
|
2441
|
+
...(_ref4 = templateHeader === null || templateHeader === void 0 ? void 0 : templateHeader.font) !== null && _ref4 !== void 0 ? _ref4 : {},
|
|
2442
|
+
...(_ref5 = tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.font) !== null && _ref5 !== void 0 ? _ref5 : {}
|
|
2456
2443
|
},
|
|
2457
|
-
values: (
|
|
2444
|
+
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 : []
|
|
2458
2445
|
};
|
|
2459
2446
|
const { chartTitle, titleStyles } = getTitles(input.layout);
|
|
2460
|
-
var _tableData_header_values;
|
|
2461
2447
|
return {
|
|
2462
|
-
headers: normalizeHeaders((
|
|
2448
|
+
headers: normalizeHeaders((_ref8 = (_tableData_header = tableData.header) === null || _tableData_header === void 0 ? void 0 : _tableData_header.values) !== null && _ref8 !== void 0 ? _ref8 : [], header),
|
|
2463
2449
|
rows,
|
|
2464
2450
|
width: (_input_layout3 = input.layout) === null || _input_layout3 === void 0 ? void 0 : _input_layout3.width,
|
|
2465
2451
|
height: (_input_layout4 = input.layout) === null || _input_layout4 === void 0 ? void 0 : _input_layout4.height,
|
|
@@ -2471,10 +2457,9 @@ const transformPlotlyJsonToChartTableProps = (input, isMultiPlot, colorMap, colo
|
|
|
2471
2457
|
};
|
|
2472
2458
|
};
|
|
2473
2459
|
function getCategoriesAndValues(series) {
|
|
2460
|
+
var _ref, _series_labels, _ref1, _series_values;
|
|
2474
2461
|
const orientation = series.orientation || 'h';
|
|
2475
|
-
var _series_labels, _ref;
|
|
2476
2462
|
const y = (_ref = (_series_labels = series.labels) !== null && _series_labels !== void 0 ? _series_labels : series.y) !== null && _ref !== void 0 ? _ref : series.stage;
|
|
2477
|
-
var _series_values, _ref1;
|
|
2478
2463
|
const x = (_ref1 = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref1 !== void 0 ? _ref1 : series.value;
|
|
2479
2464
|
const xIsString = (0, _chartutilities.isStringArray)(x);
|
|
2480
2465
|
const yIsString = (0, _chartutilities.isStringArray)(y);
|
|
@@ -2533,9 +2518,8 @@ const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorMap, col
|
|
|
2533
2518
|
const funnelData = [];
|
|
2534
2519
|
// Determine if data is stacked based on multiple series with multiple values per series
|
|
2535
2520
|
const isStacked = input.data.length > 1 && input.data.every((series)=>{
|
|
2536
|
-
var _series_values,
|
|
2521
|
+
var _ref, _series_values, _ref1, _series_labels;
|
|
2537
2522
|
const values = (_ref = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref !== void 0 ? _ref : series.value;
|
|
2538
|
-
var _series_labels, _ref1;
|
|
2539
2523
|
const labels = (_ref1 = (_series_labels = series.labels) !== null && _series_labels !== void 0 ? _series_labels : series.y) !== null && _ref1 !== void 0 ? _ref1 : series.stage;
|
|
2540
2524
|
return Array.isArray(labels) && Array.isArray(values) && values.length > 1 && labels.length > 1;
|
|
2541
2525
|
});
|
|
@@ -2543,18 +2527,16 @@ const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorMap, col
|
|
|
2543
2527
|
// Assign a color per series/category and use it for all subValues of that category
|
|
2544
2528
|
const seriesColors = Object.create(null);
|
|
2545
2529
|
input.data.forEach((series, seriesIdx)=>{
|
|
2530
|
+
var _ref, _ref1, _series_labels, _ref2, _series_values;
|
|
2546
2531
|
var _input_layout_template_layout, _input_layout_template, _input_layout, _series_marker, _series_marker1, _input_layout_template_layout1, _input_layout_template1, _input_layout1;
|
|
2547
2532
|
const category = series.name || `Category ${seriesIdx + 1}`;
|
|
2548
|
-
var _series_marker_colors;
|
|
2549
2533
|
// Use the same color for this category across all stages
|
|
2550
|
-
const extractedColors = (0, _PlotlyColorAdapter.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, (
|
|
2534
|
+
const extractedColors = (0, _PlotlyColorAdapter.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);
|
|
2551
2535
|
// Always use the first color for the series/category
|
|
2552
2536
|
const color = (0, _PlotlyColorAdapter.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);
|
|
2553
2537
|
seriesColors[category] = color;
|
|
2554
|
-
|
|
2555
|
-
const
|
|
2556
|
-
var _series_values, _ref1;
|
|
2557
|
-
const values = (_ref1 = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref1 !== void 0 ? _ref1 : series.value;
|
|
2538
|
+
const labels = (_ref1 = (_series_labels = series.labels) !== null && _series_labels !== void 0 ? _series_labels : series.y) !== null && _ref1 !== void 0 ? _ref1 : series.stage;
|
|
2539
|
+
const values = (_ref2 = (_series_values = series.values) !== null && _series_values !== void 0 ? _series_values : series.x) !== null && _ref2 !== void 0 ? _ref2 : series.value;
|
|
2558
2540
|
if (!(0, _chartutilities.isArrayOrTypedArray)(labels) || !(0, _chartutilities.isArrayOrTypedArray)(values)) {
|
|
2559
2541
|
return;
|
|
2560
2542
|
}
|
|
@@ -2589,13 +2571,13 @@ const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorMap, col
|
|
|
2589
2571
|
} else {
|
|
2590
2572
|
// Non-stacked data handling (multiple series with single-value arrays)
|
|
2591
2573
|
input.data.forEach((series, seriesIdx)=>{
|
|
2574
|
+
var _ref;
|
|
2592
2575
|
var _input_layout_template_layout, _input_layout_template, _input_layout, _series_marker, _series_marker1;
|
|
2593
2576
|
const { categories, values } = getCategoriesAndValues(series);
|
|
2594
2577
|
if (!(0, _chartutilities.isArrayOrTypedArray)(categories) || !(0, _chartutilities.isArrayOrTypedArray)(values)) {
|
|
2595
2578
|
return;
|
|
2596
2579
|
}
|
|
2597
|
-
|
|
2598
|
-
const extractedColors = (0, _PlotlyColorAdapter.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);
|
|
2580
|
+
const extractedColors = (0, _PlotlyColorAdapter.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);
|
|
2599
2581
|
categories.forEach((label, i)=>{
|
|
2600
2582
|
var _input_layout_template_layout, _input_layout_template, _input_layout;
|
|
2601
2583
|
const color = (0, _PlotlyColorAdapter.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);
|
|
@@ -2625,6 +2607,7 @@ const transformPlotlyJsonToFunnelChartProps = (input, isMultiPlot, colorMap, col
|
|
|
2625
2607
|
};
|
|
2626
2608
|
};
|
|
2627
2609
|
const transformPlotlyJsonToPolarChartProps = (input, isMultiPlot, colorMap, colorwayType, isDarkTheme)=>{
|
|
2610
|
+
var _ref;
|
|
2628
2611
|
var _input_layout, _input_layout1;
|
|
2629
2612
|
const polarData = [];
|
|
2630
2613
|
const { legends, hideLegend } = getLegendProps(input.data, input.layout, isMultiPlot);
|
|
@@ -2687,11 +2670,10 @@ const transformPlotlyJsonToPolarChartProps = (input, isMultiPlot, colorMap, colo
|
|
|
2687
2670
|
}
|
|
2688
2671
|
}
|
|
2689
2672
|
});
|
|
2690
|
-
var _input_layout_height;
|
|
2691
2673
|
return {
|
|
2692
2674
|
data: polarData,
|
|
2693
2675
|
width: (_input_layout = input.layout) === null || _input_layout === void 0 ? void 0 : _input_layout.width,
|
|
2694
|
-
height: (
|
|
2676
|
+
height: (_ref = (_input_layout1 = input.layout) === null || _input_layout1 === void 0 ? void 0 : _input_layout1.height) !== null && _ref !== void 0 ? _ref : 400,
|
|
2695
2677
|
hideLegend,
|
|
2696
2678
|
...getPolarAxisProps(input.data, input.layout)
|
|
2697
2679
|
};
|
|
@@ -2868,17 +2850,17 @@ const getAllupLegendsProps = (input, colorMap, colorwayType, traceInfo, isDarkTh
|
|
|
2868
2850
|
if (toShowLegend) {
|
|
2869
2851
|
input.data.forEach((series, index)=>{
|
|
2870
2852
|
if (traceInfo[index].type === 'donut') {
|
|
2853
|
+
var _ref, _ref1;
|
|
2871
2854
|
var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1, _input_layout2, _pieSeries_marker;
|
|
2872
2855
|
const pieSeries = series;
|
|
2873
|
-
|
|
2874
|
-
const colors = (0, _PlotlyColorAdapter.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);
|
|
2856
|
+
const colors = (0, _PlotlyColorAdapter.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);
|
|
2875
2857
|
if ((0, _chartutilities.isArrayOrTypedArray)(pieSeries.labels)) {
|
|
2876
2858
|
pieSeries.labels.forEach((label, labelIndex)=>{
|
|
2859
|
+
var _ref;
|
|
2877
2860
|
var _input_layout, _input_layout_template_layout, _input_layout_template, _input_layout1;
|
|
2878
2861
|
const legend = `${label}`;
|
|
2879
|
-
var _input_layout_piecolorway;
|
|
2880
2862
|
// resolve color for each legend from the extracted colors
|
|
2881
|
-
const color = (0, _PlotlyColorAdapter.resolveColor)(colors, labelIndex, legend, colorMap, (
|
|
2863
|
+
const color = (0, _PlotlyColorAdapter.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);
|
|
2882
2864
|
if (legend !== '' && allupLegends.some((group)=>group.title === legend) === false) {
|
|
2883
2865
|
allupLegends.push({
|
|
2884
2866
|
title: legend,
|
|
@@ -2996,10 +2978,10 @@ const getGridProperties = (schema, isMultiPlot, validTracesInfo)=>{
|
|
|
2996
2978
|
if (layout !== undefined && layout !== null && Object.keys(layout).length > 0) {
|
|
2997
2979
|
Object.keys(layout !== null && layout !== void 0 ? layout : {}).forEach((key)=>{
|
|
2998
2980
|
if (key.startsWith('xaxis')) {
|
|
2981
|
+
var _ref;
|
|
2999
2982
|
var _layout_key;
|
|
3000
2983
|
const index = getIndexFromKey(key, 'xaxis');
|
|
3001
|
-
|
|
3002
|
-
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';
|
|
2984
|
+
const anchor = (_ref = (_layout_key = layout[key]) === null || _layout_key === void 0 ? void 0 : _layout_key.anchor) !== null && _ref !== void 0 ? _ref : 'y';
|
|
3003
2985
|
const anchorIndex = getIndexFromKey(anchor, 'y');
|
|
3004
2986
|
if (index !== anchorIndex) {
|
|
3005
2987
|
throw new Error(`Invalid layout: xaxis ${index + 1} anchor should be y${anchorIndex + 1}`);
|
|
@@ -3012,10 +2994,10 @@ const getGridProperties = (schema, isMultiPlot, validTracesInfo)=>{
|
|
|
3012
2994
|
};
|
|
3013
2995
|
domainX.push(domainXInfo);
|
|
3014
2996
|
} else if (key.startsWith('yaxis')) {
|
|
2997
|
+
var _ref1;
|
|
3015
2998
|
var _layout_key1;
|
|
3016
2999
|
const index = getIndexFromKey(key, 'yaxis');
|
|
3017
|
-
|
|
3018
|
-
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';
|
|
3000
|
+
const anchor = (_ref1 = (_layout_key1 = layout[key]) === null || _layout_key1 === void 0 ? void 0 : _layout_key1.anchor) !== null && _ref1 !== void 0 ? _ref1 : 'x';
|
|
3019
3001
|
const anchorIndex = getIndexFromKey(anchor, 'x');
|
|
3020
3002
|
if (index !== anchorIndex) {
|
|
3021
3003
|
var _layout_yaxis2;
|
|
@@ -3386,10 +3368,10 @@ const getAxisObjects = (data, layout)=>{
|
|
|
3386
3368
|
return axisObjects;
|
|
3387
3369
|
};
|
|
3388
3370
|
const getAxisType = (data, ax)=>{
|
|
3371
|
+
var _ax_type;
|
|
3389
3372
|
if (!ax) {
|
|
3390
3373
|
return 'category';
|
|
3391
3374
|
}
|
|
3392
|
-
var _ax_type;
|
|
3393
3375
|
if ([
|
|
3394
3376
|
'linear',
|
|
3395
3377
|
'log',
|