@fluentui/react-charts 9.3.21 → 9.74.3-experimental.esm.20260709-49ee7a20cf.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -2
- package/package.json +15 -17
- package/dist/index.d.ts +0 -5724
- package/lib/AnnotationOnlyChart.js +0 -1
- package/lib/AnnotationOnlyChart.js.map +0 -1
- package/lib/AreaChart.js +0 -1
- package/lib/AreaChart.js.map +0 -1
- package/lib/CartesianChart.js +0 -1
- package/lib/CartesianChart.js.map +0 -1
- package/lib/ChartTable.js +0 -1
- package/lib/ChartTable.js.map +0 -1
- package/lib/DeclarativeChart.js +0 -1
- package/lib/DeclarativeChart.js.map +0 -1
- package/lib/DonutChart.js +0 -1
- package/lib/DonutChart.js.map +0 -1
- package/lib/FunnelChart.js +0 -1
- package/lib/FunnelChart.js.map +0 -1
- package/lib/GanttChart.js +0 -1
- package/lib/GanttChart.js.map +0 -1
- package/lib/GaugeChart.js +0 -1
- package/lib/GaugeChart.js.map +0 -1
- package/lib/GroupedVerticalBarChart.js +0 -1
- package/lib/GroupedVerticalBarChart.js.map +0 -1
- package/lib/HeatMapChart.js +0 -1
- package/lib/HeatMapChart.js.map +0 -1
- package/lib/HorizontalBarChart.js +0 -1
- package/lib/HorizontalBarChart.js.map +0 -1
- package/lib/HorizontalBarChartWithAxis.js +0 -1
- package/lib/HorizontalBarChartWithAxis.js.map +0 -1
- package/lib/Legends.js +0 -1
- package/lib/Legends.js.map +0 -1
- package/lib/LineChart.js +0 -1
- package/lib/LineChart.js.map +0 -1
- package/lib/PolarChart.js +0 -1
- package/lib/PolarChart.js.map +0 -1
- package/lib/Popover.js +0 -1
- package/lib/Popover.js.map +0 -1
- package/lib/ResponsiveContainer.js +0 -1
- package/lib/ResponsiveContainer.js.map +0 -1
- package/lib/SankeyChart.js +0 -1
- package/lib/SankeyChart.js.map +0 -1
- package/lib/ScatterChart.js +0 -1
- package/lib/ScatterChart.js.map +0 -1
- package/lib/Sparkline.js +0 -1
- package/lib/Sparkline.js.map +0 -1
- package/lib/VegaDeclarativeChart.js +0 -1
- package/lib/VegaDeclarativeChart.js.map +0 -1
- package/lib/VerticalBarChart.js +0 -1
- package/lib/VerticalBarChart.js.map +0 -1
- package/lib/VerticalStackedBarChart.js +0 -1
- package/lib/VerticalStackedBarChart.js.map +0 -1
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js +0 -196
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +0 -1
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +0 -3
- package/lib/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +0 -1
- package/lib/components/AnnotationOnlyChart/index.js +0 -2
- package/lib/components/AnnotationOnlyChart/index.js.map +0 -1
- package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +0 -33
- package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +0 -1
- package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +0 -24
- package/lib/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +0 -1
- package/lib/components/AreaChart/AreaChart.js +0 -932
- package/lib/components/AreaChart/AreaChart.js.map +0 -1
- package/lib/components/AreaChart/AreaChart.types.js +0 -4
- package/lib/components/AreaChart/AreaChart.types.js.map +0 -1
- package/lib/components/AreaChart/index.js +0 -3
- package/lib/components/AreaChart/index.js.map +0 -1
- package/lib/components/AreaChart/useAreaChartStyles.styles.js +0 -63
- package/lib/components/AreaChart/useAreaChartStyles.styles.js.map +0 -1
- package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js +0 -33
- package/lib/components/AreaChart/useAreaChartStyles.styles.raw.js.map +0 -1
- package/lib/components/ChartTable/ChartTable.js +0 -160
- package/lib/components/ChartTable/ChartTable.js.map +0 -1
- package/lib/components/ChartTable/ChartTable.types.js +0 -4
- package/lib/components/ChartTable/ChartTable.types.js.map +0 -1
- package/lib/components/ChartTable/index.js +0 -3
- package/lib/components/ChartTable/index.js.map +0 -1
- package/lib/components/ChartTable/useChartTableStyles.styles.js +0 -136
- package/lib/components/ChartTable/useChartTableStyles.styles.js.map +0 -1
- package/lib/components/ChartTable/useChartTableStyles.styles.raw.js +0 -68
- package/lib/components/ChartTable/useChartTableStyles.styles.raw.js.map +0 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js +0 -659
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +0 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js +0 -1
- package/lib/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +0 -1
- package/lib/components/CommonComponents/Annotations/index.js +0 -2
- package/lib/components/CommonComponents/Annotations/index.js.map +0 -1
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +0 -223
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +0 -1
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +0 -139
- package/lib/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +0 -1
- package/lib/components/CommonComponents/CartesianChart.js +0 -665
- package/lib/components/CommonComponents/CartesianChart.js.map +0 -1
- package/lib/components/CommonComponents/CartesianChart.types.js +0 -2
- package/lib/components/CommonComponents/CartesianChart.types.js.map +0 -1
- package/lib/components/CommonComponents/ChartPopover.js +0 -197
- package/lib/components/CommonComponents/ChartPopover.js.map +0 -1
- package/lib/components/CommonComponents/ChartPopover.types.js +0 -1
- package/lib/components/CommonComponents/ChartPopover.types.js.map +0 -1
- package/lib/components/CommonComponents/index.js +0 -6
- package/lib/components/CommonComponents/index.js.map +0 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +0 -189
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +0 -1
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js +0 -131
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +0 -1
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +0 -171
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +0 -1
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js +0 -127
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +0 -1
- package/lib/components/DeclarativeChart/DeclarativeChart.js +0 -397
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +0 -1
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js +0 -163
- package/lib/components/DeclarativeChart/PlotlyColorAdapter.js.map +0 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +0 -3490
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +0 -1
- package/lib/components/DeclarativeChart/index.js +0 -1
- package/lib/components/DeclarativeChart/index.js.map +0 -1
- package/lib/components/DonutChart/Arc/Arc.js +0 -118
- package/lib/components/DonutChart/Arc/Arc.js.map +0 -1
- package/lib/components/DonutChart/Arc/Arc.types.js +0 -1
- package/lib/components/DonutChart/Arc/Arc.types.js.map +0 -1
- package/lib/components/DonutChart/Arc/index.js +0 -2
- package/lib/components/DonutChart/Arc/index.js.map +0 -1
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js +0 -80
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +0 -1
- package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js +0 -49
- package/lib/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +0 -1
- package/lib/components/DonutChart/DonutChart.js +0 -349
- package/lib/components/DonutChart/DonutChart.js.map +0 -1
- package/lib/components/DonutChart/DonutChart.types.js +0 -4
- package/lib/components/DonutChart/DonutChart.types.js.map +0 -1
- package/lib/components/DonutChart/Pie/Pie.js +0 -72
- package/lib/components/DonutChart/Pie/Pie.js.map +0 -1
- package/lib/components/DonutChart/Pie/Pie.types.js +0 -1
- package/lib/components/DonutChart/Pie/Pie.types.js.map +0 -1
- package/lib/components/DonutChart/Pie/index.js +0 -2
- package/lib/components/DonutChart/Pie/index.js.map +0 -1
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js +0 -41
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +0 -1
- package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js +0 -30
- package/lib/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +0 -1
- package/lib/components/DonutChart/index.js +0 -3
- package/lib/components/DonutChart/index.js.map +0 -1
- package/lib/components/DonutChart/useDonutChartStyles.styles.js +0 -98
- package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +0 -1
- package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js +0 -62
- package/lib/components/DonutChart/useDonutChartStyles.styles.raw.js.map +0 -1
- package/lib/components/FunnelChart/FunnelChart.js +0 -401
- package/lib/components/FunnelChart/FunnelChart.js.map +0 -1
- package/lib/components/FunnelChart/FunnelChart.types.js +0 -4
- package/lib/components/FunnelChart/FunnelChart.types.js.map +0 -1
- package/lib/components/FunnelChart/funnelGeometry.js +0 -219
- package/lib/components/FunnelChart/funnelGeometry.js.map +0 -1
- package/lib/components/FunnelChart/index.js +0 -2
- package/lib/components/FunnelChart/index.js.map +0 -1
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.js +0 -83
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.js.map +0 -1
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js +0 -65
- package/lib/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +0 -1
- package/lib/components/GanttChart/GanttChart.js +0 -535
- package/lib/components/GanttChart/GanttChart.js.map +0 -1
- package/lib/components/GanttChart/GanttChart.types.js +0 -4
- package/lib/components/GanttChart/GanttChart.types.js.map +0 -1
- package/lib/components/GanttChart/index.js +0 -2
- package/lib/components/GanttChart/index.js.map +0 -1
- package/lib/components/GanttChart/useGanttChartStyles.styles.js +0 -27
- package/lib/components/GanttChart/useGanttChartStyles.styles.js.map +0 -1
- package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js +0 -26
- package/lib/components/GanttChart/useGanttChartStyles.styles.raw.js.map +0 -1
- package/lib/components/GaugeChart/GaugeChart.js +0 -568
- package/lib/components/GaugeChart/GaugeChart.js.map +0 -1
- package/lib/components/GaugeChart/GaugeChart.types.js +0 -4
- package/lib/components/GaugeChart/GaugeChart.types.js.map +0 -1
- package/lib/components/GaugeChart/index.js +0 -3
- package/lib/components/GaugeChart/index.js.map +0 -1
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js +0 -197
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.js.map +0 -1
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js +0 -149
- package/lib/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -813
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -4
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/index.js +0 -3
- package/lib/components/GroupedVerticalBarChart/index.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +0 -77
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +0 -40
- package/lib/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +0 -1
- package/lib/components/HeatMapChart/HeatMapChart.js +0 -677
- package/lib/components/HeatMapChart/HeatMapChart.js.map +0 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.js +0 -4
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
- package/lib/components/HeatMapChart/index.js +0 -3
- package/lib/components/HeatMapChart/index.js.map +0 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js +0 -48
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +0 -1
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +0 -42
- package/lib/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +0 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js +0 -411
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -7
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
- package/lib/components/HorizontalBarChart/index.js +0 -3
- package/lib/components/HorizontalBarChart/index.js.map +0 -1
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +0 -175
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +0 -1
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +0 -125
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +0 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +0 -720
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +0 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +0 -4
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +0 -1
- package/lib/components/HorizontalBarChartWithAxis/index.js +0 -3
- package/lib/components/HorizontalBarChartWithAxis/index.js.map +0 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +0 -62
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +0 -1
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +0 -54
- package/lib/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +0 -1
- package/lib/components/Legends/Legends.js +0 -323
- package/lib/components/Legends/Legends.js.map +0 -1
- package/lib/components/Legends/Legends.types.js +0 -3
- package/lib/components/Legends/Legends.types.js.map +0 -1
- package/lib/components/Legends/OverflowMenu.js +0 -33
- package/lib/components/Legends/OverflowMenu.js.map +0 -1
- package/lib/components/Legends/index.js +0 -3
- package/lib/components/Legends/index.js.map +0 -1
- package/lib/components/Legends/shape.js +0 -36
- package/lib/components/Legends/shape.js.map +0 -1
- package/lib/components/Legends/useLegendsStyles.styles.js +0 -262
- package/lib/components/Legends/useLegendsStyles.styles.js.map +0 -1
- package/lib/components/Legends/useLegendsStyles.styles.raw.js +0 -142
- package/lib/components/Legends/useLegendsStyles.styles.raw.js.map +0 -1
- package/lib/components/LineChart/LineChart.js +0 -1332
- package/lib/components/LineChart/LineChart.js.map +0 -1
- package/lib/components/LineChart/LineChart.types.js +0 -3
- package/lib/components/LineChart/LineChart.types.js.map +0 -1
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +0 -118
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
- package/lib/components/LineChart/eventAnnotation/LabelLink.js +0 -59
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
- package/lib/components/LineChart/eventAnnotation/Textbox.js +0 -42
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
- package/lib/components/LineChart/index.js +0 -4
- package/lib/components/LineChart/index.js.map +0 -1
- package/lib/components/LineChart/useLineChartStyles.styles.js +0 -93
- package/lib/components/LineChart/useLineChartStyles.styles.js.map +0 -1
- package/lib/components/LineChart/useLineChartStyles.styles.raw.js +0 -50
- package/lib/components/LineChart/useLineChartStyles.styles.raw.js.map +0 -1
- package/lib/components/PolarChart/PolarChart.js +0 -577
- package/lib/components/PolarChart/PolarChart.js.map +0 -1
- package/lib/components/PolarChart/PolarChart.types.js +0 -4
- package/lib/components/PolarChart/PolarChart.types.js.map +0 -1
- package/lib/components/PolarChart/PolarChart.utils.js +0 -174
- package/lib/components/PolarChart/PolarChart.utils.js.map +0 -1
- package/lib/components/PolarChart/index.js +0 -2
- package/lib/components/PolarChart/index.js.map +0 -1
- package/lib/components/PolarChart/usePolarChartStyles.styles.js +0 -72
- package/lib/components/PolarChart/usePolarChartStyles.styles.js.map +0 -1
- package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js +0 -61
- package/lib/components/PolarChart/usePolarChartStyles.styles.raw.js.map +0 -1
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js +0 -99
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +0 -1
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +0 -4
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +0 -1
- package/lib/components/ResponsiveContainer/index.js +0 -3
- package/lib/components/ResponsiveContainer/index.js.map +0 -1
- package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +0 -30
- package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +0 -1
- package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +0 -29
- package/lib/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +0 -1
- package/lib/components/ResponsiveContainer/withResponsiveContainer.js +0 -20
- package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +0 -1
- package/lib/components/SankeyChart/SankeyChart.js +0 -1026
- package/lib/components/SankeyChart/SankeyChart.js.map +0 -1
- package/lib/components/SankeyChart/SankeyChart.types.js +0 -3
- package/lib/components/SankeyChart/SankeyChart.types.js.map +0 -1
- package/lib/components/SankeyChart/index.js +0 -3
- package/lib/components/SankeyChart/index.js.map +0 -1
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.js +0 -123
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.js.map +0 -1
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js +0 -79
- package/lib/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +0 -1
- package/lib/components/ScatterChart/ScatterChart.js +0 -544
- package/lib/components/ScatterChart/ScatterChart.js.map +0 -1
- package/lib/components/ScatterChart/ScatterChart.types.js +0 -4
- package/lib/components/ScatterChart/ScatterChart.types.js.map +0 -1
- package/lib/components/ScatterChart/index.js +0 -3
- package/lib/components/ScatterChart/index.js.map +0 -1
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js +0 -84
- package/lib/components/ScatterChart/useScatterChartStyles.styles.js.map +0 -1
- package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js +0 -41
- package/lib/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +0 -1
- package/lib/components/Sparkline/Sparkline.js +0 -123
- package/lib/components/Sparkline/Sparkline.js.map +0 -1
- package/lib/components/Sparkline/Sparkline.types.js +0 -4
- package/lib/components/Sparkline/Sparkline.types.js.map +0 -1
- package/lib/components/Sparkline/index.js +0 -3
- package/lib/components/Sparkline/index.js.map +0 -1
- package/lib/components/Sparkline/useSparklineStyles.styles.js +0 -40
- package/lib/components/Sparkline/useSparklineStyles.styles.js.map +0 -1
- package/lib/components/Sparkline/useSparklineStyles.styles.raw.js +0 -31
- package/lib/components/Sparkline/useSparklineStyles.styles.raw.js.map +0 -1
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js +0 -405
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +0 -1
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +0 -20
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +0 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +0 -415
- package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +0 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +0 -537
- package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +0 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +0 -3279
- package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +0 -1
- package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js +0 -28
- package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js.map +0 -1
- package/lib/components/VegaDeclarativeChart/index.js +0 -1
- package/lib/components/VegaDeclarativeChart/index.js.map +0 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js +0 -930
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js +0 -4
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
- package/lib/components/VerticalBarChart/index.js +0 -3
- package/lib/components/VerticalBarChart/index.js.map +0 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +0 -86
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +0 -1
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +0 -48
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -1077
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -4
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/index.js +0 -3
- package/lib/components/VerticalStackedBarChart/index.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +0 -74
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +0 -38
- package/lib/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +0 -1
- package/lib/index.js +0 -26
- package/lib/index.js.map +0 -1
- package/lib/types/ChartAnnotation.js +0 -1
- package/lib/types/ChartAnnotation.js.map +0 -1
- package/lib/types/DataPoint.js +0 -3
- package/lib/types/DataPoint.js.map +0 -1
- package/lib/types/EventAnnotation.js +0 -1
- package/lib/types/EventAnnotation.js.map +0 -1
- package/lib/types/LegendDataItem.js +0 -1
- package/lib/types/LegendDataItem.js.map +0 -1
- package/lib/types/index.js +0 -3
- package/lib/types/index.js.map +0 -1
- package/lib/utilities/ChartTitle.js +0 -45
- package/lib/utilities/ChartTitle.js.map +0 -1
- package/lib/utilities/Common.styles.js +0 -117
- package/lib/utilities/Common.styles.js.map +0 -1
- package/lib/utilities/Common.styles.raw.js +0 -115
- package/lib/utilities/Common.styles.raw.js.map +0 -1
- package/lib/utilities/FocusableTooltipText.js +0 -65
- package/lib/utilities/FocusableTooltipText.js.map +0 -1
- package/lib/utilities/KeyCodes.js +0 -11
- package/lib/utilities/KeyCodes.js.map +0 -1
- package/lib/utilities/SVGTooltipText.js +0 -179
- package/lib/utilities/SVGTooltipText.js.map +0 -1
- package/lib/utilities/async-utils.js +0 -380
- package/lib/utilities/async-utils.js.map +0 -1
- package/lib/utilities/colors.js +0 -281
- package/lib/utilities/colors.js.map +0 -1
- package/lib/utilities/getWindow.js +0 -25
- package/lib/utilities/getWindow.js.map +0 -1
- package/lib/utilities/hooks.js +0 -34
- package/lib/utilities/hooks.js.map +0 -1
- package/lib/utilities/image-export-utils.js +0 -405
- package/lib/utilities/image-export-utils.js.map +0 -1
- package/lib/utilities/index.js +0 -5
- package/lib/utilities/index.js.map +0 -1
- package/lib/utilities/overflow-utils.js +0 -27
- package/lib/utilities/overflow-utils.js.map +0 -1
- package/lib/utilities/scatterpolar-utils.js +0 -52
- package/lib/utilities/scatterpolar-utils.js.map +0 -1
- package/lib/utilities/string.js +0 -32
- package/lib/utilities/string.js.map +0 -1
- package/lib/utilities/test-data.js +0 -565
- package/lib/utilities/test-data.js.map +0 -1
- package/lib/utilities/utilities.js +0 -1990
- package/lib/utilities/utilities.js.map +0 -1
- package/lib/utilities/vbc-utils.js +0 -51
- package/lib/utilities/vbc-utils.js.map +0 -1
- package/lib-commonjs/AnnotationOnlyChart.js +0 -6
- package/lib-commonjs/AnnotationOnlyChart.js.map +0 -1
- package/lib-commonjs/AreaChart.js +0 -6
- package/lib-commonjs/AreaChart.js.map +0 -1
- package/lib-commonjs/CartesianChart.js +0 -6
- package/lib-commonjs/CartesianChart.js.map +0 -1
- package/lib-commonjs/ChartTable.js +0 -6
- package/lib-commonjs/ChartTable.js.map +0 -1
- package/lib-commonjs/DeclarativeChart.js +0 -6
- package/lib-commonjs/DeclarativeChart.js.map +0 -1
- package/lib-commonjs/DonutChart.js +0 -6
- package/lib-commonjs/DonutChart.js.map +0 -1
- package/lib-commonjs/FunnelChart.js +0 -6
- package/lib-commonjs/FunnelChart.js.map +0 -1
- package/lib-commonjs/GanttChart.js +0 -6
- package/lib-commonjs/GanttChart.js.map +0 -1
- package/lib-commonjs/GaugeChart.js +0 -6
- package/lib-commonjs/GaugeChart.js.map +0 -1
- package/lib-commonjs/GroupedVerticalBarChart.js +0 -6
- package/lib-commonjs/GroupedVerticalBarChart.js.map +0 -1
- package/lib-commonjs/HeatMapChart.js +0 -6
- package/lib-commonjs/HeatMapChart.js.map +0 -1
- package/lib-commonjs/HorizontalBarChart.js +0 -6
- package/lib-commonjs/HorizontalBarChart.js.map +0 -1
- package/lib-commonjs/HorizontalBarChartWithAxis.js +0 -6
- package/lib-commonjs/HorizontalBarChartWithAxis.js.map +0 -1
- package/lib-commonjs/Legends.js +0 -6
- package/lib-commonjs/Legends.js.map +0 -1
- package/lib-commonjs/LineChart.js +0 -6
- package/lib-commonjs/LineChart.js.map +0 -1
- package/lib-commonjs/PolarChart.js +0 -6
- package/lib-commonjs/PolarChart.js.map +0 -1
- package/lib-commonjs/Popover.js +0 -6
- package/lib-commonjs/Popover.js.map +0 -1
- package/lib-commonjs/ResponsiveContainer.js +0 -6
- package/lib-commonjs/ResponsiveContainer.js.map +0 -1
- package/lib-commonjs/SankeyChart.js +0 -6
- package/lib-commonjs/SankeyChart.js.map +0 -1
- package/lib-commonjs/ScatterChart.js +0 -6
- package/lib-commonjs/ScatterChart.js.map +0 -1
- package/lib-commonjs/Sparkline.js +0 -6
- package/lib-commonjs/Sparkline.js.map +0 -1
- package/lib-commonjs/VegaDeclarativeChart.js +0 -6
- package/lib-commonjs/VegaDeclarativeChart.js.map +0 -1
- package/lib-commonjs/VerticalBarChart.js +0 -6
- package/lib-commonjs/VerticalBarChart.js.map +0 -1
- package/lib-commonjs/VerticalStackedBarChart.js +0 -6
- package/lib-commonjs/VerticalStackedBarChart.js.map +0 -1
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js +0 -207
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.js.map +0 -1
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js +0 -6
- package/lib-commonjs/components/AnnotationOnlyChart/AnnotationOnlyChart.types.js.map +0 -1
- package/lib-commonjs/components/AnnotationOnlyChart/index.js +0 -7
- package/lib-commonjs/components/AnnotationOnlyChart/index.js.map +0 -1
- package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js +0 -57
- package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js +0 -34
- package/lib-commonjs/components/AnnotationOnlyChart/useAnnotationOnlyChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js +0 -938
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +0 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.js +0 -7
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +0 -1
- package/lib-commonjs/components/AreaChart/index.js +0 -8
- package/lib-commonjs/components/AreaChart/index.js.map +0 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js +0 -96
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js +0 -49
- package/lib-commonjs/components/AreaChart/useAreaChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/ChartTable/ChartTable.js +0 -171
- package/lib-commonjs/components/ChartTable/ChartTable.js.map +0 -1
- package/lib-commonjs/components/ChartTable/ChartTable.types.js +0 -7
- package/lib-commonjs/components/ChartTable/ChartTable.types.js.map +0 -1
- package/lib-commonjs/components/ChartTable/index.js +0 -8
- package/lib-commonjs/components/ChartTable/index.js.map +0 -1
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js +0 -200
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js +0 -82
- package/lib-commonjs/components/ChartTable/useChartTableStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js +0 -670
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js +0 -4
- package/lib-commonjs/components/CommonComponents/Annotations/ChartAnnotationLayer.types.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/Annotations/index.js +0 -7
- package/lib-commonjs/components/CommonComponents/Annotations/index.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js +0 -325
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js +0 -174
- package/lib-commonjs/components/CommonComponents/Annotations/useChartAnnotationLayer.styles.raw.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +0 -673
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +0 -5
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.js +0 -207
- package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +0 -4
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/index.js +0 -11
- package/lib-commonjs/components/CommonComponents/index.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +0 -268
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js +0 -144
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +0 -238
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +0 -1
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js +0 -141
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +0 -400
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +0 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js +0 -195
- package/lib-commonjs/components/DeclarativeChart/PlotlyColorAdapter.js.map +0 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +0 -3577
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +0 -1
- package/lib-commonjs/components/DeclarativeChart/index.js +0 -6
- package/lib-commonjs/components/DeclarativeChart/index.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +0 -125
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +0 -4
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Arc/index.js +0 -7
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +0 -110
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js +0 -63
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js +0 -356
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +0 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.js +0 -7
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +0 -79
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +0 -4
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Pie/index.js +0 -7
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +0 -55
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js +0 -44
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/DonutChart/index.js +0 -8
- package/lib-commonjs/components/DonutChart/index.js.map +0 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +0 -145
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js +0 -76
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.js +0 -412
- package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +0 -1
- package/lib-commonjs/components/FunnelChart/FunnelChart.types.js +0 -7
- package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +0 -1
- package/lib-commonjs/components/FunnelChart/funnelGeometry.js +0 -246
- package/lib-commonjs/components/FunnelChart/funnelGeometry.js.map +0 -1
- package/lib-commonjs/components/FunnelChart/index.js +0 -7
- package/lib-commonjs/components/FunnelChart/index.js.map +0 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js +0 -118
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js +0 -79
- package/lib-commonjs/components/FunnelChart/useFunnelChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/GanttChart/GanttChart.js +0 -546
- package/lib-commonjs/components/GanttChart/GanttChart.js.map +0 -1
- package/lib-commonjs/components/GanttChart/GanttChart.types.js +0 -7
- package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +0 -1
- package/lib-commonjs/components/GanttChart/index.js +0 -7
- package/lib-commonjs/components/GanttChart/index.js.map +0 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js +0 -42
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js +0 -42
- package/lib-commonjs/components/GanttChart/useGanttChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.js +0 -597
- package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +0 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +0 -7
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +0 -1
- package/lib-commonjs/components/GaugeChart/index.js +0 -8
- package/lib-commonjs/components/GaugeChart/index.js.map +0 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js +0 -281
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js +0 -167
- package/lib-commonjs/components/GaugeChart/useGaugeChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -818
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -7
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js +0 -8
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +0 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js +0 -116
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js +0 -56
- package/lib-commonjs/components/GroupedVerticalBarChart/useGroupedVerticalBarChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +0 -688
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +0 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js +0 -7
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
- package/lib-commonjs/components/HeatMapChart/index.js +0 -8
- package/lib-commonjs/components/HeatMapChart/index.js.map +0 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js +0 -71
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js +0 -60
- package/lib-commonjs/components/HeatMapChart/useHeatMapChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +0 -417
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -17
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChart/index.js +0 -8
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +0 -264
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js +0 -139
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +0 -726
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +0 -7
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +0 -8
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js +0 -86
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.js.map +0 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js +0 -70
- package/lib-commonjs/components/HorizontalBarChartWithAxis/useHorizontalBarChartWithAxisStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/Legends/Legends.js +0 -333
- package/lib-commonjs/components/Legends/Legends.js.map +0 -1
- package/lib-commonjs/components/Legends/Legends.types.js +0 -6
- package/lib-commonjs/components/Legends/Legends.types.js.map +0 -1
- package/lib-commonjs/components/Legends/OverflowMenu.js +0 -44
- package/lib-commonjs/components/Legends/OverflowMenu.js.map +0 -1
- package/lib-commonjs/components/Legends/index.js +0 -8
- package/lib-commonjs/components/Legends/index.js.map +0 -1
- package/lib-commonjs/components/Legends/shape.js +0 -47
- package/lib-commonjs/components/Legends/shape.js.map +0 -1
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +0 -456
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +0 -1
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js +0 -178
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/LineChart/LineChart.js +0 -1337
- package/lib-commonjs/components/LineChart/LineChart.js.map +0 -1
- package/lib-commonjs/components/LineChart/LineChart.types.js +0 -6
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +0 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +0 -129
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +0 -70
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +0 -53
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
- package/lib-commonjs/components/LineChart/index.js +0 -9
- package/lib-commonjs/components/LineChart/index.js.map +0 -1
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +0 -132
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js +0 -63
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/PolarChart/PolarChart.js +0 -587
- package/lib-commonjs/components/PolarChart/PolarChart.js.map +0 -1
- package/lib-commonjs/components/PolarChart/PolarChart.types.js +0 -7
- package/lib-commonjs/components/PolarChart/PolarChart.types.js.map +0 -1
- package/lib-commonjs/components/PolarChart/PolarChart.utils.js +0 -204
- package/lib-commonjs/components/PolarChart/PolarChart.utils.js.map +0 -1
- package/lib-commonjs/components/PolarChart/index.js +0 -7
- package/lib-commonjs/components/PolarChart/index.js.map +0 -1
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js +0 -107
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.js +0 -75
- package/lib-commonjs/components/PolarChart/usePolarChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +0 -107
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +0 -1
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +0 -7
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +0 -1
- package/lib-commonjs/components/ResponsiveContainer/index.js +0 -8
- package/lib-commonjs/components/ResponsiveContainer/index.js.map +0 -1
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js +0 -50
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js +0 -47
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveChildStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js +0 -28
- package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js.map +0 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +0 -1042
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +0 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js +0 -6
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +0 -1
- package/lib-commonjs/components/SankeyChart/index.js +0 -8
- package/lib-commonjs/components/SankeyChart/index.js.map +0 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js +0 -202
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js +0 -97
- package/lib-commonjs/components/SankeyChart/useSankeyChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.js +0 -550
- package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +0 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js +0 -7
- package/lib-commonjs/components/ScatterChart/ScatterChart.types.js.map +0 -1
- package/lib-commonjs/components/ScatterChart/index.js +0 -8
- package/lib-commonjs/components/ScatterChart/index.js.map +0 -1
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js +0 -120
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js +0 -55
- package/lib-commonjs/components/ScatterChart/useScatterChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js +0 -129
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +0 -1
- package/lib-commonjs/components/Sparkline/Sparkline.types.js +0 -7
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +0 -1
- package/lib-commonjs/components/Sparkline/index.js +0 -8
- package/lib-commonjs/components/Sparkline/index.js.map +0 -1
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +0 -57
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +0 -1
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js +0 -45
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js +0 -274
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +0 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +0 -35
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +0 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +0 -412
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +0 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +0 -533
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +0 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +0 -3214
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +0 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js +0 -31
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js.map +0 -1
- package/lib-commonjs/components/VegaDeclarativeChart/index.js +0 -6
- package/lib-commonjs/components/VegaDeclarativeChart/index.js.map +0 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +0 -932
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +0 -7
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
- package/lib-commonjs/components/VerticalBarChart/index.js +0 -8
- package/lib-commonjs/components/VerticalBarChart/index.js.map +0 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +0 -128
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js +0 -64
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -1088
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -7
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
- package/lib-commonjs/components/VerticalStackedBarChart/index.js +0 -8
- package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +0 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js +0 -116
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.js.map +0 -1
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js +0 -56
- package/lib-commonjs/components/VerticalStackedBarChart/useVerticalStackedBarChartStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/index.js +0 -31
- package/lib-commonjs/index.js.map +0 -1
- package/lib-commonjs/types/ChartAnnotation.js +0 -4
- package/lib-commonjs/types/ChartAnnotation.js.map +0 -1
- package/lib-commonjs/types/DataPoint.js +0 -6
- package/lib-commonjs/types/DataPoint.js.map +0 -1
- package/lib-commonjs/types/EventAnnotation.js +0 -4
- package/lib-commonjs/types/EventAnnotation.js.map +0 -1
- package/lib-commonjs/types/LegendDataItem.js +0 -4
- package/lib-commonjs/types/LegendDataItem.js.map +0 -1
- package/lib-commonjs/types/index.js +0 -8
- package/lib-commonjs/types/index.js.map +0 -1
- package/lib-commonjs/utilities/ChartTitle.js +0 -53
- package/lib-commonjs/utilities/ChartTitle.js.map +0 -1
- package/lib-commonjs/utilities/Common.styles.js +0 -138
- package/lib-commonjs/utilities/Common.styles.js.map +0 -1
- package/lib-commonjs/utilities/Common.styles.raw.js +0 -138
- package/lib-commonjs/utilities/Common.styles.raw.js.map +0 -1
- package/lib-commonjs/utilities/FocusableTooltipText.js +0 -75
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +0 -1
- package/lib-commonjs/utilities/KeyCodes.js +0 -21
- package/lib-commonjs/utilities/KeyCodes.js.map +0 -1
- package/lib-commonjs/utilities/SVGTooltipText.js +0 -189
- package/lib-commonjs/utilities/SVGTooltipText.js.map +0 -1
- package/lib-commonjs/utilities/async-utils.js +0 -382
- package/lib-commonjs/utilities/async-utils.js.map +0 -1
- package/lib-commonjs/utilities/colors.js +0 -311
- package/lib-commonjs/utilities/colors.js.map +0 -1
- package/lib-commonjs/utilities/getWindow.js +0 -28
- package/lib-commonjs/utilities/getWindow.js.map +0 -1
- package/lib-commonjs/utilities/hooks.js +0 -45
- package/lib-commonjs/utilities/hooks.js.map +0 -1
- package/lib-commonjs/utilities/image-export-utils.js +0 -423
- package/lib-commonjs/utilities/image-export-utils.js.map +0 -1
- package/lib-commonjs/utilities/index.js +0 -10
- package/lib-commonjs/utilities/index.js.map +0 -1
- package/lib-commonjs/utilities/overflow-utils.js +0 -36
- package/lib-commonjs/utilities/overflow-utils.js.map +0 -1
- package/lib-commonjs/utilities/scatterpolar-utils.js +0 -67
- package/lib-commonjs/utilities/scatterpolar-utils.js.map +0 -1
- package/lib-commonjs/utilities/string.js +0 -29
- package/lib-commonjs/utilities/string.js.map +0 -1
- package/lib-commonjs/utilities/test-data.js +0 -628
- package/lib-commonjs/utilities/test-data.js.map +0 -1
- package/lib-commonjs/utilities/utilities.js +0 -2016
- package/lib-commonjs/utilities/utilities.js.map +0 -1
- package/lib-commonjs/utilities/vbc-utils.js +0 -72
- package/lib-commonjs/utilities/vbc-utils.js.map +0 -1
|
@@ -1,818 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "GroupedVerticalBarChart", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function() {
|
|
9
|
-
return GroupedVerticalBarChart;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _useGroupedVerticalBarChartStylesstyles = require("./useGroupedVerticalBarChartStyles.styles");
|
|
15
|
-
const _d3selection = require("d3-selection");
|
|
16
|
-
const _d3array = require("d3-array");
|
|
17
|
-
const _d3scale = require("d3-scale");
|
|
18
|
-
const _reactutilities = require("@fluentui/react-utilities");
|
|
19
|
-
const _index = require("../../utilities/index");
|
|
20
|
-
const _index1 = require("../../index");
|
|
21
|
-
const _reacttheme = require("@fluentui/react-theme");
|
|
22
|
-
const _hooks = require("../../utilities/hooks");
|
|
23
|
-
const _chartutilities = require("@fluentui/chart-utilities");
|
|
24
|
-
const MIN_DOMAIN_MARGIN = 8;
|
|
25
|
-
const X1_INNER_PADDING = 0.1;
|
|
26
|
-
const VERTICAL_BAR_GAP = 1;
|
|
27
|
-
const MIN_BAR_HEIGHT = 1;
|
|
28
|
-
const GroupedVerticalBarChart = /*#__PURE__*/ _react.forwardRef((_props, forwardedRef)=>{
|
|
29
|
-
var _props_legendProps, _props_legendProps1, _barData_, _lineData__data_, _lineData_;
|
|
30
|
-
const props = {
|
|
31
|
-
xAxisCategoryOrder: 'default',
|
|
32
|
-
maxBarWidth: 24,
|
|
33
|
-
..._props
|
|
34
|
-
};
|
|
35
|
-
const _emptyChartId = (0, _reactutilities.useId)('_GVBC_empty');
|
|
36
|
-
const _useRtl = (0, _index.useRtl)();
|
|
37
|
-
let _domainMargin = MIN_DOMAIN_MARGIN;
|
|
38
|
-
let _xAxisLabels = [];
|
|
39
|
-
let _datasetForBars = [];
|
|
40
|
-
let _margins = {
|
|
41
|
-
top: 0,
|
|
42
|
-
right: 0,
|
|
43
|
-
bottom: 0,
|
|
44
|
-
left: 0
|
|
45
|
-
};
|
|
46
|
-
let _groupedVerticalBarGraph = [];
|
|
47
|
-
let _yMax = 0;
|
|
48
|
-
let _calloutAnchorPoint = null;
|
|
49
|
-
let _barWidth = 0;
|
|
50
|
-
let _groupWidth = 0;
|
|
51
|
-
let _xAxisInnerPadding = 0;
|
|
52
|
-
let _xAxisOuterPadding = 0;
|
|
53
|
-
let _barLegends = [];
|
|
54
|
-
let _lineLegends = [];
|
|
55
|
-
let _legendColorMap = {};
|
|
56
|
-
const { cartesianChartRef, legendsRef: _legendsRef } = (0, _hooks.useImageExport)(props.componentRef, props.hideLegend);
|
|
57
|
-
const Y_ORIGIN = 0;
|
|
58
|
-
const _rectRef = _react.useRef(null);
|
|
59
|
-
const _uniqDotId = (0, _reactutilities.useId)('gvbc_dot_');
|
|
60
|
-
const [color, setColor] = _react.useState('');
|
|
61
|
-
const [dataForHoverCard, setDataForHoverCard] = _react.useState(0);
|
|
62
|
-
const [selectedLegends, setSelectedLegends] = _react.useState(((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends) || []);
|
|
63
|
-
const [xCalloutValue, setXCalloutValue] = _react.useState('');
|
|
64
|
-
const [yCalloutValue, setYCalloutValue] = _react.useState('');
|
|
65
|
-
const [yValueHover, setYValueHover] = _react.useState([]);
|
|
66
|
-
const [hoverXValue, setHoverXValue] = _react.useState('');
|
|
67
|
-
const [calloutLegend, setCalloutLegend] = _react.useState('');
|
|
68
|
-
const [activeLegend, setActiveLegend] = _react.useState('');
|
|
69
|
-
const [callOutAccessibilityData, setCallOutAccessibilityData] = _react.useState(undefined);
|
|
70
|
-
const [popoverTarget, setPopoverTarget] = _react.useState(null);
|
|
71
|
-
const [isPopoverOpen, setPopoverOpen] = _react.useState(false);
|
|
72
|
-
const [activeLinePoint, setActiveLinePoint] = _react.useState('');
|
|
73
|
-
const classes = (0, _useGroupedVerticalBarChartStylesstyles.useGroupedVerticalBarChartStyles_unstable)(props);
|
|
74
|
-
_react.useEffect(()=>{
|
|
75
|
-
var _props_legendProps;
|
|
76
|
-
if (!(0, _index.areArraysEqual)((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends, selectedLegends)) {
|
|
77
|
-
var _props_legendProps1;
|
|
78
|
-
setSelectedLegends(((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.selectedLegends) || []);
|
|
79
|
-
}
|
|
80
|
-
}, [
|
|
81
|
-
(_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.selectedLegends
|
|
82
|
-
]);
|
|
83
|
-
const _adjustProps = ()=>{
|
|
84
|
-
_barWidth = (0, _index.getBarWidth)(props.barWidth, props.maxBarWidth);
|
|
85
|
-
// x0_inner_padding = space_between_groups / (space_between_groups + group_width)
|
|
86
|
-
// space_between_groups = 2 * bar_width
|
|
87
|
-
// group_width = _barLegends.length * bar_width + (_barLegends.length - 1) * space_between_bars
|
|
88
|
-
_xAxisInnerPadding = (0, _index.getScalePadding)(props.xAxisInnerPadding, undefined, 2 / (2 + (0, _index.calcTotalBandUnits)(_barLegends.length, X1_INNER_PADDING)));
|
|
89
|
-
_xAxisOuterPadding = (0, _index.getScalePadding)(props.xAxisOuterPadding);
|
|
90
|
-
};
|
|
91
|
-
const _createDataset = (barData, lineData)=>{
|
|
92
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
93
|
-
const datasetForBars = [];
|
|
94
|
-
const linePointsByX = {};
|
|
95
|
-
const visitedX = new Set();
|
|
96
|
-
lineData.forEach((series)=>{
|
|
97
|
-
series.data.forEach((point)=>{
|
|
98
|
-
if (!linePointsByX[point.x]) {
|
|
99
|
-
linePointsByX[point.x] = [];
|
|
100
|
-
}
|
|
101
|
-
linePointsByX[point.x].push({
|
|
102
|
-
...point,
|
|
103
|
-
legend: series.legend,
|
|
104
|
-
color: series.color,
|
|
105
|
-
data: point.y,
|
|
106
|
-
useSecondaryYScale: series.useSecondaryYScale
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
barData.forEach((point, index)=>{
|
|
111
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112
|
-
const singleDatasetPointForBars = {};
|
|
113
|
-
const legendToBarPoint = {};
|
|
114
|
-
point.series.forEach((seriesPoint)=>{
|
|
115
|
-
if (!singleDatasetPointForBars[seriesPoint.legend]) {
|
|
116
|
-
singleDatasetPointForBars[seriesPoint.legend] = [
|
|
117
|
-
{
|
|
118
|
-
...seriesPoint
|
|
119
|
-
}
|
|
120
|
-
];
|
|
121
|
-
legendToBarPoint[seriesPoint.legend] = {
|
|
122
|
-
...seriesPoint
|
|
123
|
-
};
|
|
124
|
-
} else {
|
|
125
|
-
singleDatasetPointForBars[seriesPoint.legend].push({
|
|
126
|
-
...seriesPoint
|
|
127
|
-
});
|
|
128
|
-
legendToBarPoint[seriesPoint.legend].data += seriesPoint.data;
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
singleDatasetPointForBars.xAxisPoint = point.name;
|
|
132
|
-
singleDatasetPointForBars.indexNum = index;
|
|
133
|
-
var _linePointsByX_point_name;
|
|
134
|
-
singleDatasetPointForBars.groupSeries = [
|
|
135
|
-
...Object.values(legendToBarPoint),
|
|
136
|
-
...(_linePointsByX_point_name = linePointsByX[point.name]) !== null && _linePointsByX_point_name !== void 0 ? _linePointsByX_point_name : []
|
|
137
|
-
];
|
|
138
|
-
singleDatasetPointForBars.stackCallOutAccessibilityData = point.stackCallOutAccessibilityData;
|
|
139
|
-
datasetForBars.push(singleDatasetPointForBars);
|
|
140
|
-
visitedX.add(point.name);
|
|
141
|
-
});
|
|
142
|
-
Object.keys(linePointsByX).forEach((xPoint)=>{
|
|
143
|
-
if (!visitedX.has(xPoint)) {
|
|
144
|
-
datasetForBars.push({
|
|
145
|
-
xAxisPoint: xPoint,
|
|
146
|
-
groupSeries: linePointsByX[xPoint]
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
return datasetForBars;
|
|
151
|
-
};
|
|
152
|
-
const _createDataSetOfGVBC = (barData, lineData)=>{
|
|
153
|
-
const barLegends = new Set();
|
|
154
|
-
barData.forEach((point)=>{
|
|
155
|
-
point.series.forEach((seriesPoint)=>{
|
|
156
|
-
barLegends.add(seriesPoint.legend);
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
const lineLegends = new Set(lineData.map((series)=>series.legend));
|
|
160
|
-
const xAxisLabels = _getOrderedXAxisLabels(barData, lineData);
|
|
161
|
-
const datasetForBars = _createDataset(barData, lineData);
|
|
162
|
-
return {
|
|
163
|
-
barLegends: Array.from(barLegends),
|
|
164
|
-
lineLegends: Array.from(lineLegends),
|
|
165
|
-
xAxisLabels,
|
|
166
|
-
datasetForBars
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
const onLegendSelectionChange = (selectedLegends, event, currentLegend)=>{
|
|
170
|
-
var _props_legendProps, _props_legendProps1;
|
|
171
|
-
if ((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.canSelectMultipleLegends) {
|
|
172
|
-
setSelectedLegends(selectedLegends);
|
|
173
|
-
} else {
|
|
174
|
-
setSelectedLegends(selectedLegends.slice(-1));
|
|
175
|
-
}
|
|
176
|
-
if ((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.onChange) {
|
|
177
|
-
props.legendProps.onChange(selectedLegends, event, currentLegend);
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
const _getLegendData = ()=>{
|
|
181
|
-
const actions = [];
|
|
182
|
-
const addLegendButton = (legendTitle, isLineLegendInBarChart)=>{
|
|
183
|
-
const legend = {
|
|
184
|
-
title: legendTitle,
|
|
185
|
-
color: _legendColorMap[legendTitle][0],
|
|
186
|
-
isLineLegendInBarChart,
|
|
187
|
-
hoverAction: ()=>{
|
|
188
|
-
_handleChartMouseLeave();
|
|
189
|
-
_onLegendHover(legendTitle);
|
|
190
|
-
},
|
|
191
|
-
onMouseOutAction: ()=>{
|
|
192
|
-
_onLegendLeave();
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
actions.push(legend);
|
|
196
|
-
};
|
|
197
|
-
_lineLegends.forEach((legendTitle)=>addLegendButton(legendTitle, true));
|
|
198
|
-
_barLegends.forEach((legendTitle)=>addLegendButton(legendTitle));
|
|
199
|
-
return /*#__PURE__*/ _react.createElement(_index1.Legends, {
|
|
200
|
-
legends: actions,
|
|
201
|
-
enabledWrapLines: props.enabledLegendsWrapLines,
|
|
202
|
-
overflowText: props.legendsOverflowText,
|
|
203
|
-
...props.legendProps,
|
|
204
|
-
onChange: onLegendSelectionChange,
|
|
205
|
-
legendRef: _legendsRef
|
|
206
|
-
});
|
|
207
|
-
};
|
|
208
|
-
const _processDataV2 = (dataV2)=>{
|
|
209
|
-
const barPointsByX = {};
|
|
210
|
-
const lineData = [];
|
|
211
|
-
dataV2.forEach((series)=>{
|
|
212
|
-
if (series.type === 'bar') {
|
|
213
|
-
series.data.forEach((point)=>{
|
|
214
|
-
if (!barPointsByX[point.x]) {
|
|
215
|
-
barPointsByX[point.x] = {
|
|
216
|
-
name: point.x,
|
|
217
|
-
series: []
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
var _series_key, _point_color;
|
|
221
|
-
barPointsByX[point.x].series.push({
|
|
222
|
-
key: (_series_key = series.key) !== null && _series_key !== void 0 ? _series_key : series.legend,
|
|
223
|
-
data: point.y,
|
|
224
|
-
color: (_point_color = point.color) !== null && _point_color !== void 0 ? _point_color : series.color,
|
|
225
|
-
// gradient: series.gradient,
|
|
226
|
-
legend: series.legend,
|
|
227
|
-
xAxisCalloutData: point.xAxisCalloutData,
|
|
228
|
-
yAxisCalloutData: point.yAxisCalloutData,
|
|
229
|
-
onClick: point.onClick,
|
|
230
|
-
useSecondaryYScale: series.useSecondaryYScale
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
} else if (series.type === 'line') {
|
|
234
|
-
lineData.push(series);
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
return {
|
|
238
|
-
barData: Object.values(barPointsByX),
|
|
239
|
-
lineData
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
const _prepareChartData = ()=>{
|
|
243
|
-
let barData = props.data;
|
|
244
|
-
let lineData;
|
|
245
|
-
if (Array.isArray(props.dataV2) && props.dataV2.length > 0) {
|
|
246
|
-
({ barData, lineData } = _processDataV2(props.dataV2));
|
|
247
|
-
}
|
|
248
|
-
_legendColorMap = {};
|
|
249
|
-
let colorIndex = 0;
|
|
250
|
-
var _barData_map, _lineData_map;
|
|
251
|
-
return {
|
|
252
|
-
barData: (_barData_map = barData === null || barData === void 0 ? void 0 : barData.map((point)=>{
|
|
253
|
-
var _point_series;
|
|
254
|
-
var _point_series_map;
|
|
255
|
-
return {
|
|
256
|
-
...point,
|
|
257
|
-
series: (_point_series_map = (_point_series = point.series) === null || _point_series === void 0 ? void 0 : _point_series.map((seriesPoint)=>{
|
|
258
|
-
// TODO: Add support for gradient colors
|
|
259
|
-
const startColor = seriesPoint.color ? seriesPoint.color : (0, _index.getNextColor)(colorIndex, 0);
|
|
260
|
-
const endColor = startColor;
|
|
261
|
-
if (!_legendColorMap[seriesPoint.legend]) {
|
|
262
|
-
_legendColorMap[seriesPoint.legend] = [
|
|
263
|
-
startColor,
|
|
264
|
-
endColor
|
|
265
|
-
];
|
|
266
|
-
}
|
|
267
|
-
colorIndex += 1;
|
|
268
|
-
var _seriesPoint_color;
|
|
269
|
-
return {
|
|
270
|
-
...seriesPoint,
|
|
271
|
-
color: (_seriesPoint_color = seriesPoint.color) !== null && _seriesPoint_color !== void 0 ? _seriesPoint_color : _legendColorMap[seriesPoint.legend][0]
|
|
272
|
-
};
|
|
273
|
-
})) !== null && _point_series_map !== void 0 ? _point_series_map : []
|
|
274
|
-
};
|
|
275
|
-
})) !== null && _barData_map !== void 0 ? _barData_map : [],
|
|
276
|
-
lineData: (_lineData_map = lineData === null || lineData === void 0 ? void 0 : lineData.map((series)=>{
|
|
277
|
-
let lineColor;
|
|
278
|
-
if (typeof series.color === 'undefined') {
|
|
279
|
-
lineColor = (0, _index.getNextColor)(colorIndex, 0);
|
|
280
|
-
} else {
|
|
281
|
-
lineColor = (0, _index1.getColorFromToken)(series.color);
|
|
282
|
-
}
|
|
283
|
-
if (!_legendColorMap[series.legend]) {
|
|
284
|
-
_legendColorMap[series.legend] = [
|
|
285
|
-
lineColor,
|
|
286
|
-
lineColor
|
|
287
|
-
];
|
|
288
|
-
}
|
|
289
|
-
colorIndex += 1;
|
|
290
|
-
return {
|
|
291
|
-
...series,
|
|
292
|
-
color: _legendColorMap[series.legend][0]
|
|
293
|
-
};
|
|
294
|
-
})) !== null && _lineData_map !== void 0 ? _lineData_map : []
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
const _getOrderedXAxisLabels = (barData, lineData)=>{
|
|
298
|
-
if (_xAxisType !== _index.XAxisTypes.StringAxis) {
|
|
299
|
-
return [];
|
|
300
|
-
}
|
|
301
|
-
return (0, _index.sortAxisCategories)(_mapCategoryToValues(barData, lineData), props.xAxisCategoryOrder);
|
|
302
|
-
};
|
|
303
|
-
const _mapCategoryToValues = (barData, lineData)=>{
|
|
304
|
-
const categoryToValues = {};
|
|
305
|
-
barData.forEach((point)=>{
|
|
306
|
-
if (!categoryToValues[point.name]) {
|
|
307
|
-
categoryToValues[point.name] = [];
|
|
308
|
-
}
|
|
309
|
-
point.series.forEach((seriesPoint)=>{
|
|
310
|
-
categoryToValues[point.name].push(seriesPoint.data);
|
|
311
|
-
});
|
|
312
|
-
});
|
|
313
|
-
lineData.forEach((series)=>{
|
|
314
|
-
series.data.forEach((point)=>{
|
|
315
|
-
if (!categoryToValues[point.x]) {
|
|
316
|
-
categoryToValues[point.x] = [];
|
|
317
|
-
}
|
|
318
|
-
categoryToValues[point.x].push(point.y);
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
return categoryToValues;
|
|
322
|
-
};
|
|
323
|
-
const { barData, lineData } = _prepareChartData();
|
|
324
|
-
var _barData__name;
|
|
325
|
-
const firstXValue = (_barData__name = (_barData_ = barData[0]) === null || _barData_ === void 0 ? void 0 : _barData_.name) !== null && _barData__name !== void 0 ? _barData__name : (_lineData_ = lineData[0]) === null || _lineData_ === void 0 ? void 0 : (_lineData__data_ = _lineData_.data[0]) === null || _lineData__data_ === void 0 ? void 0 : _lineData__data_.x;
|
|
326
|
-
const _xAxisType = (0, _chartutilities.isInvalidValue)(firstXValue) ? _index.XAxisTypes.StringAxis : (0, _index.getTypeOfAxis)(firstXValue, true);
|
|
327
|
-
const { barLegends, lineLegends, xAxisLabels, datasetForBars } = _createDataSetOfGVBC(barData, lineData);
|
|
328
|
-
_barLegends = barLegends;
|
|
329
|
-
_lineLegends = lineLegends;
|
|
330
|
-
_xAxisLabels = xAxisLabels;
|
|
331
|
-
_datasetForBars = datasetForBars;
|
|
332
|
-
const legendBars = _getLegendData();
|
|
333
|
-
_adjustProps();
|
|
334
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Add commentMore actions
|
|
335
|
-
function _getMinMaxOfYAxis(datasetForBars, yAxisType, useSecondaryYScale) {
|
|
336
|
-
const values = [];
|
|
337
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
338
|
-
datasetForBars.forEach((data)=>{
|
|
339
|
-
data.groupSeries.forEach((point)=>{
|
|
340
|
-
if (!useSecondaryYScale === !point.useSecondaryYScale) {
|
|
341
|
-
values.push(point.data);
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
return {
|
|
346
|
-
startValue: (0, _d3array.min)(values),
|
|
347
|
-
endValue: (0, _d3array.max)(values)
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
function _getDomainNRangeValues(points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues) {
|
|
351
|
-
let domainNRangeValue;
|
|
352
|
-
if (xAxisType === _index.XAxisTypes.NumericAxis || xAxisType === _index.XAxisTypes.DateAxis) {
|
|
353
|
-
domainNRangeValue = {
|
|
354
|
-
dStartValue: 0,
|
|
355
|
-
dEndValue: 0,
|
|
356
|
-
rStartValue: 0,
|
|
357
|
-
rEndValue: 0
|
|
358
|
-
};
|
|
359
|
-
} else {
|
|
360
|
-
domainNRangeValue = (0, _index.domainRangeOfXStringAxis)(margins, width, isRTL);
|
|
361
|
-
}
|
|
362
|
-
return domainNRangeValue;
|
|
363
|
-
}
|
|
364
|
-
// The maxOfYVal prop is only required for the primary y-axis, so yMax should be calculated
|
|
365
|
-
// using only the data points associated with the primary y-axis.
|
|
366
|
-
const yMax = _getMinMaxOfYAxis(_datasetForBars).endValue;
|
|
367
|
-
_yMax = Math.max(yMax, props.yMaxValue || 0);
|
|
368
|
-
const calloutProps = {
|
|
369
|
-
positioning: {
|
|
370
|
-
target: popoverTarget
|
|
371
|
-
},
|
|
372
|
-
isPopoverOpen,
|
|
373
|
-
color,
|
|
374
|
-
legend: calloutLegend,
|
|
375
|
-
XValue: xCalloutValue,
|
|
376
|
-
YValue: yCalloutValue ? yCalloutValue : dataForHoverCard,
|
|
377
|
-
YValueHover: yValueHover,
|
|
378
|
-
hoverXValue,
|
|
379
|
-
culture: props.culture,
|
|
380
|
-
isCartesian: true,
|
|
381
|
-
isCalloutForStack: props.isCalloutForStack,
|
|
382
|
-
...props.calloutProps,
|
|
383
|
-
...(0, _index.getAccessibleDataObject)(callOutAccessibilityData, 'text', false)
|
|
384
|
-
};
|
|
385
|
-
const tickParams = {
|
|
386
|
-
tickValues: props.tickValues,
|
|
387
|
-
tickFormat: props.tickFormat
|
|
388
|
-
};
|
|
389
|
-
const _getGraphData = (xScale, yScalePrimary, containerHeight, containerWidth, xElement, yAxisElement, yScaleSecondary)=>{
|
|
390
|
-
const xScale0 = _createX0Scale(containerWidth);
|
|
391
|
-
// Setting the bar width here is safe because there are no dependencies earlier in the code
|
|
392
|
-
// that rely on the width of bars in vertical bar charts with string x-axis.
|
|
393
|
-
_barWidth = (0, _index.getBarWidth)(props.barWidth, props.maxBarWidth, (0, _index.calcBandwidth)(xScale0.bandwidth(), _barLegends.length, X1_INNER_PADDING));
|
|
394
|
-
_groupWidth = (0, _index.calcRequiredWidth)(_barWidth, _barLegends.length, X1_INNER_PADDING);
|
|
395
|
-
const xScale1 = _createX1Scale();
|
|
396
|
-
const allGroupsBars = [];
|
|
397
|
-
_datasetForBars.forEach((singleSet)=>{
|
|
398
|
-
allGroupsBars.push(_buildGraph(singleSet, xScale0, xScale1, yScalePrimary, yScaleSecondary, containerHeight, xElement));
|
|
399
|
-
});
|
|
400
|
-
_groupedVerticalBarGraph = allGroupsBars;
|
|
401
|
-
};
|
|
402
|
-
const _getMargins = (margins)=>{
|
|
403
|
-
_margins = margins;
|
|
404
|
-
};
|
|
405
|
-
const onBarHover = (pointData, groupData, mouseEvent)=>{
|
|
406
|
-
mouseEvent.persist();
|
|
407
|
-
if (_calloutAnchorPoint !== pointData) {
|
|
408
|
-
_calloutAnchorPoint = pointData;
|
|
409
|
-
_showCallout(mouseEvent.currentTarget, pointData, groupData);
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
const _onBarLeave = ()=>{
|
|
413
|
-
/**/ };
|
|
414
|
-
const _handleChartMouseLeave = ()=>{
|
|
415
|
-
_calloutAnchorPoint = null;
|
|
416
|
-
setPopoverOpen(false);
|
|
417
|
-
};
|
|
418
|
-
const onBarFocus = (focusEvent, pointData, groupData)=>{
|
|
419
|
-
_showCallout(focusEvent.currentTarget, pointData, groupData);
|
|
420
|
-
};
|
|
421
|
-
const _buildGraph = (singleSet, xScale0, xScale1, yScalePrimary, yScaleSecondary, containerHeight, xElement)=>{
|
|
422
|
-
const singleGroup = [];
|
|
423
|
-
const barLabelsForGroup = [];
|
|
424
|
-
// Get the actual legends present at this x-axis point
|
|
425
|
-
const presentLegends = _barLegends.filter((key)=>key in singleSet);
|
|
426
|
-
const effectiveGroupWidth = (0, _index.calcRequiredWidth)(_barWidth, presentLegends.length, X1_INNER_PADDING);
|
|
427
|
-
// For stacked bars, center the single bar group in the available space
|
|
428
|
-
// Instead of using the global legend position, use the local position within present legends
|
|
429
|
-
const localScale = (0, _d3scale.scaleBand)().domain(presentLegends).range(_useRtl ? [
|
|
430
|
-
effectiveGroupWidth,
|
|
431
|
-
0
|
|
432
|
-
] : [
|
|
433
|
-
0,
|
|
434
|
-
effectiveGroupWidth
|
|
435
|
-
]).paddingInner(X1_INNER_PADDING);
|
|
436
|
-
_barLegends.forEach((legendTitle, legendIndex)=>{
|
|
437
|
-
const barPoints = singleSet[legendTitle];
|
|
438
|
-
if (barPoints) {
|
|
439
|
-
const yBarScale = barPoints[0].useSecondaryYScale && yScaleSecondary ? yScaleSecondary : yScalePrimary;
|
|
440
|
-
var _localScale;
|
|
441
|
-
const xPoint = ((_localScale = localScale(legendTitle)) !== null && _localScale !== void 0 ? _localScale : 0) + (localScale.bandwidth() - _barWidth) / 2;
|
|
442
|
-
const isLegendActive = _legendHighlighted(legendTitle) || _noLegendHighlighted();
|
|
443
|
-
const barOpacity = isLegendActive ? '' : '0.1';
|
|
444
|
-
let barTotalValue = 0;
|
|
445
|
-
const yBaseline = yBarScale(Y_ORIGIN);
|
|
446
|
-
let yPositiveStart = yBaseline;
|
|
447
|
-
let yNegativeStart = yBaseline;
|
|
448
|
-
let yPoint = Y_ORIGIN;
|
|
449
|
-
barPoints.forEach((pointData, pointIndex)=>{
|
|
450
|
-
if (!pointData.data) {
|
|
451
|
-
// Not rendering data with 0.
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
const barGap = VERTICAL_BAR_GAP / 2 * (pointIndex > 0 ? 2 : 0);
|
|
455
|
-
const height = Math.max(yBarScale(Y_ORIGIN) - yBarScale(Math.abs(pointData.data)), MIN_BAR_HEIGHT);
|
|
456
|
-
const pointColor = pointData.color; // Use the color of the current point
|
|
457
|
-
if (pointData.data >= Y_ORIGIN) {
|
|
458
|
-
yPositiveStart -= height + barGap;
|
|
459
|
-
yPoint = yPositiveStart;
|
|
460
|
-
} else {
|
|
461
|
-
yPoint = yNegativeStart + barGap;
|
|
462
|
-
yNegativeStart = yPoint + height;
|
|
463
|
-
}
|
|
464
|
-
singleGroup.push(/*#__PURE__*/ _react.createElement("rect", {
|
|
465
|
-
key: `${singleSet.indexNum}-${legendIndex}-${pointIndex}`,
|
|
466
|
-
className: classes.opacityChangeOnHover,
|
|
467
|
-
height: height,
|
|
468
|
-
width: _barWidth,
|
|
469
|
-
x: xPoint,
|
|
470
|
-
y: yPoint,
|
|
471
|
-
opacity: barOpacity,
|
|
472
|
-
fill: pointColor,
|
|
473
|
-
rx: props.roundCorners ? 3 : 0,
|
|
474
|
-
onMouseOver: (event)=>onBarHover(pointData, singleSet, event),
|
|
475
|
-
onMouseMove: (event)=>onBarHover(pointData, singleSet, event),
|
|
476
|
-
onMouseOut: _onBarLeave,
|
|
477
|
-
onFocus: (event)=>onBarFocus(event, pointData, singleSet),
|
|
478
|
-
onBlur: _onBarLeave,
|
|
479
|
-
onClick: pointData.onClick,
|
|
480
|
-
"aria-label": getAriaLabel(pointData, singleSet.xAxisPoint),
|
|
481
|
-
tabIndex: _legendHighlighted(pointData.legend) || _noLegendHighlighted() ? 0 : undefined,
|
|
482
|
-
role: "img"
|
|
483
|
-
}));
|
|
484
|
-
// Render individual bar label if provided
|
|
485
|
-
if (pointData.barLabel && isLegendActive) {
|
|
486
|
-
barLabelsForGroup.push(/*#__PURE__*/ _react.createElement("text", {
|
|
487
|
-
key: `${singleSet.indexNum}-${legendIndex}-${pointIndex}-label`,
|
|
488
|
-
x: xPoint + _barWidth / 2,
|
|
489
|
-
y: pointData.data >= Y_ORIGIN ? yPoint - 6 : yPoint + height + 12,
|
|
490
|
-
textAnchor: "middle",
|
|
491
|
-
className: classes.barLabel,
|
|
492
|
-
"aria-hidden": true,
|
|
493
|
-
style: {
|
|
494
|
-
direction: 'ltr',
|
|
495
|
-
unicodeBidi: 'isolate'
|
|
496
|
-
}
|
|
497
|
-
}, pointData.barLabel));
|
|
498
|
-
}
|
|
499
|
-
barTotalValue += pointData.data;
|
|
500
|
-
});
|
|
501
|
-
if (barTotalValue !== null && !props.hideLabels && Math.ceil(_barWidth) >= 16 && isLegendActive) {
|
|
502
|
-
barLabelsForGroup.push(/*#__PURE__*/ _react.createElement("text", {
|
|
503
|
-
key: `${singleSet.indexNum}-${legendIndex}`,
|
|
504
|
-
x: xPoint + _barWidth / 2,
|
|
505
|
-
y: barTotalValue >= Y_ORIGIN ? yPositiveStart - 6 : yNegativeStart + 12,
|
|
506
|
-
textAnchor: "middle",
|
|
507
|
-
className: classes.barLabel,
|
|
508
|
-
"aria-hidden": true,
|
|
509
|
-
style: {
|
|
510
|
-
direction: 'ltr',
|
|
511
|
-
unicodeBidi: 'isolate'
|
|
512
|
-
}
|
|
513
|
-
}, typeof props.yAxisTickFormat === 'function' ? props.yAxisTickFormat(barTotalValue) : (0, _index.formatScientificLimitWidth)(barTotalValue)));
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
return /*#__PURE__*/ _react.createElement("g", {
|
|
518
|
-
key: singleSet.indexNum,
|
|
519
|
-
transform: `translate(${xScale0(singleSet.xAxisPoint) + (xScale0.bandwidth() - effectiveGroupWidth) / 2}, 0)`
|
|
520
|
-
}, singleGroup, barLabelsForGroup);
|
|
521
|
-
};
|
|
522
|
-
// For grouped vertical bar chart, First need to define total scale (from start to end)
|
|
523
|
-
// From that need to define scale for single group of bars - done by createX1Scale
|
|
524
|
-
const _createX0Scale = (containerWidth)=>{
|
|
525
|
-
const x0Axis = (0, _d3scale.scaleBand)().domain(xAxisLabels).range(_useRtl ? [
|
|
526
|
-
containerWidth - _margins.right - _domainMargin,
|
|
527
|
-
_margins.left + _domainMargin
|
|
528
|
-
] : [
|
|
529
|
-
_margins.left + _domainMargin,
|
|
530
|
-
containerWidth - _margins.right - _domainMargin
|
|
531
|
-
]).paddingInner(_xAxisInnerPadding).paddingOuter(_xAxisOuterPadding);
|
|
532
|
-
return x0Axis;
|
|
533
|
-
};
|
|
534
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
535
|
-
const _createX1Scale = ()=>{
|
|
536
|
-
return (0, _d3scale.scaleBand)().domain(_barLegends) // When there is only one group, xScale0 adds padding around it,
|
|
537
|
-
// causing the bandwidth to become smaller than the actual group width.
|
|
538
|
-
// So to render bars in the group correctly, use groupWidth instead of the generated scale bandwidth.
|
|
539
|
-
.range(_useRtl ? [
|
|
540
|
-
_groupWidth,
|
|
541
|
-
0
|
|
542
|
-
] : [
|
|
543
|
-
0,
|
|
544
|
-
_groupWidth
|
|
545
|
-
]).paddingInner(X1_INNER_PADDING);
|
|
546
|
-
};
|
|
547
|
-
const _onLegendHover = (legendTitle)=>{
|
|
548
|
-
setActiveLegend(legendTitle);
|
|
549
|
-
};
|
|
550
|
-
const _onLegendLeave = ()=>{
|
|
551
|
-
setActiveLegend('');
|
|
552
|
-
};
|
|
553
|
-
const _getAxisData = _react.useCallback((yAxisData)=>{
|
|
554
|
-
if (yAxisData && yAxisData.yAxisDomainValues.length) {
|
|
555
|
-
const { yAxisDomainValues: domainValue } = yAxisData;
|
|
556
|
-
_yMax = Math.max(domainValue[domainValue.length - 1], props.yMaxValue || 0);
|
|
557
|
-
}
|
|
558
|
-
}, [
|
|
559
|
-
props.yMaxValue
|
|
560
|
-
]);
|
|
561
|
-
/**
|
|
562
|
-
* This function checks if the given legend is highlighted or not.
|
|
563
|
-
* A legend can be highlighted in 2 ways:
|
|
564
|
-
* 1. selection: if the user clicks on it
|
|
565
|
-
* 2. hovering: if there is no selected legend and the user hovers over it
|
|
566
|
-
*/ const _legendHighlighted = (legendTitle)=>{
|
|
567
|
-
return _getHighlightedLegend().includes(legendTitle);
|
|
568
|
-
};
|
|
569
|
-
/**
|
|
570
|
-
* This function checks if none of the legends is selected or hovered.
|
|
571
|
-
*/ const _noLegendHighlighted = ()=>{
|
|
572
|
-
return _getHighlightedLegend().length === 0;
|
|
573
|
-
};
|
|
574
|
-
const _getHighlightedLegend = ()=>{
|
|
575
|
-
return selectedLegends.length > 0 ? selectedLegends : activeLegend ? [
|
|
576
|
-
activeLegend
|
|
577
|
-
] : [];
|
|
578
|
-
};
|
|
579
|
-
const getAriaLabel = (point, xAxisPoint)=>{
|
|
580
|
-
var _point_callOutAccessibilityData;
|
|
581
|
-
const xValue = point.xAxisCalloutData || xAxisPoint;
|
|
582
|
-
const legend = point.legend;
|
|
583
|
-
const yValue = point.yAxisCalloutData || point.data;
|
|
584
|
-
return ((_point_callOutAccessibilityData = point.callOutAccessibilityData) === null || _point_callOutAccessibilityData === void 0 ? void 0 : _point_callOutAccessibilityData.ariaLabel) || `${xValue}. ${legend}, ${yValue}.`;
|
|
585
|
-
};
|
|
586
|
-
const _getDomainMargins = (containerWidth)=>{
|
|
587
|
-
/** Total width available to render the bars */ const totalWidth = (0, _index.calcTotalWidth)(containerWidth, _margins, MIN_DOMAIN_MARGIN);
|
|
588
|
-
if (_xAxisType === _index.XAxisTypes.StringAxis) {
|
|
589
|
-
if ((0, _index.isScalePaddingDefined)(props.xAxisOuterPadding)) {
|
|
590
|
-
// Setting the domain margin for string x-axis to 0 because the xAxisOuterPadding prop is now available
|
|
591
|
-
// to adjust the space before the first group and after the last group.
|
|
592
|
-
_domainMargin = 0;
|
|
593
|
-
} else if (props.barWidth !== 'auto') {
|
|
594
|
-
// Update the bar width so that when CartesianChart rerenders,
|
|
595
|
-
// the following calculations don't use the previous bar width.
|
|
596
|
-
_barWidth = (0, _index.getBarWidth)(props.barWidth, props.maxBarWidth);
|
|
597
|
-
const groupWidth = (0, _index.calcRequiredWidth)(_barWidth, _barLegends.length, X1_INNER_PADDING);
|
|
598
|
-
/** Total width required to render the groups. Directly proportional to group width */ const reqWidth = (0, _index.calcRequiredWidth)(groupWidth, _xAxisLabels.length, _xAxisInnerPadding);
|
|
599
|
-
if (totalWidth >= reqWidth) {
|
|
600
|
-
// Center align the chart by setting equal left and right margins for domain
|
|
601
|
-
_domainMargin = MIN_DOMAIN_MARGIN + (totalWidth - reqWidth) / 2;
|
|
602
|
-
}
|
|
603
|
-
} else if (props.mode === 'plotly' && xAxisLabels.length > 1) {
|
|
604
|
-
// Calculate the remaining width after rendering groups at their maximum allowable width
|
|
605
|
-
const groupBandwidth = (0, _index.calcBandwidth)(totalWidth, _xAxisLabels.length, _xAxisInnerPadding);
|
|
606
|
-
const barBandwidth = (0, _index.calcBandwidth)(groupBandwidth, _barLegends.length, X1_INNER_PADDING);
|
|
607
|
-
const barWidth = (0, _index.getBarWidth)(props.barWidth, props.maxBarWidth, barBandwidth);
|
|
608
|
-
const groupWidth = (0, _index.calcRequiredWidth)(barWidth, _barLegends.length, X1_INNER_PADDING);
|
|
609
|
-
let reqWidth = (0, _index.calcRequiredWidth)(groupWidth, _xAxisLabels.length, _xAxisInnerPadding);
|
|
610
|
-
const margin1 = (totalWidth - reqWidth) / 2;
|
|
611
|
-
let margin2 = Number.POSITIVE_INFINITY;
|
|
612
|
-
if (!props.hideTickOverlap) {
|
|
613
|
-
// Calculate the remaining width after accounting for the space required to render x-axis labels
|
|
614
|
-
const step = (0, _index.calculateLongestLabelWidth)(_xAxisLabels) + 20;
|
|
615
|
-
reqWidth = (_xAxisLabels.length - _xAxisInnerPadding) * step;
|
|
616
|
-
margin2 = (totalWidth - reqWidth) / 2;
|
|
617
|
-
}
|
|
618
|
-
_domainMargin = MIN_DOMAIN_MARGIN + Math.max(0, Math.min(margin1, margin2));
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
return {
|
|
622
|
-
..._margins,
|
|
623
|
-
left: _margins.left + _domainMargin,
|
|
624
|
-
right: _margins.right + _domainMargin
|
|
625
|
-
};
|
|
626
|
-
};
|
|
627
|
-
const _isChartEmpty = (_barData, _lineData)=>{
|
|
628
|
-
return !(_barData && _barData.length > 0 && _barData.filter((item)=>item.series.length).length > 0 || _lineData && _lineData.length > 0 && _lineData.some((series)=>series.data.length > 0));
|
|
629
|
-
};
|
|
630
|
-
const _getChartTitle = ()=>{
|
|
631
|
-
return (props.chartTitle ? `${props.chartTitle}. ` : '') + `Vertical bar chart with ${_barLegends.length} grouped bar series` + (_lineLegends.length > 0 ? ` and ${_lineLegends.length} line series. ` : '. ');
|
|
632
|
-
};
|
|
633
|
-
const _createLines = (_lineData, xScale, yScalePrimary, yScaleSecondary)=>{
|
|
634
|
-
const lineBorders = [];
|
|
635
|
-
const lines = [];
|
|
636
|
-
const dots = [];
|
|
637
|
-
const scaleLineX = (x)=>xScale(x) + xScale.bandwidth() / 2;
|
|
638
|
-
_lineData.forEach((series, seriesIdx)=>{
|
|
639
|
-
var _series_lineOptions;
|
|
640
|
-
const lineBorderGroup = [];
|
|
641
|
-
const lineGroup = [];
|
|
642
|
-
const dotGroup = [];
|
|
643
|
-
const lineBorderWidth = ((_series_lineOptions = series.lineOptions) === null || _series_lineOptions === void 0 ? void 0 : _series_lineOptions.lineBorderWidth) ? Number.parseFloat(series.lineOptions.lineBorderWidth.toString()) : 0;
|
|
644
|
-
const yScale = series.useSecondaryYScale && yScaleSecondary ? yScaleSecondary : yScalePrimary;
|
|
645
|
-
const shouldHighlight = _legendHighlighted(series.legend) || _noLegendHighlighted();
|
|
646
|
-
series.data.forEach((point, pointIdx)=>{
|
|
647
|
-
const x2 = scaleLineX(point.x);
|
|
648
|
-
const y2 = yScale(point.y);
|
|
649
|
-
if (pointIdx > 0) {
|
|
650
|
-
var _series_lineOptions, _series_lineOptions1, _series_lineOptions2;
|
|
651
|
-
const x1 = scaleLineX(series.data[pointIdx - 1].x);
|
|
652
|
-
const y1 = yScale(series.data[pointIdx - 1].y);
|
|
653
|
-
if (lineBorderWidth > 0) {
|
|
654
|
-
var _series_lineOptions3;
|
|
655
|
-
var _series_lineOptions_lineBorderColor;
|
|
656
|
-
lineBorderGroup.push(/*#__PURE__*/ _react.createElement("line", {
|
|
657
|
-
key: `lineBorder-${seriesIdx}-${pointIdx}`,
|
|
658
|
-
x1: x1,
|
|
659
|
-
y1: y1,
|
|
660
|
-
x2: x2,
|
|
661
|
-
y2: y2,
|
|
662
|
-
fill: "transparent",
|
|
663
|
-
stroke: (_series_lineOptions_lineBorderColor = (_series_lineOptions3 = series.lineOptions) === null || _series_lineOptions3 === void 0 ? void 0 : _series_lineOptions3.lineBorderColor) !== null && _series_lineOptions_lineBorderColor !== void 0 ? _series_lineOptions_lineBorderColor : _reacttheme.tokens.colorNeutralBackground1,
|
|
664
|
-
strokeWidth: 3 + lineBorderWidth * 2,
|
|
665
|
-
strokeLinecap: "round",
|
|
666
|
-
opacity: shouldHighlight ? 1 : 0.1
|
|
667
|
-
}));
|
|
668
|
-
}
|
|
669
|
-
var _series_lineOptions_strokeWidth, _series_lineOptions_strokeLinecap;
|
|
670
|
-
lineGroup.push(/*#__PURE__*/ _react.createElement("line", {
|
|
671
|
-
key: `line-${seriesIdx}-${pointIdx}`,
|
|
672
|
-
x1: x1,
|
|
673
|
-
y1: y1,
|
|
674
|
-
x2: x2,
|
|
675
|
-
y2: y2,
|
|
676
|
-
stroke: series.color,
|
|
677
|
-
strokeWidth: (_series_lineOptions_strokeWidth = (_series_lineOptions = series.lineOptions) === null || _series_lineOptions === void 0 ? void 0 : _series_lineOptions.strokeWidth) !== null && _series_lineOptions_strokeWidth !== void 0 ? _series_lineOptions_strokeWidth : 3,
|
|
678
|
-
strokeLinecap: (_series_lineOptions_strokeLinecap = (_series_lineOptions1 = series.lineOptions) === null || _series_lineOptions1 === void 0 ? void 0 : _series_lineOptions1.strokeLinecap) !== null && _series_lineOptions_strokeLinecap !== void 0 ? _series_lineOptions_strokeLinecap : 'round',
|
|
679
|
-
strokeDasharray: (_series_lineOptions2 = series.lineOptions) === null || _series_lineOptions2 === void 0 ? void 0 : _series_lineOptions2.strokeDasharray,
|
|
680
|
-
opacity: shouldHighlight ? 1 : 0.1,
|
|
681
|
-
onMouseOver: (e)=>_onLineHover(e, series, seriesIdx, pointIdx, scaleLineX),
|
|
682
|
-
onMouseLeave: _onBarLeave
|
|
683
|
-
}));
|
|
684
|
-
}
|
|
685
|
-
const dotId = _getDotId(seriesIdx, pointIdx);
|
|
686
|
-
const isLinePointActive = activeLinePoint === point.x || activeLinePoint === dotId;
|
|
687
|
-
dotGroup.push(/*#__PURE__*/ _react.createElement("circle", {
|
|
688
|
-
key: dotId,
|
|
689
|
-
id: dotId,
|
|
690
|
-
cx: x2,
|
|
691
|
-
cy: y2,
|
|
692
|
-
r: shouldHighlight && isLinePointActive ? 8 : 0.3,
|
|
693
|
-
fill: _reacttheme.tokens.colorNeutralBackground1,
|
|
694
|
-
stroke: series.color,
|
|
695
|
-
strokeWidth: 3,
|
|
696
|
-
opacity: shouldHighlight ? 1 : 0.1,
|
|
697
|
-
onMouseOver: (e)=>_onLineHover(e, series, seriesIdx, pointIdx, scaleLineX),
|
|
698
|
-
onMouseLeave: _onBarLeave,
|
|
699
|
-
tabIndex: shouldHighlight ? 0 : undefined,
|
|
700
|
-
onFocus: (e)=>_onLineFocus(e, series, seriesIdx, pointIdx),
|
|
701
|
-
onBlur: _onBarLeave,
|
|
702
|
-
role: "img",
|
|
703
|
-
"aria-label": getAriaLabel({
|
|
704
|
-
xAxisCalloutData: point.xAxisCalloutData,
|
|
705
|
-
legend: series.legend,
|
|
706
|
-
yAxisCalloutData: point.yAxisCalloutData,
|
|
707
|
-
data: point.y,
|
|
708
|
-
callOutAccessibilityData: point.callOutAccessibilityData
|
|
709
|
-
}, point.x)
|
|
710
|
-
}));
|
|
711
|
-
});
|
|
712
|
-
lineBorders.push(/*#__PURE__*/ _react.createElement("g", {
|
|
713
|
-
key: `lineBorderGroup-${seriesIdx}`
|
|
714
|
-
}, lineBorderGroup));
|
|
715
|
-
lines.push(/*#__PURE__*/ _react.createElement("g", {
|
|
716
|
-
key: `lineGroup-${seriesIdx}`
|
|
717
|
-
}, lineGroup));
|
|
718
|
-
dots.push(/*#__PURE__*/ _react.createElement("g", {
|
|
719
|
-
key: `dotGroup-${seriesIdx}`
|
|
720
|
-
}, dotGroup));
|
|
721
|
-
});
|
|
722
|
-
return dots.length > 0 ? /*#__PURE__*/ _react.createElement("g", null, lineBorders.length > 0 ? /*#__PURE__*/ _react.createElement("g", null, lineBorders) : null, lines.length > 0 ? /*#__PURE__*/ _react.createElement("g", null, lines) : null, /*#__PURE__*/ _react.createElement("g", null, dots)) : null;
|
|
723
|
-
};
|
|
724
|
-
const _onLineHover = (event, series, seriesIdx, pointIdx, scaleLineX)=>{
|
|
725
|
-
const pointerX = (0, _d3selection.pointer)(event, _rectRef.current)[0];
|
|
726
|
-
let closestPointIdx = pointIdx;
|
|
727
|
-
if (pointIdx > 0) {
|
|
728
|
-
const currPointPos = scaleLineX(series.data[pointIdx].x);
|
|
729
|
-
const prevPointPos = scaleLineX(series.data[pointIdx - 1].x);
|
|
730
|
-
if (Math.abs(prevPointPos - pointerX) < Math.abs(currPointPos - pointerX)) {
|
|
731
|
-
closestPointIdx = pointIdx - 1;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
event.persist();
|
|
735
|
-
_showCalloutForLines(event.currentTarget, series, seriesIdx, closestPointIdx);
|
|
736
|
-
};
|
|
737
|
-
const _onLineFocus = (event, series, seriesIdx, pointIdx)=>{
|
|
738
|
-
_showCalloutForLines(event.currentTarget, series, seriesIdx, pointIdx);
|
|
739
|
-
};
|
|
740
|
-
const _showCalloutForLines = (target, series, seriesIdx, pointIdx)=>{
|
|
741
|
-
const point = series.data[pointIdx];
|
|
742
|
-
const pointData = {
|
|
743
|
-
...point,
|
|
744
|
-
legend: series.legend,
|
|
745
|
-
color: series.color,
|
|
746
|
-
key: series.legend,
|
|
747
|
-
data: point.y,
|
|
748
|
-
yAxisCalloutData: point.yAxisCalloutData
|
|
749
|
-
};
|
|
750
|
-
const groupData = _datasetForBars.find((singleSet)=>singleSet.xAxisPoint === point.x);
|
|
751
|
-
_showCallout(target, pointData, groupData, _getDotId(seriesIdx, pointIdx));
|
|
752
|
-
};
|
|
753
|
-
const _showCallout = (target, pointData, groupData, _activeLinePoint = '')=>{
|
|
754
|
-
setPopoverTarget(target);
|
|
755
|
-
setPopoverOpen(_noLegendHighlighted() || _legendHighlighted(pointData.legend));
|
|
756
|
-
setCalloutLegend(pointData.legend);
|
|
757
|
-
setDataForHoverCard(pointData.data);
|
|
758
|
-
setColor(pointData.color);
|
|
759
|
-
var _pointData_xAxisCalloutData;
|
|
760
|
-
setXCalloutValue((_pointData_xAxisCalloutData = pointData.xAxisCalloutData) !== null && _pointData_xAxisCalloutData !== void 0 ? _pointData_xAxisCalloutData : groupData.xAxisPoint);
|
|
761
|
-
setYCalloutValue(pointData.yAxisCalloutData);
|
|
762
|
-
setCallOutAccessibilityData(props.isCalloutForStack ? groupData.stackCallOutAccessibilityData : pointData.callOutAccessibilityData);
|
|
763
|
-
setYValueHover(groupData.groupSeries.filter((item)=>_noLegendHighlighted() || _legendHighlighted(item.legend)));
|
|
764
|
-
var _pointData_xAxisCalloutData1;
|
|
765
|
-
setHoverXValue((_pointData_xAxisCalloutData1 = pointData.xAxisCalloutData) !== null && _pointData_xAxisCalloutData1 !== void 0 ? _pointData_xAxisCalloutData1 : groupData.xAxisPoint);
|
|
766
|
-
setActiveLinePoint(props.isCalloutForStack ? groupData.xAxisPoint : _activeLinePoint);
|
|
767
|
-
};
|
|
768
|
-
const _getDotId = (seriesIdx, pointIdx)=>{
|
|
769
|
-
return _uniqDotId + `-${seriesIdx}-${pointIdx}`;
|
|
770
|
-
};
|
|
771
|
-
return !_isChartEmpty(barData, lineData) ? /*#__PURE__*/ _react.createElement(_index1.CartesianChart, {
|
|
772
|
-
...props,
|
|
773
|
-
chartTitle: _getChartTitle(),
|
|
774
|
-
points: _datasetForBars,
|
|
775
|
-
chartType: _index.ChartTypes.GroupedVerticalBarChart,
|
|
776
|
-
getDomainNRangeValues: _getDomainNRangeValues,
|
|
777
|
-
getMinMaxOfYAxis: _getMinMaxOfYAxis,
|
|
778
|
-
createStringYAxis: _index.createStringYAxis,
|
|
779
|
-
calloutProps: calloutProps,
|
|
780
|
-
legendBars: legendBars,
|
|
781
|
-
xAxisType: _xAxisType,
|
|
782
|
-
createYAxis: _index.createNumericYAxis,
|
|
783
|
-
datasetForXAxisDomain: _xAxisLabels,
|
|
784
|
-
tickParams: tickParams,
|
|
785
|
-
tickPadding: props.tickPadding || 5,
|
|
786
|
-
maxOfYVal: _yMax,
|
|
787
|
-
getmargins: _getMargins,
|
|
788
|
-
getGraphData: _getGraphData,
|
|
789
|
-
getAxisData: _getAxisData,
|
|
790
|
-
onChartMouseLeave: _handleChartMouseLeave,
|
|
791
|
-
getDomainMargins: _getDomainMargins,
|
|
792
|
-
..._xAxisType === _index.XAxisTypes.StringAxis && {
|
|
793
|
-
xAxisInnerPadding: _xAxisInnerPadding,
|
|
794
|
-
xAxisOuterPadding: _xAxisOuterPadding
|
|
795
|
-
},
|
|
796
|
-
barwidth: _barWidth,
|
|
797
|
-
componentRef: cartesianChartRef,
|
|
798
|
-
/* eslint-disable react/jsx-no-bind */ children: (childProps)=>{
|
|
799
|
-
return /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("rect", {
|
|
800
|
-
ref: _rectRef,
|
|
801
|
-
width: "100%",
|
|
802
|
-
height: "100%",
|
|
803
|
-
fill: "transparent",
|
|
804
|
-
style: {
|
|
805
|
-
pointerEvents: 'none'
|
|
806
|
-
}
|
|
807
|
-
}), /*#__PURE__*/ _react.createElement("g", null, _groupedVerticalBarGraph), _createLines(lineData, childProps.xScale, childProps.yScalePrimary, childProps.yScaleSecondary));
|
|
808
|
-
}
|
|
809
|
-
}) : /*#__PURE__*/ _react.createElement("div", {
|
|
810
|
-
id: _emptyChartId,
|
|
811
|
-
role: 'alert',
|
|
812
|
-
style: {
|
|
813
|
-
opacity: '0'
|
|
814
|
-
},
|
|
815
|
-
"aria-label": 'Graph has no data to display'
|
|
816
|
-
});
|
|
817
|
-
});
|
|
818
|
-
GroupedVerticalBarChart.displayName = 'GroupedVerticalBarChart';
|