@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,597 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
function _export(target, all) {
|
|
7
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: all[name]
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
_export(exports, {
|
|
13
|
-
ARC_PADDING: function() {
|
|
14
|
-
return ARC_PADDING;
|
|
15
|
-
},
|
|
16
|
-
BREAKPOINTS: function() {
|
|
17
|
-
return BREAKPOINTS;
|
|
18
|
-
},
|
|
19
|
-
GaugeChart: function() {
|
|
20
|
-
return GaugeChart;
|
|
21
|
-
},
|
|
22
|
-
calcNeedleRotation: function() {
|
|
23
|
-
return calcNeedleRotation;
|
|
24
|
-
},
|
|
25
|
-
getChartValueLabel: function() {
|
|
26
|
-
return getChartValueLabel;
|
|
27
|
-
},
|
|
28
|
-
getSegmentLabel: function() {
|
|
29
|
-
return getSegmentLabel;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
33
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
34
|
-
const _useGaugeChartStylesstyles = require("./useGaugeChartStyles.styles");
|
|
35
|
-
const _d3selection = require("d3-selection");
|
|
36
|
-
const _d3shape = require("d3-shape");
|
|
37
|
-
const _index = require("../../utilities/index");
|
|
38
|
-
const _chartutilities = require("@fluentui/chart-utilities");
|
|
39
|
-
const _SVGTooltipText = require("../../utilities/SVGTooltipText");
|
|
40
|
-
const _index1 = require("../Legends/index");
|
|
41
|
-
const _reacttabster = require("@fluentui/react-tabster");
|
|
42
|
-
const _ChartPopover = require("../CommonComponents/ChartPopover");
|
|
43
|
-
const _hooks = require("../../utilities/hooks");
|
|
44
|
-
const GAUGE_MARGIN = 16;
|
|
45
|
-
const LABEL_WIDTH = 36;
|
|
46
|
-
const LABEL_HEIGHT = 16;
|
|
47
|
-
const LABEL_OFFSET = 4;
|
|
48
|
-
const TITLE_OFFSET = 11;
|
|
49
|
-
const EXTRA_NEEDLE_LENGTH = 4;
|
|
50
|
-
const ARC_PADDING = 2;
|
|
51
|
-
const BREAKPOINTS = [
|
|
52
|
-
{
|
|
53
|
-
minRadius: 52,
|
|
54
|
-
arcWidth: 12,
|
|
55
|
-
fontSize: 20
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
minRadius: 70,
|
|
59
|
-
arcWidth: 16,
|
|
60
|
-
fontSize: 24
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
minRadius: 88,
|
|
64
|
-
arcWidth: 20,
|
|
65
|
-
fontSize: 32
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
minRadius: 106,
|
|
69
|
-
arcWidth: 24,
|
|
70
|
-
fontSize: 32
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
minRadius: 124,
|
|
74
|
-
arcWidth: 28,
|
|
75
|
-
fontSize: 40
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
minRadius: 142,
|
|
79
|
-
arcWidth: 32,
|
|
80
|
-
fontSize: 40
|
|
81
|
-
}
|
|
82
|
-
];
|
|
83
|
-
const calcNeedleRotation = (chartValue, minValue, maxValue)=>{
|
|
84
|
-
let needleRotation = (chartValue - minValue) / (maxValue - minValue) * 180;
|
|
85
|
-
if (needleRotation < 0) {
|
|
86
|
-
needleRotation = 0;
|
|
87
|
-
} else if (needleRotation > 180) {
|
|
88
|
-
needleRotation = 180;
|
|
89
|
-
}
|
|
90
|
-
return needleRotation;
|
|
91
|
-
};
|
|
92
|
-
const getSegmentLabel = (segment, minValue, maxValue, variant, isAriaLabel = false)=>{
|
|
93
|
-
if (isAriaLabel) {
|
|
94
|
-
return minValue === 0 && variant === 'single-segment' ? `${segment.legend}, ${segment.size} out of ${maxValue} or ${(segment.size / maxValue * 100).toFixed()}%` : `${segment.legend}, ${segment.start} to ${segment.end}`;
|
|
95
|
-
}
|
|
96
|
-
return minValue === 0 && variant === 'single-segment' ? `${segment.size} (${(segment.size / maxValue * 100).toFixed()}%)` : `${segment.start} - ${segment.end}`;
|
|
97
|
-
};
|
|
98
|
-
const getChartValueLabel = (chartValue, minValue, maxValue, chartValueFormat, forCallout = false)=>{
|
|
99
|
-
if (forCallout) {
|
|
100
|
-
// When displaying the chart value as a percentage, use fractions in the callout, and vice versa.
|
|
101
|
-
// This helps clarify the actual value and avoid repetition.
|
|
102
|
-
return minValue !== 0 ? chartValue.toString() : chartValueFormat === 'fraction' ? `${(chartValue / maxValue * 100).toFixed()}%` : `${chartValue}/${maxValue}`;
|
|
103
|
-
}
|
|
104
|
-
return typeof chartValueFormat === 'function' ? chartValueFormat([
|
|
105
|
-
chartValue - minValue,
|
|
106
|
-
maxValue - minValue
|
|
107
|
-
]) : minValue !== 0 ? chartValue.toString() : chartValueFormat === 'fraction' ? `${chartValue}/${maxValue}` : `${(chartValue / maxValue * 100).toFixed()}%`;
|
|
108
|
-
};
|
|
109
|
-
const GaugeChart = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
|
|
110
|
-
var _props_legendProps;
|
|
111
|
-
const _getMargins = ()=>{
|
|
112
|
-
const { hideMinMax, chartTitle, sublabel } = props;
|
|
113
|
-
return {
|
|
114
|
-
left: (!hideMinMax ? LABEL_OFFSET + LABEL_WIDTH : 0) + GAUGE_MARGIN,
|
|
115
|
-
right: (!hideMinMax ? LABEL_OFFSET + LABEL_WIDTH : 0) + GAUGE_MARGIN,
|
|
116
|
-
top: (chartTitle ? TITLE_OFFSET + LABEL_HEIGHT : EXTRA_NEEDLE_LENGTH / 2) + GAUGE_MARGIN,
|
|
117
|
-
bottom: (sublabel ? LABEL_OFFSET + LABEL_HEIGHT : 0) + GAUGE_MARGIN
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
const _margins = _getMargins();
|
|
121
|
-
const _legendsHeight = !props.hideLegend ? 32 : 0;
|
|
122
|
-
const { chartContainerRef: _rootElem, legendsRef: _legendsRef } = (0, _hooks.useImageExport)(props.componentRef, props.hideLegend, false);
|
|
123
|
-
const _isRTL = (0, _index.useRtl)();
|
|
124
|
-
const [width, setWidth] = _react.useState(140 + _getMargins().left + _getMargins().right);
|
|
125
|
-
const [height, setHeight] = _react.useState(70 + _getMargins().top + _getMargins().bottom + _legendsHeight);
|
|
126
|
-
const [hoveredLegend, setHoveredLegend] = _react.useState('');
|
|
127
|
-
const [selectedLegends, setSelectedLegends] = _react.useState(((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends) || []);
|
|
128
|
-
const [focusedElement, setFocusedElement] = _react.useState('');
|
|
129
|
-
const [isPopoverOpen, setPopoverOpen] = _react.useState(false);
|
|
130
|
-
const [hoverXValue, setHoverXValue] = _react.useState('');
|
|
131
|
-
const [hoverYValues, setHoverYValues] = _react.useState([]);
|
|
132
|
-
const [refSelected, setRefSelected] = _react.useState(null);
|
|
133
|
-
const prevPropsRef = _react.useRef(null);
|
|
134
|
-
const _width = props.width || width;
|
|
135
|
-
const _height = props.height || height;
|
|
136
|
-
const _outerRadius = Math.min((_width - (_margins.left + _margins.right)) / 2, _height - (_margins.top + _margins.bottom + _legendsHeight));
|
|
137
|
-
const { arcWidth, chartValueSize } = _getStylesBasedOnBreakpoint();
|
|
138
|
-
const _innerRadius = _outerRadius - arcWidth;
|
|
139
|
-
let _minValue;
|
|
140
|
-
let _maxValue;
|
|
141
|
-
let _segments;
|
|
142
|
-
let _calloutAnchor = '';
|
|
143
|
-
_react.useEffect(()=>{
|
|
144
|
-
if (_rootElem.current) {
|
|
145
|
-
setWidth(_rootElem.current.clientWidth);
|
|
146
|
-
setHeight(_rootElem.current.clientHeight);
|
|
147
|
-
}
|
|
148
|
-
}, []);
|
|
149
|
-
_react.useEffect(()=>{
|
|
150
|
-
if (prevPropsRef.current) {
|
|
151
|
-
var _prevProps_legendProps, _props_legendProps;
|
|
152
|
-
const prevProps = prevPropsRef.current;
|
|
153
|
-
if (!(0, _index.areArraysEqual)((_prevProps_legendProps = prevProps.legendProps) === null || _prevProps_legendProps === void 0 ? void 0 : _prevProps_legendProps.selectedLegends, (_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.selectedLegends)) {
|
|
154
|
-
var _props_legendProps1;
|
|
155
|
-
setSelectedLegends(((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.selectedLegends) || []);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
prevPropsRef.current = props;
|
|
159
|
-
}, [
|
|
160
|
-
props
|
|
161
|
-
]);
|
|
162
|
-
const classes = (0, _useGaugeChartStylesstyles.useGaugeChartStyles)(props);
|
|
163
|
-
function _getStylesBasedOnBreakpoint() {
|
|
164
|
-
for(let index = BREAKPOINTS.length - 1; index >= 0; index -= 1){
|
|
165
|
-
if (_outerRadius >= BREAKPOINTS[index].minRadius) {
|
|
166
|
-
return {
|
|
167
|
-
arcWidth: BREAKPOINTS[index].arcWidth,
|
|
168
|
-
chartValueSize: BREAKPOINTS[index].fontSize
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
return {
|
|
173
|
-
arcWidth: BREAKPOINTS[0].arcWidth,
|
|
174
|
-
chartValueSize: BREAKPOINTS[0].fontSize
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function _processProps() {
|
|
178
|
-
const { minValue = 0, maxValue, segments, roundCorners } = props;
|
|
179
|
-
let total = minValue;
|
|
180
|
-
const processedSegments = segments.map((segment, index)=>{
|
|
181
|
-
const size = Math.max(segment.size, 0);
|
|
182
|
-
total += size;
|
|
183
|
-
return {
|
|
184
|
-
legend: segment.legend,
|
|
185
|
-
size,
|
|
186
|
-
color: typeof segment.color !== 'undefined' ? (0, _index.getColorFromToken)(segment.color, false) : (0, _index.getNextColor)(index, 0, false),
|
|
187
|
-
accessibilityData: segment.accessibilityData,
|
|
188
|
-
start: total - size,
|
|
189
|
-
end: total
|
|
190
|
-
};
|
|
191
|
-
});
|
|
192
|
-
if (typeof maxValue !== 'undefined' && total < maxValue) {
|
|
193
|
-
processedSegments.push({
|
|
194
|
-
legend: 'Unknown',
|
|
195
|
-
size: maxValue - total,
|
|
196
|
-
color: 'neutralLight',
|
|
197
|
-
start: total,
|
|
198
|
-
end: maxValue
|
|
199
|
-
});
|
|
200
|
-
total = maxValue;
|
|
201
|
-
}
|
|
202
|
-
const arcGenerator = (0, _d3shape.arc)().cornerRadius(roundCorners ? 3 : 0).padAngle(ARC_PADDING / _outerRadius).padRadius(_outerRadius);
|
|
203
|
-
const rtlSafeSegments = _isRTL ? Array.from(processedSegments).reverse() : processedSegments;
|
|
204
|
-
let prevAngle = -Math.PI / 2;
|
|
205
|
-
const arcs = rtlSafeSegments.map((segment, index)=>{
|
|
206
|
-
const endAngle = prevAngle + segment.size / (total - minValue) * Math.PI;
|
|
207
|
-
const d = arcGenerator({
|
|
208
|
-
innerRadius: _innerRadius,
|
|
209
|
-
outerRadius: _outerRadius,
|
|
210
|
-
startAngle: prevAngle,
|
|
211
|
-
endAngle
|
|
212
|
-
});
|
|
213
|
-
prevAngle = endAngle;
|
|
214
|
-
return {
|
|
215
|
-
d,
|
|
216
|
-
segmentIndex: _isRTL ? processedSegments.length - 1 - index : index,
|
|
217
|
-
startAngle: prevAngle - segment.size / (total - minValue) * Math.PI,
|
|
218
|
-
endAngle
|
|
219
|
-
};
|
|
220
|
-
});
|
|
221
|
-
_minValue = minValue;
|
|
222
|
-
_maxValue = total;
|
|
223
|
-
_segments = processedSegments;
|
|
224
|
-
return {
|
|
225
|
-
arcs
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
function _renderNeedle() {
|
|
229
|
-
const needleRotation = calcNeedleRotation(props.chartValue, _minValue, _maxValue);
|
|
230
|
-
const rtlSafeNeedleRotation = _isRTL ? 180 - needleRotation : needleRotation;
|
|
231
|
-
const strokeWidth = 2;
|
|
232
|
-
const halfStrokeWidth = strokeWidth / 2;
|
|
233
|
-
const needleLength = _outerRadius - _innerRadius + EXTRA_NEEDLE_LENGTH;
|
|
234
|
-
const needleId = `gauge-chart-needle`;
|
|
235
|
-
return /*#__PURE__*/ _react.createElement("g", {
|
|
236
|
-
transform: `rotate(${rtlSafeNeedleRotation}, 0, 0)`
|
|
237
|
-
}, /*#__PURE__*/ _react.createElement("path", {
|
|
238
|
-
d: `
|
|
239
|
-
M 0,${-halfStrokeWidth - 3}
|
|
240
|
-
L ${-needleLength},${-halfStrokeWidth - 1}
|
|
241
|
-
A ${halfStrokeWidth + 1},${halfStrokeWidth + 1},0,0,0,${-needleLength},${halfStrokeWidth + 1}
|
|
242
|
-
L 0,${halfStrokeWidth + 3}
|
|
243
|
-
A ${halfStrokeWidth + 3},${halfStrokeWidth + 3},0,0,0,0,${-halfStrokeWidth - 3}
|
|
244
|
-
`,
|
|
245
|
-
id: needleId,
|
|
246
|
-
strokeWidth: strokeWidth,
|
|
247
|
-
className: classes.needle,
|
|
248
|
-
transform: `translate(${-_innerRadius + EXTRA_NEEDLE_LENGTH / 2})`,
|
|
249
|
-
"data-is-focusable": true,
|
|
250
|
-
onFocus: (e)=>_handleFocus(e, 'Needle', needleId),
|
|
251
|
-
onBlur: _handleBlur,
|
|
252
|
-
onMouseEnter: (e)=>_handleMouseOver(e, 'Needle', needleId),
|
|
253
|
-
onMouseMove: (e)=>_handleMouseOver(e, 'Needle', needleId),
|
|
254
|
-
role: "img",
|
|
255
|
-
"aria-label": 'Current value: ' + getChartValueLabel(props.chartValue, _minValue, _maxValue, props.chartValueFormat)
|
|
256
|
-
}));
|
|
257
|
-
}
|
|
258
|
-
function _renderLegends() {
|
|
259
|
-
if (props.hideLegend) {
|
|
260
|
-
return null;
|
|
261
|
-
}
|
|
262
|
-
const legends = _segments.map((segment, index)=>{
|
|
263
|
-
const color = segment.color || (0, _index.getNextColor)(index, 0, false);
|
|
264
|
-
return {
|
|
265
|
-
title: segment.legend,
|
|
266
|
-
color,
|
|
267
|
-
hoverAction: ()=>{
|
|
268
|
-
setHoveredLegend(segment.legend);
|
|
269
|
-
},
|
|
270
|
-
onMouseOutAction: ()=>{
|
|
271
|
-
setHoveredLegend('');
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
});
|
|
275
|
-
return /*#__PURE__*/ _react.createElement("div", {
|
|
276
|
-
className: classes.legendsContainer
|
|
277
|
-
}, /*#__PURE__*/ _react.createElement(_index1.Legends, {
|
|
278
|
-
legends: legends,
|
|
279
|
-
centerLegends: true,
|
|
280
|
-
...props.legendProps,
|
|
281
|
-
onChange: _onLegendSelectionChange,
|
|
282
|
-
legendRef: _legendsRef
|
|
283
|
-
}));
|
|
284
|
-
}
|
|
285
|
-
function _onLegendSelectionChange(selectedLegends, event, currentLegend) {
|
|
286
|
-
var _props_legendProps, _props_legendProps1;
|
|
287
|
-
if ((_props_legendProps = props.legendProps) === null || _props_legendProps === void 0 ? void 0 : _props_legendProps.canSelectMultipleLegends) {
|
|
288
|
-
setSelectedLegends(selectedLegends);
|
|
289
|
-
} else {
|
|
290
|
-
setSelectedLegends(selectedLegends.slice(-1));
|
|
291
|
-
}
|
|
292
|
-
if ((_props_legendProps1 = props.legendProps) === null || _props_legendProps1 === void 0 ? void 0 : _props_legendProps1.onChange) {
|
|
293
|
-
props.legendProps.onChange(selectedLegends, event, currentLegend);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* This function checks if the given legend is highlighted or not.
|
|
298
|
-
* A legend can be highlighted in 2 ways:
|
|
299
|
-
* 1. selection: if the user clicks on it
|
|
300
|
-
* 2. hovering: if there is no selected legend and the user hovers over it
|
|
301
|
-
*/ function _legendHighlighted(legend) {
|
|
302
|
-
return _getHighlightedLegend().includes(legend);
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* This function checks if none of the legends is selected or hovered.
|
|
306
|
-
*/ function _noLegendHighlighted() {
|
|
307
|
-
return _getHighlightedLegend().length === 0;
|
|
308
|
-
}
|
|
309
|
-
function _getHighlightedLegend() {
|
|
310
|
-
return selectedLegends.length > 0 ? selectedLegends : hoveredLegend ? [
|
|
311
|
-
hoveredLegend
|
|
312
|
-
] : [];
|
|
313
|
-
}
|
|
314
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
315
|
-
function _handleFocus(focusEvent, focusedElement, elementId) {
|
|
316
|
-
_showCallout(focusEvent, focusedElement, true, elementId);
|
|
317
|
-
}
|
|
318
|
-
function _handleBlur() {
|
|
319
|
-
_hideCallout(true);
|
|
320
|
-
}
|
|
321
|
-
function _handleMouseOver(mouseEvent, hoveredElement, elementId) {
|
|
322
|
-
_showCallout(mouseEvent, hoveredElement, false, elementId);
|
|
323
|
-
}
|
|
324
|
-
function _handleMouseOut() {
|
|
325
|
-
_hideCallout(false);
|
|
326
|
-
}
|
|
327
|
-
function _handleCalloutDismiss() {
|
|
328
|
-
_hideCallout(false);
|
|
329
|
-
}
|
|
330
|
-
function _showCallout(event, legend, isFocusEvent, elementId) {
|
|
331
|
-
if (_calloutAnchor === legend) {
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
const targetElement = document.getElementById(elementId);
|
|
335
|
-
_calloutAnchor = legend;
|
|
336
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
337
|
-
const hoverXValue = 'Current value is ' + getChartValueLabel(props.chartValue, _minValue, _maxValue, props.chartValueFormat, true);
|
|
338
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
339
|
-
const hoverYValues = _segments.filter((segment)=>_noLegendHighlighted() || _legendHighlighted(segment.legend)).map((segment)=>{
|
|
340
|
-
const yValue = {
|
|
341
|
-
legend: segment.legend,
|
|
342
|
-
y: getSegmentLabel(segment, _minValue, _maxValue, props.variant),
|
|
343
|
-
color: segment.color
|
|
344
|
-
};
|
|
345
|
-
return yValue;
|
|
346
|
-
});
|
|
347
|
-
setPopoverOpen([
|
|
348
|
-
'Needle',
|
|
349
|
-
'Chart value'
|
|
350
|
-
].includes(legend) || _noLegendHighlighted() || _legendHighlighted(legend));
|
|
351
|
-
setRefSelected(targetElement);
|
|
352
|
-
setHoverXValue(hoverXValue);
|
|
353
|
-
setHoverYValues(hoverYValues);
|
|
354
|
-
if (isFocusEvent) {
|
|
355
|
-
setFocusedElement(legend);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function _hideCallout(isBlurEvent) {
|
|
359
|
-
_calloutAnchor = '';
|
|
360
|
-
setPopoverOpen(false);
|
|
361
|
-
setHoverXValue('');
|
|
362
|
-
setHoverYValues([]);
|
|
363
|
-
if (isBlurEvent) {
|
|
364
|
-
setFocusedElement('');
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
function _wrapContent(content, id, maxWidth) {
|
|
368
|
-
const textElement = (0, _d3selection.select)(`#${id}`);
|
|
369
|
-
textElement.text(content);
|
|
370
|
-
if (!textElement.node()) {
|
|
371
|
-
return false;
|
|
372
|
-
}
|
|
373
|
-
let isOverflowing = false;
|
|
374
|
-
let textLength = textElement.node().getComputedTextLength();
|
|
375
|
-
while(textLength > maxWidth && content.length > 0){
|
|
376
|
-
content = content.slice(0, -1);
|
|
377
|
-
textElement.text(content + '...');
|
|
378
|
-
isOverflowing = true;
|
|
379
|
-
textLength = textElement.node().getComputedTextLength();
|
|
380
|
-
}
|
|
381
|
-
return isOverflowing;
|
|
382
|
-
}
|
|
383
|
-
// TO DO: Write a common functional component for Multi value callout and divide sub count method
|
|
384
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
385
|
-
function _multiValueCallout(calloutProps) {
|
|
386
|
-
const yValueHoverSubCountsExists = _yValueHoverSubCountsExists(calloutProps.YValueHover);
|
|
387
|
-
return /*#__PURE__*/ _react.createElement("div", {
|
|
388
|
-
className: classes.calloutContentRoot
|
|
389
|
-
}, /*#__PURE__*/ _react.createElement("div", {
|
|
390
|
-
className: classes.calloutDateTimeContainer,
|
|
391
|
-
style: yValueHoverSubCountsExists ? {
|
|
392
|
-
marginBottom: '11px'
|
|
393
|
-
} : {}
|
|
394
|
-
}, /*#__PURE__*/ _react.createElement("div", {
|
|
395
|
-
className: classes.calloutContentX,
|
|
396
|
-
...(0, _index.getAccessibleDataObject)(calloutProps.xAxisCalloutAccessibilityData, 'text', false)
|
|
397
|
-
}, (0, _chartutilities.formatToLocaleString)(calloutProps.hoverXValue, props.culture))), /*#__PURE__*/ _react.createElement("div", {
|
|
398
|
-
className: classes.calloutInfoContainer,
|
|
399
|
-
style: yValueHoverSubCountsExists ? {
|
|
400
|
-
display: 'flex'
|
|
401
|
-
} : {}
|
|
402
|
-
}, calloutProps.YValueHover && calloutProps.YValueHover.map((yValue, index, yValues)=>{
|
|
403
|
-
const isLast = index + 1 === yValues.length;
|
|
404
|
-
const { shouldDrawBorderBottom = false } = yValue;
|
|
405
|
-
return /*#__PURE__*/ _react.createElement("div", {
|
|
406
|
-
...(0, _index.getAccessibleDataObject)(yValue.callOutAccessibilityData, 'text', false),
|
|
407
|
-
key: `callout-content-${index}`,
|
|
408
|
-
style: yValueHoverSubCountsExists ? {
|
|
409
|
-
display: 'inline-block',
|
|
410
|
-
...shouldDrawBorderBottom && {
|
|
411
|
-
paddingBottom: '10px'
|
|
412
|
-
}
|
|
413
|
-
} : {
|
|
414
|
-
...shouldDrawBorderBottom && {
|
|
415
|
-
paddingBottom: '10px'
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}, _getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast));
|
|
419
|
-
}), !!calloutProps.descriptionMessage && /*#__PURE__*/ _react.createElement("div", {
|
|
420
|
-
className: classes.descriptionMessage
|
|
421
|
-
}, calloutProps.descriptionMessage)));
|
|
422
|
-
}
|
|
423
|
-
function _yValueHoverSubCountsExists(yValueHover) {
|
|
424
|
-
if (yValueHover) {
|
|
425
|
-
return yValueHover.some((yValue)=>yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string');
|
|
426
|
-
}
|
|
427
|
-
return false;
|
|
428
|
-
}
|
|
429
|
-
function _getCalloutContent(xValue, index, yValueHoverSubCountsExists, isLast) {
|
|
430
|
-
const marginStyle = isLast ? {} : {
|
|
431
|
-
marginRight: '16px'
|
|
432
|
-
};
|
|
433
|
-
const toDrawShape = xValue.index !== undefined && xValue.index !== -1;
|
|
434
|
-
const { culture } = props;
|
|
435
|
-
const yValue = (0, _chartutilities.formatToLocaleString)(xValue.y, culture);
|
|
436
|
-
if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {
|
|
437
|
-
return /*#__PURE__*/ _react.createElement("div", {
|
|
438
|
-
style: yValueHoverSubCountsExists ? marginStyle : {}
|
|
439
|
-
}, yValueHoverSubCountsExists && /*#__PURE__*/ _react.createElement("div", {
|
|
440
|
-
className: "ms-fontWeight-semibold",
|
|
441
|
-
style: {
|
|
442
|
-
fontSize: '12pt'
|
|
443
|
-
}
|
|
444
|
-
}, xValue.legend, " (", yValue, ")"), /*#__PURE__*/ _react.createElement("div", {
|
|
445
|
-
id: `${index}_${xValue.y}`,
|
|
446
|
-
className: classes.calloutBlockContainer,
|
|
447
|
-
style: {
|
|
448
|
-
borderInlineStart: `4px solid ${xValue.color}`
|
|
449
|
-
}
|
|
450
|
-
}, toDrawShape && /*#__PURE__*/ _react.createElement(_index1.Shape, {
|
|
451
|
-
svgProps: {
|
|
452
|
-
className: classes.shapeStyles
|
|
453
|
-
},
|
|
454
|
-
pathProps: {
|
|
455
|
-
fill: xValue.color
|
|
456
|
-
},
|
|
457
|
-
shape: _index.Points[xValue.index % Object.keys(_index.pointTypes).length],
|
|
458
|
-
style: {
|
|
459
|
-
display: 'flex'
|
|
460
|
-
}
|
|
461
|
-
}), /*#__PURE__*/ _react.createElement("div", null, /*#__PURE__*/ _react.createElement("div", {
|
|
462
|
-
className: classes.calloutlegendText
|
|
463
|
-
}, " ", xValue.legend), /*#__PURE__*/ _react.createElement("div", {
|
|
464
|
-
className: classes.calloutContentY
|
|
465
|
-
}, (0, _chartutilities.formatToLocaleString)(xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y || xValue.data, culture)))));
|
|
466
|
-
} else {
|
|
467
|
-
const subcounts = xValue.yAxisCalloutData;
|
|
468
|
-
return /*#__PURE__*/ _react.createElement("div", {
|
|
469
|
-
style: marginStyle
|
|
470
|
-
}, /*#__PURE__*/ _react.createElement("div", {
|
|
471
|
-
className: "ms-fontWeight-semibold",
|
|
472
|
-
style: {
|
|
473
|
-
fontSize: '12pt'
|
|
474
|
-
}
|
|
475
|
-
}, xValue.legend, " (", yValue, ")"), Object.keys(subcounts).map((subcountName)=>{
|
|
476
|
-
return /*#__PURE__*/ _react.createElement("div", {
|
|
477
|
-
key: subcountName,
|
|
478
|
-
className: classes.calloutBlockContainer
|
|
479
|
-
}, /*#__PURE__*/ _react.createElement("div", {
|
|
480
|
-
className: classes.calloutlegendText
|
|
481
|
-
}, ' ', (0, _chartutilities.formatToLocaleString)(subcountName, culture)), /*#__PURE__*/ _react.createElement("div", {
|
|
482
|
-
className: classes.calloutContentY
|
|
483
|
-
}, (0, _chartutilities.formatToLocaleString)(subcounts[subcountName], culture)));
|
|
484
|
-
}));
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function _getChartTitle() {
|
|
488
|
-
const { chartTitle } = props;
|
|
489
|
-
return (chartTitle ? `${chartTitle}. ` : '') + `Gauge chart with ${_segments.length} segments. `;
|
|
490
|
-
}
|
|
491
|
-
const { arcs } = _processProps();
|
|
492
|
-
const arrowAttributes = (0, _reacttabster.useArrowNavigationGroup)({
|
|
493
|
-
circular: true,
|
|
494
|
-
axis: 'horizontal'
|
|
495
|
-
});
|
|
496
|
-
return /*#__PURE__*/ _react.createElement("div", {
|
|
497
|
-
className: classes.root,
|
|
498
|
-
ref: (el)=>{
|
|
499
|
-
_rootElem.current = el;
|
|
500
|
-
}
|
|
501
|
-
}, /*#__PURE__*/ _react.createElement("div", {
|
|
502
|
-
className: classes.chartWrapper,
|
|
503
|
-
...arrowAttributes
|
|
504
|
-
}, /*#__PURE__*/ _react.createElement("svg", {
|
|
505
|
-
className: classes.chart,
|
|
506
|
-
width: _width,
|
|
507
|
-
height: _height - _legendsHeight,
|
|
508
|
-
role: "region",
|
|
509
|
-
"aria-label": _getChartTitle(),
|
|
510
|
-
onMouseLeave: _handleMouseOut
|
|
511
|
-
}, /*#__PURE__*/ _react.createElement("g", {
|
|
512
|
-
transform: `translate(${_width / 2}, ${_height - (_margins.bottom + _legendsHeight)})`
|
|
513
|
-
}, props.chartTitle && /*#__PURE__*/ _react.createElement(_index.ChartTitle, {
|
|
514
|
-
title: props.chartTitle,
|
|
515
|
-
x: 0,
|
|
516
|
-
y: -(_outerRadius + TITLE_OFFSET),
|
|
517
|
-
className: classes.chartTitle,
|
|
518
|
-
titleStyles: props.titleStyles,
|
|
519
|
-
tooltipClassName: classes.svgTooltip
|
|
520
|
-
}), !props.hideMinMax && /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("text", {
|
|
521
|
-
x: (_isRTL ? 1 : -1) * (_outerRadius + LABEL_OFFSET),
|
|
522
|
-
y: 0,
|
|
523
|
-
textAnchor: "end",
|
|
524
|
-
className: classes.limits,
|
|
525
|
-
role: "img",
|
|
526
|
-
"aria-label": `Min value: ${_minValue}`
|
|
527
|
-
}, (0, _index.formatScientificLimitWidth)(_minValue)), /*#__PURE__*/ _react.createElement("text", {
|
|
528
|
-
x: (_isRTL ? -1 : 1) * (_outerRadius + LABEL_OFFSET),
|
|
529
|
-
y: 0,
|
|
530
|
-
textAnchor: "start",
|
|
531
|
-
className: classes.limits,
|
|
532
|
-
role: "img",
|
|
533
|
-
"aria-label": `Max value: ${_maxValue}`
|
|
534
|
-
}, (0, _index.formatScientificLimitWidth)(_maxValue))), arcs.map((arc, index)=>{
|
|
535
|
-
const segment = _segments[arc.segmentIndex];
|
|
536
|
-
const arcId = `gauge-chart-arc-${index}`;
|
|
537
|
-
return /*#__PURE__*/ _react.createElement(_react.Fragment, {
|
|
538
|
-
key: index
|
|
539
|
-
}, /*#__PURE__*/ _react.createElement("path", {
|
|
540
|
-
d: arc.d,
|
|
541
|
-
id: arcId,
|
|
542
|
-
strokeWidth: focusedElement === segment.legend ? ARC_PADDING : 0,
|
|
543
|
-
className: classes.segment,
|
|
544
|
-
fill: segment.color,
|
|
545
|
-
opacity: _legendHighlighted(segment.legend) || _noLegendHighlighted() ? 1 : 0.1,
|
|
546
|
-
...(0, _index.getAccessibleDataObject)({
|
|
547
|
-
ariaLabel: getSegmentLabel(segment, _minValue, _maxValue, props.variant, true),
|
|
548
|
-
...segment.accessibilityData
|
|
549
|
-
}, 'img', true),
|
|
550
|
-
onFocus: (e)=>_handleFocus(e, segment.legend, arcId),
|
|
551
|
-
onBlur: _handleBlur,
|
|
552
|
-
onMouseEnter: (e)=>_handleMouseOver(e, segment.legend, arcId),
|
|
553
|
-
onMouseLeave: (e)=>_handleCalloutDismiss(),
|
|
554
|
-
onMouseMove: (e)=>_handleMouseOver(e, segment.legend, arcId),
|
|
555
|
-
tabIndex: _legendHighlighted(segment.legend) || _noLegendHighlighted() ? 0 : undefined
|
|
556
|
-
}));
|
|
557
|
-
}), _renderNeedle(), /*#__PURE__*/ _react.createElement("g", {
|
|
558
|
-
onMouseEnter: (e)=>_handleMouseOver(e, 'Chart value'),
|
|
559
|
-
onMouseMove: (e)=>_handleMouseOver(e, 'Chart value')
|
|
560
|
-
}, /*#__PURE__*/ _react.createElement(_SVGTooltipText.SVGTooltipText, {
|
|
561
|
-
content: getChartValueLabel(props.chartValue, _minValue, _maxValue, props.chartValueFormat),
|
|
562
|
-
textProps: {
|
|
563
|
-
x: 0,
|
|
564
|
-
y: 0,
|
|
565
|
-
textAnchor: 'middle',
|
|
566
|
-
className: classes.chartValue,
|
|
567
|
-
fontSize: chartValueSize,
|
|
568
|
-
'aria-hidden': 'true'
|
|
569
|
-
},
|
|
570
|
-
maxWidth: _innerRadius * 2 - 24,
|
|
571
|
-
wrapContent: _wrapContent
|
|
572
|
-
})), props.sublabel && /*#__PURE__*/ _react.createElement(_SVGTooltipText.SVGTooltipText, {
|
|
573
|
-
content: props.sublabel,
|
|
574
|
-
textProps: {
|
|
575
|
-
x: 0,
|
|
576
|
-
y: 4,
|
|
577
|
-
textAnchor: 'middle',
|
|
578
|
-
dominantBaseline: 'hanging',
|
|
579
|
-
className: classes.sublabel
|
|
580
|
-
},
|
|
581
|
-
maxWidth: _innerRadius * 2,
|
|
582
|
-
wrapContent: _wrapContent
|
|
583
|
-
})))), _renderLegends(), !props.hideTooltip && isPopoverOpen && /*#__PURE__*/ _react.createElement(_ChartPopover.ChartPopover, {
|
|
584
|
-
...props.calloutProps,
|
|
585
|
-
positioning: {
|
|
586
|
-
target: refSelected
|
|
587
|
-
},
|
|
588
|
-
isPopoverOpen: isPopoverOpen,
|
|
589
|
-
customCallout: {
|
|
590
|
-
customizedCallout: _multiValueCallout({
|
|
591
|
-
hoverXValue,
|
|
592
|
-
YValueHover: hoverYValues
|
|
593
|
-
})
|
|
594
|
-
}
|
|
595
|
-
}));
|
|
596
|
-
});
|
|
597
|
-
GaugeChart.displayName = 'GaugeChart';
|