@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,688 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "HeatMapChart", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function() {
|
|
9
|
-
return HeatMapChart;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
13
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
14
|
-
const _index = require("../../utilities/index");
|
|
15
|
-
const _chartutilities = require("@fluentui/chart-utilities");
|
|
16
|
-
const _index1 = require("../CommonComponents/index");
|
|
17
|
-
const _reactutilities = require("@fluentui/react-utilities");
|
|
18
|
-
const _reacttheme = require("@fluentui/react-theme");
|
|
19
|
-
const _useHeatMapChartStylesstyles = require("./useHeatMapChartStyles.styles");
|
|
20
|
-
const _index2 = require("../Legends/index");
|
|
21
|
-
const _d3scale = require("d3-scale");
|
|
22
|
-
const _d3format = require("d3-format");
|
|
23
|
-
const _d3timeformat = require("d3-time-format");
|
|
24
|
-
const _hooks = require("../../utilities/hooks");
|
|
25
|
-
const _reacttabster = require("@fluentui/react-tabster");
|
|
26
|
-
const HeatMapChart = /*#__PURE__*/ _react.forwardRef((props = {
|
|
27
|
-
xAxisCategoryOrder: 'default',
|
|
28
|
-
yAxisCategoryOrder: 'default',
|
|
29
|
-
data: [],
|
|
30
|
-
domainValuesForColorScale: [],
|
|
31
|
-
rangeValuesForColorScale: []
|
|
32
|
-
}, forwardedRef)=>{
|
|
33
|
-
const classes = (0, _useHeatMapChartStylesstyles.useHeatMapChartStyles)(props);
|
|
34
|
-
const _stringXAxisDataPoints = _react.useRef([]);
|
|
35
|
-
const _stringYAxisDataPoints = _react.useRef([]);
|
|
36
|
-
const _dataSet = _react.useRef({});
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
38
|
-
const _colorScale = _react.useRef(undefined);
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
|
-
const _xAxisScale = _react.useRef(undefined);
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
|
-
const _yAxisScale = _react.useRef(undefined);
|
|
43
|
-
const _xAxisType = _react.useRef(undefined);
|
|
44
|
-
const _yAxisType = _react.useRef(undefined);
|
|
45
|
-
const _calloutAnchorPoint = _react.useRef(null);
|
|
46
|
-
const _emptyChartId = (0, _reactutilities.useId)('_HeatMap_empty');
|
|
47
|
-
const _margins = _react.useRef({});
|
|
48
|
-
const { cartesianChartRef, legendsRef: _legendsRef } = (0, _hooks.useImageExport)(props.componentRef, props.hideLegend);
|
|
49
|
-
const arrowNavigationAttributes = (0, _reacttabster.useArrowNavigationGroup)({
|
|
50
|
-
axis: 'grid'
|
|
51
|
-
});
|
|
52
|
-
const [selectedLegend, setSelectedLegend] = _react.useState('');
|
|
53
|
-
const [activeLegend, setActiveLegend] = _react.useState('');
|
|
54
|
-
const [isPopoverOpen, setPopoverOpen] = _react.useState(false);
|
|
55
|
-
const [calloutLegend, setCalloutLegend] = _react.useState('');
|
|
56
|
-
const [calloutTextColor, setCalloutTextColor] = _react.useState('');
|
|
57
|
-
const [calloutYValue, setCalloutYValue] = _react.useState('');
|
|
58
|
-
const [ratio, setRatio] = _react.useState();
|
|
59
|
-
const [descriptionMessage, setDescriptionMessage] = _react.useState('');
|
|
60
|
-
const [callOutAccessibilityData, setCallOutAccessibilityData] = _react.useState();
|
|
61
|
-
const [clickPosition, setClickPosition] = _react.useState({
|
|
62
|
-
x: 0,
|
|
63
|
-
y: 0
|
|
64
|
-
});
|
|
65
|
-
function _getMinMaxOfYAxis() {
|
|
66
|
-
return {
|
|
67
|
-
startValue: 0,
|
|
68
|
-
endValue: 0
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function _getDomainNRangeValues(points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues) {
|
|
72
|
-
let domainNRangeValue;
|
|
73
|
-
if (xAxisType === _index.XAxisTypes.NumericAxis || xAxisType === _index.XAxisTypes.DateAxis) {
|
|
74
|
-
domainNRangeValue = {
|
|
75
|
-
dStartValue: 0,
|
|
76
|
-
dEndValue: 0,
|
|
77
|
-
rStartValue: 0,
|
|
78
|
-
rEndValue: 0
|
|
79
|
-
};
|
|
80
|
-
} else {
|
|
81
|
-
domainNRangeValue = (0, _index.domainRangeOfXStringAxis)(_margins.current, width, isRTL);
|
|
82
|
-
}
|
|
83
|
-
return domainNRangeValue;
|
|
84
|
-
}
|
|
85
|
-
const _getXandY = ()=>{
|
|
86
|
-
let x = '';
|
|
87
|
-
let y = '';
|
|
88
|
-
props.data.forEach((item)=>{
|
|
89
|
-
if (item.data && item.data.length > 0) {
|
|
90
|
-
x = item.data[0].x;
|
|
91
|
-
y = item.data[0].y;
|
|
92
|
-
return {
|
|
93
|
-
x,
|
|
94
|
-
y
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
return {
|
|
99
|
-
x,
|
|
100
|
-
y
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
const _getMargins = (margins)=>{
|
|
104
|
-
_margins.current = margins;
|
|
105
|
-
};
|
|
106
|
-
const _getOpacity = (legendTitle)=>{
|
|
107
|
-
const opacity = _legendHighlighted(legendTitle) || _noLegendHighlighted() ? '1' : '0.1';
|
|
108
|
-
return opacity;
|
|
109
|
-
};
|
|
110
|
-
const _onRectFocus = (id, data, focusEvent)=>{
|
|
111
|
-
const boundingRect = focusEvent.currentTarget.getBoundingClientRect();
|
|
112
|
-
const clientX = boundingRect.left + boundingRect.width / 2;
|
|
113
|
-
const clientY = boundingRect.top + boundingRect.height / 2;
|
|
114
|
-
updatePosition(clientX, clientY);
|
|
115
|
-
/** Show the callout if highlighted rectangle is focused and Hide it if unhighlighted rectangle is focused */ setPopoverOpen(selectedLegend === '' || selectedLegend === data.legend);
|
|
116
|
-
setCalloutYValue(`${data.rectText}`);
|
|
117
|
-
setCalloutTextColor(Number.isNaN(data.value) ? _reacttheme.tokens.colorNeutralForeground1 : _colorScale.current(data.value));
|
|
118
|
-
setCalloutLegend(data.legend);
|
|
119
|
-
setRatio(data.ratio);
|
|
120
|
-
setDescriptionMessage(data.descriptionMessage || '');
|
|
121
|
-
setCallOutAccessibilityData(data.callOutAccessibilityData);
|
|
122
|
-
};
|
|
123
|
-
const _onRectMouseOver = (id, data, mouseEvent)=>{
|
|
124
|
-
mouseEvent.persist();
|
|
125
|
-
if (_calloutAnchorPoint.current !== data) {
|
|
126
|
-
_calloutAnchorPoint.current = data;
|
|
127
|
-
updatePosition(mouseEvent.clientX, mouseEvent.clientY);
|
|
128
|
-
/** Show the callout if highlighted rectangle is hovered and Hide it if unhighlighted rectangle is hovered */ setPopoverOpen(selectedLegend === '' || selectedLegend === data.legend);
|
|
129
|
-
setCalloutYValue(`${data.rectText}`);
|
|
130
|
-
setCalloutTextColor(Number.isNaN(data.value) ? _reacttheme.tokens.colorNeutralForeground1 : _colorScale.current(data.value));
|
|
131
|
-
setCalloutLegend(data.legend);
|
|
132
|
-
setRatio(data.ratio);
|
|
133
|
-
setDescriptionMessage(data.descriptionMessage || '');
|
|
134
|
-
setCallOutAccessibilityData(data.callOutAccessibilityData);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
const _onRectBlurOrMouseOut = ()=>{
|
|
138
|
-
/**/ };
|
|
139
|
-
const _handleChartMouseLeave = ()=>{
|
|
140
|
-
_calloutAnchorPoint.current = null;
|
|
141
|
-
setPopoverOpen(false);
|
|
142
|
-
};
|
|
143
|
-
const _getInvertedTextColor = (color)=>{
|
|
144
|
-
return color === _reacttheme.tokens.colorNeutralForeground1 ? _reacttheme.tokens.colorNeutralBackground1 : _reacttheme.tokens.colorNeutralForeground1;
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* This is the function which is responsible for
|
|
148
|
-
* drawing the rectangle in the graph and also
|
|
149
|
-
* attaching dom events to that rectangles
|
|
150
|
-
*/ const _createRectangles = ()=>{
|
|
151
|
-
const rectangles = [];
|
|
152
|
-
const yAxisDataPoints = _stringYAxisDataPoints.current.slice().reverse();
|
|
153
|
-
/**
|
|
154
|
-
* yAxisDataPoint is noting but the DataPoint
|
|
155
|
-
* which will be rendered on the y-axis
|
|
156
|
-
*/ yAxisDataPoints.forEach((yAxisDataPoint)=>{
|
|
157
|
-
let index = 0;
|
|
158
|
-
_stringXAxisDataPoints.current.forEach((xAxisDataPoint)=>{
|
|
159
|
-
var _dataSet_current_yAxisDataPoint_index, _dataSet_current_yAxisDataPoint_index1;
|
|
160
|
-
let rectElement;
|
|
161
|
-
const id = `x${xAxisDataPoint}y${yAxisDataPoint}`;
|
|
162
|
-
if (((_dataSet_current_yAxisDataPoint_index = _dataSet.current[yAxisDataPoint][index]) === null || _dataSet_current_yAxisDataPoint_index === void 0 ? void 0 : _dataSet_current_yAxisDataPoint_index.x) === xAxisDataPoint && typeof ((_dataSet_current_yAxisDataPoint_index1 = _dataSet.current[yAxisDataPoint][index]) === null || _dataSet_current_yAxisDataPoint_index1 === void 0 ? void 0 : _dataSet_current_yAxisDataPoint_index1.value) === 'number') {
|
|
163
|
-
var _cartesianChartRef_current;
|
|
164
|
-
/**
|
|
165
|
-
* dataPointObject is an object where it contains information on single
|
|
166
|
-
* data point such as x, y , value, rectText property of the rectangle
|
|
167
|
-
*/ const dataPointObject = _dataSet.current[yAxisDataPoint][index];
|
|
168
|
-
let styleRules = '';
|
|
169
|
-
let foregroundColor = _reacttheme.tokens.colorNeutralForeground1;
|
|
170
|
-
if ((_cartesianChartRef_current = cartesianChartRef.current) === null || _cartesianChartRef_current === void 0 ? void 0 : _cartesianChartRef_current.chartContainer) {
|
|
171
|
-
styleRules = (0, _index.resolveCSSVariables)(cartesianChartRef.current.chartContainer, foregroundColor);
|
|
172
|
-
}
|
|
173
|
-
const contrastRatio = (0, _index.getColorContrast)(styleRules, _colorScale.current(dataPointObject.value));
|
|
174
|
-
if (contrastRatio < 3) {
|
|
175
|
-
foregroundColor = _getInvertedTextColor(foregroundColor);
|
|
176
|
-
}
|
|
177
|
-
rectElement = /*#__PURE__*/ _react.createElement("g", {
|
|
178
|
-
key: id,
|
|
179
|
-
role: "img",
|
|
180
|
-
"aria-label": _getAriaLabel(dataPointObject),
|
|
181
|
-
tabIndex: _legendHighlighted(dataPointObject.legend) || _noLegendHighlighted() ? 0 : -1,
|
|
182
|
-
fillOpacity: _getOpacity(dataPointObject.legend),
|
|
183
|
-
transform: `translate(${_xAxisScale.current(dataPointObject.x)}, ${_yAxisScale.current(dataPointObject.y)})`,
|
|
184
|
-
onFocus: (e)=>_onRectFocus(id, dataPointObject, e),
|
|
185
|
-
onBlur: _onRectBlurOrMouseOut,
|
|
186
|
-
onMouseOver: (e)=>_onRectMouseOver(id, dataPointObject, e),
|
|
187
|
-
onMouseOut: _onRectBlurOrMouseOut
|
|
188
|
-
}, /*#__PURE__*/ _react.createElement("rect", {
|
|
189
|
-
fill: _colorScale.current(dataPointObject.value),
|
|
190
|
-
width: _xAxisScale.current.bandwidth(),
|
|
191
|
-
height: _yAxisScale.current.bandwidth(),
|
|
192
|
-
onClick: dataPointObject.onClick
|
|
193
|
-
}), /*#__PURE__*/ _react.createElement("text", {
|
|
194
|
-
dominantBaseline: 'middle',
|
|
195
|
-
textAnchor: 'middle',
|
|
196
|
-
className: classes.text,
|
|
197
|
-
transform: `translate(${_xAxisScale.current.bandwidth() / 2}, ${_yAxisScale.current.bandwidth() / 2})`,
|
|
198
|
-
fill: foregroundColor
|
|
199
|
-
}, (0, _chartutilities.formatToLocaleString)(dataPointObject.rectText, props.culture, props.useUTC)));
|
|
200
|
-
index++;
|
|
201
|
-
} else {
|
|
202
|
-
const dataPointObject = {
|
|
203
|
-
x: xAxisDataPoint,
|
|
204
|
-
y: yAxisDataPoint,
|
|
205
|
-
value: NaN,
|
|
206
|
-
rectText: 'No data available',
|
|
207
|
-
legend: ''
|
|
208
|
-
};
|
|
209
|
-
rectElement = /*#__PURE__*/ _react.createElement("g", {
|
|
210
|
-
key: id,
|
|
211
|
-
role: "img",
|
|
212
|
-
"aria-label": _getAriaLabel(dataPointObject),
|
|
213
|
-
tabIndex: _noLegendHighlighted() ? 0 : -1,
|
|
214
|
-
transform: `translate(${_xAxisScale.current(dataPointObject.x)}, ${_yAxisScale.current(dataPointObject.y)})`,
|
|
215
|
-
onFocus: (e)=>_onRectFocus(id, dataPointObject, e),
|
|
216
|
-
onBlur: _onRectBlurOrMouseOut,
|
|
217
|
-
onMouseOver: (e)=>_onRectMouseOver(id, dataPointObject, e),
|
|
218
|
-
onMouseOut: _onRectBlurOrMouseOut
|
|
219
|
-
}, /*#__PURE__*/ _react.createElement("rect", {
|
|
220
|
-
fill: "transparent",
|
|
221
|
-
width: _xAxisScale.current.bandwidth(),
|
|
222
|
-
height: _yAxisScale.current.bandwidth()
|
|
223
|
-
}));
|
|
224
|
-
}
|
|
225
|
-
rectangles.push(rectElement);
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
return /*#__PURE__*/ _react.createElement("g", arrowNavigationAttributes, rectangles);
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* when the legend is hovered we need to highlight
|
|
232
|
-
* all the rectangles which fall under that category
|
|
233
|
-
* and un-highlight the rest of them
|
|
234
|
-
* @param legendTitle
|
|
235
|
-
*/ const _onLegendHover = (legendTitle)=>{
|
|
236
|
-
setActiveLegend(legendTitle);
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* when the mouse is out from the legend , we need
|
|
240
|
-
* to show the graph in initial mode.
|
|
241
|
-
*/ const _onLegendLeave = ()=>{
|
|
242
|
-
setActiveLegend('');
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
* @param legendTitle
|
|
246
|
-
* when the legend is clicked we need to highlight
|
|
247
|
-
* all the rectangles which fall under that category
|
|
248
|
-
* and un highlight the rest of them
|
|
249
|
-
*/ const _onLegendClick = (legendTitle)=>{
|
|
250
|
-
/**
|
|
251
|
-
* check if the legend is already selceted,
|
|
252
|
-
* if yes, un-select the legend, else
|
|
253
|
-
* set the selected legend state to legendTitle
|
|
254
|
-
*/ if (selectedLegend === legendTitle) {
|
|
255
|
-
setSelectedLegend('');
|
|
256
|
-
} else {
|
|
257
|
-
setSelectedLegend(legendTitle);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
const _createLegendBars = ()=>{
|
|
261
|
-
const { data, legendProps } = props;
|
|
262
|
-
const legends = [];
|
|
263
|
-
data.forEach((item)=>{
|
|
264
|
-
const legend = {
|
|
265
|
-
title: item.legend,
|
|
266
|
-
color: _colorScale.current(item.value),
|
|
267
|
-
action: ()=>{
|
|
268
|
-
_onLegendClick(item.legend);
|
|
269
|
-
},
|
|
270
|
-
hoverAction: ()=>{
|
|
271
|
-
_handleChartMouseLeave();
|
|
272
|
-
_onLegendHover(item.legend);
|
|
273
|
-
},
|
|
274
|
-
onMouseOutAction: ()=>{
|
|
275
|
-
_onLegendLeave();
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
legends.push(legend);
|
|
279
|
-
});
|
|
280
|
-
return /*#__PURE__*/ _react.createElement(_index2.Legends, {
|
|
281
|
-
...legendProps,
|
|
282
|
-
legends: legends,
|
|
283
|
-
legendRef: _legendsRef
|
|
284
|
-
});
|
|
285
|
-
};
|
|
286
|
-
const _getColorScale = ()=>{
|
|
287
|
-
const { domainValuesForColorScale, rangeValuesForColorScale } = props;
|
|
288
|
-
return (0, _d3scale.scaleLinear)().domain(domainValuesForColorScale).range(rangeValuesForColorScale);
|
|
289
|
-
};
|
|
290
|
-
const _getXIndex = (value)=>{
|
|
291
|
-
if (_xAxisType.current === _index.XAxisTypes.DateAxis) {
|
|
292
|
-
return `${value.getTime()}`;
|
|
293
|
-
} else if (_xAxisType.current === _index.XAxisTypes.StringAxis) {
|
|
294
|
-
return value;
|
|
295
|
-
} else if (_xAxisType.current === _index.XAxisTypes.NumericAxis) {
|
|
296
|
-
return `${value}`;
|
|
297
|
-
} else {
|
|
298
|
-
return '';
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
const _getYIndex = (value)=>{
|
|
302
|
-
if (_yAxisType.current === _index.YAxisType.DateAxis) {
|
|
303
|
-
return `${value.getTime()}`;
|
|
304
|
-
} else if (_yAxisType.current === _index.YAxisType.StringAxis) {
|
|
305
|
-
return value;
|
|
306
|
-
} else if (_yAxisType.current === _index.YAxisType.NumericAxis) {
|
|
307
|
-
return `${value}`;
|
|
308
|
-
} else {
|
|
309
|
-
return '';
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
const { xAxisStringFormatter } = props;
|
|
313
|
-
const _getFormattedLabelForXAxisDataPoint = _react.useCallback((point)=>{
|
|
314
|
-
return xAxisStringFormatter ? xAxisStringFormatter(point) : point;
|
|
315
|
-
}, [
|
|
316
|
-
xAxisStringFormatter
|
|
317
|
-
]);
|
|
318
|
-
const { yAxisStringFormatter } = props;
|
|
319
|
-
const _getFormattedLabelForYAxisDataPoint = _react.useCallback((point)=>{
|
|
320
|
-
return yAxisStringFormatter ? yAxisStringFormatter(point) : point;
|
|
321
|
-
}, [
|
|
322
|
-
yAxisStringFormatter
|
|
323
|
-
]);
|
|
324
|
-
/**
|
|
325
|
-
* This function will return the final sorted and formatted x-axis points
|
|
326
|
-
* which will be rendered on the x-axis
|
|
327
|
-
* @param points
|
|
328
|
-
* @returns x-axis points
|
|
329
|
-
*/ const _getXAxisDataPoints = _react.useCallback((points)=>{
|
|
330
|
-
let xAxisPoints = [];
|
|
331
|
-
const unFormattedXAxisDataPoints = _getOrderedXAxisLabels(points);
|
|
332
|
-
xAxisPoints = unFormattedXAxisDataPoints.map((xPoint)=>{
|
|
333
|
-
if (_xAxisType.current === _index.XAxisTypes.DateAxis) {
|
|
334
|
-
return _getStringFormattedDate(xPoint, props.xAxisDateFormatString);
|
|
335
|
-
} else if (_xAxisType.current === _index.XAxisTypes.NumericAxis) {
|
|
336
|
-
return _getStringFormattedNumber(xPoint, props.xAxisNumberFormatString);
|
|
337
|
-
} else {
|
|
338
|
-
return _getFormattedLabelForXAxisDataPoint(xPoint);
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
return xAxisPoints;
|
|
342
|
-
}, [
|
|
343
|
-
_getFormattedLabelForXAxisDataPoint,
|
|
344
|
-
props.sortOrder,
|
|
345
|
-
props.xAxisDateFormatString,
|
|
346
|
-
props.xAxisNumberFormatString
|
|
347
|
-
]);
|
|
348
|
-
/**
|
|
349
|
-
* This function will return the final sorted and formatted y-axis points
|
|
350
|
-
* which will be rendered on the y-axis
|
|
351
|
-
* @param points
|
|
352
|
-
* @returns yaxis points
|
|
353
|
-
*/ const _getYAxisDataPoints = _react.useCallback((points)=>{
|
|
354
|
-
let yAxisPoints = [];
|
|
355
|
-
const unFormattedYAxisDataPoints = _getOrderedYAxisLabels(points);
|
|
356
|
-
yAxisPoints = unFormattedYAxisDataPoints.map((yPoint)=>{
|
|
357
|
-
if (_yAxisType.current === _index.YAxisType.DateAxis) {
|
|
358
|
-
return _getStringFormattedDate(yPoint, props.yAxisDateFormatString);
|
|
359
|
-
} else if (_yAxisType.current === _index.YAxisType.NumericAxis) {
|
|
360
|
-
return _getStringFormattedNumber(yPoint, props.yAxisNumberFormatString);
|
|
361
|
-
} else {
|
|
362
|
-
return _getFormattedLabelForYAxisDataPoint(yPoint);
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
return yAxisPoints;
|
|
366
|
-
}, [
|
|
367
|
-
_getFormattedLabelForYAxisDataPoint,
|
|
368
|
-
props.sortOrder,
|
|
369
|
-
props.yAxisDateFormatString,
|
|
370
|
-
props.yAxisNumberFormatString
|
|
371
|
-
]);
|
|
372
|
-
/**
|
|
373
|
-
* This will create a new data set based on the prop
|
|
374
|
-
* @data
|
|
375
|
-
* We will be using This data set to contsruct our rectangles
|
|
376
|
-
* in the chart, we use this data set becuase, when we loop in this
|
|
377
|
-
* data and build the heat map, it will support accessibility as
|
|
378
|
-
* specified in the figma
|
|
379
|
-
*/ const _createNewDataSet = _react.useCallback((data, xAxisDateFormatString, xAxisNumberFormatString, yAxisDateFormatString, yAxisNumberFormatString)=>{
|
|
380
|
-
/**
|
|
381
|
-
* please do not destructure any of the props here,
|
|
382
|
-
* instead send them as parameter to this functions so that
|
|
383
|
-
* this functions get called whenever the prop changes
|
|
384
|
-
*/ const flattenData = [];
|
|
385
|
-
/**
|
|
386
|
-
* below for each loop will store all the datapoints in the one array.
|
|
387
|
-
* basically it will flatten the nestesd array (data prop) into single array
|
|
388
|
-
* of object. where each object contains x, y, rectText , value and legend propety of single
|
|
389
|
-
* data point.
|
|
390
|
-
*/ data.forEach((item)=>{
|
|
391
|
-
item.data.forEach((point)=>{
|
|
392
|
-
flattenData.push({
|
|
393
|
-
...point,
|
|
394
|
-
legend: item.legend
|
|
395
|
-
});
|
|
396
|
-
});
|
|
397
|
-
});
|
|
398
|
-
const yPoints = {};
|
|
399
|
-
const uniqueYPoints = {};
|
|
400
|
-
const uniqueXPoints = {};
|
|
401
|
-
flattenData.forEach((item)=>{
|
|
402
|
-
const posX = _getXIndex(item.x);
|
|
403
|
-
const posY = _getYIndex(item.y);
|
|
404
|
-
uniqueXPoints[posX] = '1';
|
|
405
|
-
uniqueYPoints[posY] = '1';
|
|
406
|
-
/** we will check if the property(posY) is already there in object, if Yes,
|
|
407
|
-
* then we will append the item in the Array related to the pos, if not
|
|
408
|
-
* then we will simply append the item in the new Array and
|
|
409
|
-
* assign that array to the property (posY) in the Object
|
|
410
|
-
* and finally we will get the array of Objects associated to each
|
|
411
|
-
* property (which is nothing but y data point) and object in the
|
|
412
|
-
* array are noting but x data points associated to the property y
|
|
413
|
-
*/ if (yPoints[posY]) {
|
|
414
|
-
yPoints[posY] = [
|
|
415
|
-
...yPoints[posY],
|
|
416
|
-
item
|
|
417
|
-
];
|
|
418
|
-
} else {
|
|
419
|
-
yPoints[posY] = [
|
|
420
|
-
item
|
|
421
|
-
];
|
|
422
|
-
}
|
|
423
|
-
});
|
|
424
|
-
/**
|
|
425
|
-
* we will now sort(ascending) the array's of y data point based on the x value
|
|
426
|
-
* sorting is important to achive the accessibility order of the
|
|
427
|
-
* rectangles and then format the x and y datapoints respectively
|
|
428
|
-
*/ Object.keys(yPoints).forEach((item)=>{
|
|
429
|
-
yPoints[item] = _getOrderedXPoints(yPoints[item]);
|
|
430
|
-
yPoints[item].forEach((datapoint)=>{
|
|
431
|
-
if (_xAxisType.current === _index.XAxisTypes.DateAxis) {
|
|
432
|
-
datapoint.x = _getStringFormattedDate(datapoint.x, xAxisDateFormatString);
|
|
433
|
-
}
|
|
434
|
-
if (_xAxisType.current === _index.XAxisTypes.NumericAxis) {
|
|
435
|
-
datapoint.x = _getStringFormattedNumber(datapoint.x, xAxisNumberFormatString);
|
|
436
|
-
}
|
|
437
|
-
if (_xAxisType.current === _index.XAxisTypes.StringAxis) {
|
|
438
|
-
datapoint.x = _getFormattedLabelForXAxisDataPoint(datapoint.x);
|
|
439
|
-
}
|
|
440
|
-
if (_yAxisType.current === _index.YAxisType.DateAxis) {
|
|
441
|
-
datapoint.y = _getStringFormattedDate(datapoint.y, yAxisDateFormatString);
|
|
442
|
-
}
|
|
443
|
-
if (_yAxisType.current === _index.YAxisType.NumericAxis) {
|
|
444
|
-
datapoint.y = _getStringFormattedNumber(datapoint.y, yAxisNumberFormatString);
|
|
445
|
-
}
|
|
446
|
-
if (_yAxisType.current === _index.YAxisType.StringAxis) {
|
|
447
|
-
datapoint.y = _getFormattedLabelForYAxisDataPoint(datapoint.y);
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
});
|
|
451
|
-
/**
|
|
452
|
-
* if y-axis data points are of type date or number or if we have string formatter,
|
|
453
|
-
* then we need to change data points to their respective string
|
|
454
|
-
* format, becuase in the private variable _stringYAxisDatapoints, points will be stored in
|
|
455
|
-
* string format. and in here `yPoint` are not so we need to change, so that
|
|
456
|
-
* function `_createRectangles` should work perfetcly while looping, and if we don't change
|
|
457
|
-
* then `_createRectangles` will fail while looping, causing the error
|
|
458
|
-
* Cannot read property 'forEach' of undefined
|
|
459
|
-
*/ Object.keys(yPoints).forEach((yPoint)=>{
|
|
460
|
-
if (_yAxisType.current === _index.YAxisType.DateAxis) {
|
|
461
|
-
yPoints[_getStringFormattedDate(yPoint, yAxisDateFormatString)] = yPoints[yPoint];
|
|
462
|
-
} else if (_yAxisType.current === _index.YAxisType.NumericAxis) {
|
|
463
|
-
yPoints[`${_getStringFormattedNumber(yPoint, yAxisNumberFormatString)}`] = yPoints[yPoint];
|
|
464
|
-
} else {
|
|
465
|
-
yPoints[_getFormattedLabelForYAxisDataPoint(yPoint)] = yPoints[yPoint];
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
/**
|
|
469
|
-
* assigning new data set
|
|
470
|
-
*/ const dataSet = yPoints;
|
|
471
|
-
/**
|
|
472
|
-
* These are the Y axis data points which will get rendered in the
|
|
473
|
-
* Y axis in graph
|
|
474
|
-
*/ const yAxisPoints = _getYAxisDataPoints(uniqueYPoints);
|
|
475
|
-
/**
|
|
476
|
-
* These are the x axis data points which will get rendered in the
|
|
477
|
-
* x axis in the graph
|
|
478
|
-
*/ const xAxisPoints = _getXAxisDataPoints(uniqueXPoints);
|
|
479
|
-
return {
|
|
480
|
-
dataSet,
|
|
481
|
-
yAxisPoints,
|
|
482
|
-
xAxisPoints
|
|
483
|
-
};
|
|
484
|
-
}, [
|
|
485
|
-
_getFormattedLabelForXAxisDataPoint,
|
|
486
|
-
_getFormattedLabelForYAxisDataPoint,
|
|
487
|
-
_getXAxisDataPoints,
|
|
488
|
-
_getYAxisDataPoints,
|
|
489
|
-
props.sortOrder
|
|
490
|
-
]);
|
|
491
|
-
const _getStringFormattedDate = (point, formatString)=>{
|
|
492
|
-
const date = new Date();
|
|
493
|
-
date.setTime(+point);
|
|
494
|
-
return (0, _d3timeformat.timeFormat)(formatString || '%b/%d')(date);
|
|
495
|
-
};
|
|
496
|
-
const _getStringFormattedNumber = (point, formatString)=>{
|
|
497
|
-
return (0, _d3format.format)(formatString || '.2~s')(+point);
|
|
498
|
-
};
|
|
499
|
-
/**
|
|
500
|
-
* This function checks if the given legend is highlighted or not.
|
|
501
|
-
* A legend can be highlighted in 2 ways:
|
|
502
|
-
* 1. selection: if the user clicks on it
|
|
503
|
-
* 2. hovering: if there is no selected legend and the user hovers over it
|
|
504
|
-
*/ const _legendHighlighted = (legendTitle)=>{
|
|
505
|
-
return selectedLegend === legendTitle || selectedLegend === '' && activeLegend === legendTitle;
|
|
506
|
-
};
|
|
507
|
-
/**
|
|
508
|
-
* This function checks if none of the legends is selected or hovered.
|
|
509
|
-
*/ const _noLegendHighlighted = ()=>{
|
|
510
|
-
return selectedLegend === '' && activeLegend === '';
|
|
511
|
-
};
|
|
512
|
-
const _getAriaLabel = (point)=>{
|
|
513
|
-
var _point_callOutAccessibilityData;
|
|
514
|
-
const xValue = point.x;
|
|
515
|
-
const yValue = point.y;
|
|
516
|
-
const legend = point.legend;
|
|
517
|
-
const zValue = point.ratio ? `${point.ratio[0]}/${point.ratio[1]}` : point.rectText || point.value;
|
|
518
|
-
const description = point.descriptionMessage;
|
|
519
|
-
return ((_point_callOutAccessibilityData = point.callOutAccessibilityData) === null || _point_callOutAccessibilityData === void 0 ? void 0 : _point_callOutAccessibilityData.ariaLabel) || `${xValue}, ${yValue}. ${legend}, ${zValue}.` + (description ? ` ${description}.` : '');
|
|
520
|
-
};
|
|
521
|
-
const _isChartEmpty = ()=>{
|
|
522
|
-
return !(props.data && props.data.length > 0);
|
|
523
|
-
};
|
|
524
|
-
const _getChartTitle = ()=>{
|
|
525
|
-
const { chartTitle } = props;
|
|
526
|
-
const numDataPoints = props.data.reduce((acc, curr)=>acc + curr.data.length, 0);
|
|
527
|
-
return (chartTitle ? `${chartTitle}. ` : '') + `Heat map chart with ${numDataPoints} data points. `;
|
|
528
|
-
};
|
|
529
|
-
const _getOrderedXAxisLabels = (points)=>{
|
|
530
|
-
if (!_shouldOrderXAxisLabelsByCategoryOrder()) {
|
|
531
|
-
// Keep the original ordering logic as the default behavior to ensure backward compatibility
|
|
532
|
-
return Object.keys(points).sort((a, b)=>{
|
|
533
|
-
if (_xAxisType.current === _index.XAxisTypes.DateAxis || _xAxisType.current === _index.XAxisTypes.NumericAxis) {
|
|
534
|
-
return +a - +b;
|
|
535
|
-
} else {
|
|
536
|
-
return props.sortOrder === 'none' ? 0 : a.toLowerCase() > b.toLowerCase() ? 1 : -1;
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
return (0, _index.sortAxisCategories)(_mapCategoryToValues(), props.xAxisCategoryOrder);
|
|
541
|
-
};
|
|
542
|
-
const _getOrderedYAxisLabels = (points)=>{
|
|
543
|
-
if (!_shouldOrderYAxisLabelsByCategoryOrder()) {
|
|
544
|
-
// Keep the original ordering logic as the default behavior to ensure backward compatibility
|
|
545
|
-
return Object.keys(points).sort((a, b)=>{
|
|
546
|
-
if (_yAxisType.current === _index.YAxisType.DateAxis || _yAxisType.current === _index.YAxisType.NumericAxis) {
|
|
547
|
-
return +a - +b;
|
|
548
|
-
} else {
|
|
549
|
-
return props.sortOrder === 'none' ? 0 : a.toLowerCase() > b.toLowerCase() ? 1 : -1;
|
|
550
|
-
}
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
return (0, _index.sortAxisCategories)(_mapCategoryToValues(true), props.yAxisCategoryOrder);
|
|
554
|
-
};
|
|
555
|
-
const _getOrderedXPoints = (xPoints)=>{
|
|
556
|
-
if (!_shouldOrderXAxisLabelsByCategoryOrder()) {
|
|
557
|
-
return xPoints.sort((a, b)=>{
|
|
558
|
-
if (_xAxisType.current === _index.XAxisTypes.StringAxis) {
|
|
559
|
-
return props.sortOrder === 'none' ? 0 : a.x.toLowerCase() > b.x.toLowerCase() ? 1 : -1;
|
|
560
|
-
} else if (_xAxisType.current === _index.XAxisTypes.DateAxis) {
|
|
561
|
-
return a.x.getTime() - b.x.getTime();
|
|
562
|
-
} else if (_xAxisType.current === _index.XAxisTypes.NumericAxis) {
|
|
563
|
-
return +a.x > +b.x ? 1 : -1;
|
|
564
|
-
} else {
|
|
565
|
-
return a.x > b.x ? 1 : -1;
|
|
566
|
-
}
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
const result = [];
|
|
570
|
-
const xValueToPoints = {};
|
|
571
|
-
xPoints.forEach((point)=>{
|
|
572
|
-
const xValue = point.x;
|
|
573
|
-
if (!xValueToPoints[xValue]) {
|
|
574
|
-
xValueToPoints[xValue] = [];
|
|
575
|
-
}
|
|
576
|
-
xValueToPoints[xValue].push(point);
|
|
577
|
-
});
|
|
578
|
-
const xAxisLabels = _getOrderedXAxisLabels({});
|
|
579
|
-
xAxisLabels.forEach((xValue)=>{
|
|
580
|
-
if (xValueToPoints[xValue]) {
|
|
581
|
-
result.push(...xValueToPoints[xValue]);
|
|
582
|
-
}
|
|
583
|
-
});
|
|
584
|
-
return result;
|
|
585
|
-
};
|
|
586
|
-
const _shouldOrderXAxisLabelsByCategoryOrder = ()=>{
|
|
587
|
-
return _xAxisType.current === _index.XAxisTypes.StringAxis && props.xAxisCategoryOrder !== 'default';
|
|
588
|
-
};
|
|
589
|
-
const _shouldOrderYAxisLabelsByCategoryOrder = ()=>{
|
|
590
|
-
return _yAxisType.current === _index.YAxisType.StringAxis && props.yAxisCategoryOrder !== 'default';
|
|
591
|
-
};
|
|
592
|
-
const _mapCategoryToValues = (isYAxis = false)=>{
|
|
593
|
-
const categoryToValues = {};
|
|
594
|
-
props.data.forEach((item)=>{
|
|
595
|
-
item.data.forEach((point)=>{
|
|
596
|
-
const category = isYAxis ? point.y : point.x;
|
|
597
|
-
if (!categoryToValues[category]) {
|
|
598
|
-
categoryToValues[category] = [];
|
|
599
|
-
}
|
|
600
|
-
categoryToValues[category].push(point.value);
|
|
601
|
-
});
|
|
602
|
-
});
|
|
603
|
-
return categoryToValues;
|
|
604
|
-
};
|
|
605
|
-
const updatePosition = (newX, newY)=>{
|
|
606
|
-
const threshold = 1; // Set a threshold for movement
|
|
607
|
-
const { x, y } = clickPosition;
|
|
608
|
-
// Calculate the distance moved
|
|
609
|
-
const distance = Math.sqrt(Math.pow(newX - x, 2) + Math.pow(newY - y, 2));
|
|
610
|
-
// Update the position only if the distance moved is greater than the threshold
|
|
611
|
-
if (distance > threshold) {
|
|
612
|
-
setClickPosition({
|
|
613
|
-
x: newX,
|
|
614
|
-
y: newY
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
const { x, y } = _getXandY();
|
|
619
|
-
_xAxisType.current = (0, _index.getTypeOfAxis)(x, true);
|
|
620
|
-
_yAxisType.current = (0, _index.getTypeOfAxis)(y, false);
|
|
621
|
-
const { data, xAxisDateFormatString, xAxisNumberFormatString, yAxisDateFormatString, yAxisNumberFormatString } = props;
|
|
622
|
-
_colorScale.current = _getColorScale();
|
|
623
|
-
const { dataSet, xAxisPoints, yAxisPoints } = _react.useMemo(()=>_createNewDataSet(data, xAxisDateFormatString, xAxisNumberFormatString, yAxisDateFormatString, yAxisNumberFormatString), [
|
|
624
|
-
_createNewDataSet,
|
|
625
|
-
data,
|
|
626
|
-
xAxisDateFormatString,
|
|
627
|
-
xAxisNumberFormatString,
|
|
628
|
-
yAxisDateFormatString,
|
|
629
|
-
yAxisNumberFormatString
|
|
630
|
-
]);
|
|
631
|
-
_dataSet.current = dataSet;
|
|
632
|
-
_stringYAxisDataPoints.current = yAxisPoints;
|
|
633
|
-
_stringXAxisDataPoints.current = xAxisPoints;
|
|
634
|
-
const calloutProps = {
|
|
635
|
-
...props.calloutProps,
|
|
636
|
-
isPopoverOpen,
|
|
637
|
-
YValue: calloutYValue,
|
|
638
|
-
legend: calloutLegend,
|
|
639
|
-
color: calloutTextColor,
|
|
640
|
-
ratio,
|
|
641
|
-
descriptionMessage,
|
|
642
|
-
clickPosition,
|
|
643
|
-
...(0, _index.getAccessibleDataObject)(callOutAccessibilityData, 'text', false),
|
|
644
|
-
styles: {
|
|
645
|
-
calloutContentRoot: classes.calloutContentRoot
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
const tickParams = {
|
|
649
|
-
tickValues: props.tickValues,
|
|
650
|
-
tickFormat: props.tickFormat
|
|
651
|
-
};
|
|
652
|
-
return !_isChartEmpty() ? /*#__PURE__*/ _react.createElement(_index1.CartesianChart, {
|
|
653
|
-
...props,
|
|
654
|
-
chartTitle: _getChartTitle(),
|
|
655
|
-
points: data,
|
|
656
|
-
chartType: _index.ChartTypes.HeatMapChart,
|
|
657
|
-
xAxisType: _index.XAxisTypes.StringAxis,
|
|
658
|
-
yAxisType: _index.YAxisType.StringAxis,
|
|
659
|
-
calloutProps: calloutProps,
|
|
660
|
-
createYAxis: _index.createNumericYAxis,
|
|
661
|
-
datasetForXAxisDomain: _stringXAxisDataPoints.current,
|
|
662
|
-
stringDatasetForYAxisDomain: _stringYAxisDataPoints.current,
|
|
663
|
-
createStringYAxis: _index.createStringYAxis,
|
|
664
|
-
getDomainNRangeValues: _getDomainNRangeValues,
|
|
665
|
-
getMinMaxOfYAxis: _getMinMaxOfYAxis,
|
|
666
|
-
getmargins: _getMargins,
|
|
667
|
-
xAxisTickCount: _stringXAxisDataPoints.current.length,
|
|
668
|
-
xAxistickSize: 0,
|
|
669
|
-
xAxisPadding: 0.02,
|
|
670
|
-
yAxisPadding: 0.02,
|
|
671
|
-
legendBars: _createLegendBars(),
|
|
672
|
-
onChartMouseLeave: _handleChartMouseLeave,
|
|
673
|
-
componentRef: cartesianChartRef,
|
|
674
|
-
tickParams: tickParams,
|
|
675
|
-
/* eslint-disable react/jsx-no-bind */ children: (p)=>{
|
|
676
|
-
_xAxisScale.current = p.xScale;
|
|
677
|
-
_yAxisScale.current = p.yScalePrimary;
|
|
678
|
-
return _createRectangles();
|
|
679
|
-
}
|
|
680
|
-
}) : /*#__PURE__*/ _react.createElement("div", {
|
|
681
|
-
id: _emptyChartId,
|
|
682
|
-
role: 'alert',
|
|
683
|
-
style: {
|
|
684
|
-
opacity: '0'
|
|
685
|
-
},
|
|
686
|
-
"aria-label": 'Graph has no data to display'
|
|
687
|
-
});
|
|
688
|
-
});
|