@fluentui/react-charts 1.1.0 → 9.0.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 +181 -11
- package/LICENSE +11 -17
- package/README.md +174 -23
- package/dist/index.d.ts +2143 -0
- package/lib/CartesianChart.js +1 -0
- package/lib/CartesianChart.js.map +1 -0
- package/lib/DeclarativeChart.js +1 -0
- package/lib/DeclarativeChart.js.map +1 -0
- package/lib/DonutChart.js +1 -0
- package/lib/DonutChart.js.map +1 -0
- package/lib/HorizontalBarChart.js +1 -0
- package/lib/HorizontalBarChart.js.map +1 -0
- package/lib/Legends.js +1 -0
- package/lib/Legends.js.map +1 -0
- package/lib/LineChart.js +1 -0
- package/lib/LineChart.js.map +1 -0
- package/lib/Popover.js +1 -0
- package/lib/Popover.js.map +1 -0
- package/lib/ResponsiveContainer.js +1 -0
- package/lib/ResponsiveContainer.js.map +1 -0
- package/lib/Sparkline.js +1 -0
- package/lib/Sparkline.js.map +1 -0
- package/lib/VerticalBarChart.js +1 -0
- package/lib/VerticalBarChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.js +462 -0
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.types.js +1 -0
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib/components/CommonComponents/ChartPopover.js +187 -0
- package/lib/components/CommonComponents/ChartPopover.js.map +1 -0
- package/lib/components/CommonComponents/ChartPopover.types.js +1 -0
- package/lib/components/CommonComponents/ChartPopover.types.js.map +1 -0
- package/lib/components/CommonComponents/index.js +4 -0
- package/lib/components/CommonComponents/index.js.map +1 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js +229 -0
- package/lib/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js +178 -0
- package/lib/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
- package/lib/components/DeclarativeChart/DeclarativeChart.js +150 -0
- package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
- package/lib/components/DeclarativeChart/PlotlySchema.js +7 -0
- package/lib/components/DeclarativeChart/PlotlySchema.js.map +1 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +400 -0
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
- package/lib/components/DeclarativeChart/imageExporter.js +221 -0
- package/lib/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib/components/DeclarativeChart/index.js +1 -0
- package/lib/components/DeclarativeChart/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.js +110 -0
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.js +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib/components/DonutChart/Arc/index.js +2 -0
- package/lib/components/DonutChart/Arc/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js +54 -0
- package/lib/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.js +291 -0
- package/lib/components/DonutChart/DonutChart.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.types.js +1 -0
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.js +72 -0
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.js +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/index.js +2 -0
- package/lib/components/DonutChart/Pie/index.js.map +1 -0
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js +44 -0
- package/lib/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
- package/lib/components/DonutChart/index.js +3 -0
- package/lib/components/DonutChart/index.js.map +1 -0
- package/lib/components/DonutChart/useDonutChartStyles.styles.js +58 -0
- package/lib/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js +402 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib/components/HorizontalBarChart/index.js +3 -0
- package/lib/components/HorizontalBarChart/index.js.map +1 -0
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +163 -0
- package/lib/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
- package/lib/components/Legends/Legends.js +302 -0
- package/lib/components/Legends/Legends.js.map +1 -0
- package/lib/components/Legends/Legends.types.js +1 -0
- package/lib/components/Legends/Legends.types.js.map +1 -0
- package/lib/components/Legends/OverflowMenu.js +25 -0
- package/lib/components/Legends/OverflowMenu.js.map +1 -0
- package/lib/components/Legends/index.js +3 -0
- package/lib/components/Legends/index.js.map +1 -0
- package/lib/components/Legends/shape.js +35 -0
- package/lib/components/Legends/shape.js.map +1 -0
- package/lib/components/Legends/useLegendsStyles.styles.js +147 -0
- package/lib/components/Legends/useLegendsStyles.styles.js.map +1 -0
- package/lib/components/LineChart/LineChart.js +1026 -0
- package/lib/components/LineChart/LineChart.js.map +1 -0
- package/lib/components/LineChart/LineChart.types.js +3 -0
- package/lib/components/LineChart/LineChart.types.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +119 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js +57 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js +40 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib/components/LineChart/index.js +4 -0
- package/lib/components/LineChart/index.js.map +1 -0
- package/lib/components/LineChart/useLineChartStyles.styles.js +65 -0
- package/lib/components/LineChart/useLineChartStyles.styles.js.map +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js +65 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +1 -0
- package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
- package/lib/components/ResponsiveContainer/index.js +1 -0
- package/lib/components/ResponsiveContainer/index.js.map +1 -0
- package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +23 -0
- package/lib/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.js +119 -0
- package/lib/components/Sparkline/Sparkline.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.types.js +4 -0
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib/components/Sparkline/index.js +3 -0
- package/lib/components/Sparkline/index.js.map +1 -0
- package/lib/components/Sparkline/useSparklineStyles.styles.js +49 -0
- package/lib/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js +849 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js +4 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib/components/VerticalBarChart/index.js +3 -0
- package/lib/components/VerticalBarChart/index.js.map +1 -0
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +74 -0
- package/lib/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
- package/lib/index.js +12 -8
- package/lib/index.js.map +1 -1
- package/lib/types/DataPoint.js +3 -0
- package/lib/types/DataPoint.js.map +1 -0
- package/lib/types/EventAnnotation.js +1 -0
- package/lib/types/EventAnnotation.js.map +1 -0
- package/lib/types/LegendDataItem.js +1 -0
- package/lib/types/LegendDataItem.js.map +1 -0
- package/lib/types/index.js +2 -2
- package/lib/types/index.js.map +1 -1
- package/lib/utilities/FocusableTooltipText.js +65 -0
- package/lib/utilities/FocusableTooltipText.js.map +1 -0
- package/lib/utilities/KeyCodes.js +8 -0
- package/lib/utilities/KeyCodes.js.map +1 -0
- package/lib/utilities/SVGTooltipText.js +138 -0
- package/lib/utilities/SVGTooltipText.js.map +1 -0
- package/lib/utilities/async-utils.js +380 -0
- package/lib/utilities/async-utils.js.map +1 -0
- package/lib/utilities/colors.js +249 -0
- package/lib/utilities/colors.js.map +1 -0
- package/lib/utilities/getWindow.js +25 -0
- package/lib/utilities/getWindow.js.map +1 -0
- package/lib/utilities/index.js +3 -0
- package/lib/utilities/index.js.map +1 -0
- package/lib/utilities/locale-util.js +15 -0
- package/lib/utilities/locale-util.js.map +1 -0
- package/lib/utilities/overflow-utils.js +27 -0
- package/lib/utilities/overflow-utils.js.map +1 -0
- package/lib/utilities/test-data.js +276 -0
- package/lib/utilities/test-data.js.map +1 -0
- package/lib/utilities/utilities.js +1215 -0
- package/lib/utilities/utilities.js.map +1 -0
- package/lib/utilities/vbc-utils.js +27 -0
- package/lib/utilities/vbc-utils.js.map +1 -0
- package/lib-commonjs/CartesianChart.js +6 -0
- package/lib-commonjs/CartesianChart.js.map +1 -0
- package/lib-commonjs/DeclarativeChart.js +6 -0
- package/lib-commonjs/DeclarativeChart.js.map +1 -0
- package/lib-commonjs/DonutChart.js +6 -0
- package/lib-commonjs/DonutChart.js.map +1 -0
- package/lib-commonjs/HorizontalBarChart.js +6 -0
- package/lib-commonjs/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/Legends.js +6 -0
- package/lib-commonjs/Legends.js.map +1 -0
- package/lib-commonjs/LineChart.js +6 -0
- package/lib-commonjs/LineChart.js.map +1 -0
- package/lib-commonjs/Popover.js +6 -0
- package/lib-commonjs/Popover.js.map +1 -0
- package/lib-commonjs/ResponsiveContainer.js +6 -0
- package/lib-commonjs/ResponsiveContainer.js.map +1 -0
- package/lib-commonjs/Sparkline.js +6 -0
- package/lib-commonjs/Sparkline.js.map +1 -0
- package/lib-commonjs/VerticalBarChart.js +6 -0
- package/lib-commonjs/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +469 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +6 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.js +197 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js +4 -0
- package/lib-commonjs/components/CommonComponents/ChartPopover.types.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/index.js +9 -0
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js +356 -0
- package/lib-commonjs/components/CommonComponents/useCartesianChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js +261 -0
- package/lib-commonjs/components/CommonComponents/useChartPopoverStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +158 -0
- package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js +10 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +445 -0
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js +231 -0
- package/lib-commonjs/components/DeclarativeChart/imageExporter.js.map +1 -0
- package/lib-commonjs/components/DeclarativeChart/index.js +6 -0
- package/lib-commonjs/components/DeclarativeChart/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +117 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +4 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js +7 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js +83 -0
- package/lib-commonjs/components/DonutChart/Arc/useArcStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js +298 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js +6 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +79 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +4 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js +7 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js +61 -0
- package/lib-commonjs/components/DonutChart/Pie/usePieStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/index.js +8 -0
- package/lib-commonjs/components/DonutChart/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js +82 -0
- package/lib-commonjs/components/DonutChart/useDonutChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +408 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +17 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js +8 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js +251 -0
- package/lib-commonjs/components/HorizontalBarChart/useHorizontalBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.js +313 -0
- package/lib-commonjs/components/Legends/Legends.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.types.js +6 -0
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
- package/lib-commonjs/components/Legends/OverflowMenu.js +36 -0
- package/lib-commonjs/components/Legends/OverflowMenu.js.map +1 -0
- package/lib-commonjs/components/Legends/index.js +8 -0
- package/lib-commonjs/components/Legends/index.js.map +1 -0
- package/lib-commonjs/components/Legends/shape.js +46 -0
- package/lib-commonjs/components/Legends/shape.js.map +1 -0
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js +304 -0
- package/lib-commonjs/components/Legends/useLegendsStyles.styles.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.js +1032 -0
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js +6 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +129 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +68 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +51 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib-commonjs/components/LineChart/index.js +9 -0
- package/lib-commonjs/components/LineChart/index.js.map +1 -0
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js +96 -0
- package/lib-commonjs/components/LineChart/useLineChartStyles.styles.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +76 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +6 -0
- package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/index.js +6 -0
- package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -0
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js +47 -0
- package/lib-commonjs/components/ResponsiveContainer/useResponsiveContainerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js +125 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js +7 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib-commonjs/components/Sparkline/index.js +8 -0
- package/lib-commonjs/components/Sparkline/index.js.map +1 -0
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js +77 -0
- package/lib-commonjs/components/Sparkline/useSparklineStyles.styles.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +851 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +7 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/index.js +8 -0
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js +117 -0
- package/lib-commonjs/components/VerticalBarChart/useVerticalBarChartStyles.styles.js.map +1 -0
- package/lib-commonjs/index.js +17 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/types/DataPoint.js +6 -0
- package/lib-commonjs/types/DataPoint.js.map +1 -0
- package/lib-commonjs/types/EventAnnotation.js +6 -0
- package/lib-commonjs/types/EventAnnotation.js.map +1 -0
- package/lib-commonjs/types/LegendDataItem.js +4 -0
- package/lib-commonjs/types/LegendDataItem.js.map +1 -0
- package/lib-commonjs/types/index.js +7 -0
- package/lib-commonjs/types/index.js.map +1 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js +75 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
- package/lib-commonjs/utilities/KeyCodes.js +18 -0
- package/lib-commonjs/utilities/KeyCodes.js.map +1 -0
- package/lib-commonjs/utilities/SVGTooltipText.js +148 -0
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -0
- package/lib-commonjs/utilities/async-utils.js +382 -0
- package/lib-commonjs/utilities/async-utils.js.map +1 -0
- package/lib-commonjs/utilities/colors.js +270 -0
- package/lib-commonjs/utilities/colors.js.map +1 -0
- package/lib-commonjs/utilities/getWindow.js +28 -0
- package/lib-commonjs/utilities/getWindow.js.map +1 -0
- package/lib-commonjs/utilities/index.js +8 -0
- package/lib-commonjs/utilities/index.js.map +1 -0
- package/lib-commonjs/utilities/locale-util.js +25 -0
- package/lib-commonjs/utilities/locale-util.js.map +1 -0
- package/lib-commonjs/utilities/overflow-utils.js +36 -0
- package/lib-commonjs/utilities/overflow-utils.js.map +1 -0
- package/lib-commonjs/utilities/test-data.js +324 -0
- package/lib-commonjs/utilities/test-data.js.map +1 -0
- package/lib-commonjs/utilities/utilities.js +1184 -0
- package/lib-commonjs/utilities/utilities.js.map +1 -0
- package/lib-commonjs/utilities/vbc-utils.js +45 -0
- package/lib-commonjs/utilities/vbc-utils.js.map +1 -0
- package/package.json +80 -71
- package/CHANGELOG.json +0 -50
- package/lib/chart/chart-legend.d.ts +0 -6
- package/lib/chart/chart-legend.js +0 -446
- package/lib/chart/chart-legend.js.map +0 -1
- package/lib/chart/chart-render.d.ts +0 -3
- package/lib/chart/chart-render.js +0 -50
- package/lib/chart/chart-render.js.map +0 -1
- package/lib/chart/chart.d.ts +0 -3
- package/lib/chart/chart.js +0 -11
- package/lib/chart/chart.js.map +0 -1
- package/lib/chart/index.d.ts +0 -1
- package/lib/chart/index.js +0 -2
- package/lib/chart/index.js.map +0 -1
- package/lib/index.d.ts +0 -7
- package/lib/lib/builder.d.ts +0 -82
- package/lib/lib/builder.js +0 -341
- package/lib/lib/builder.js.map +0 -1
- package/lib/lib/datasets.d.ts +0 -99
- package/lib/lib/datasets.js +0 -240
- package/lib/lib/datasets.js.map +0 -1
- package/lib/lib/patterns.d.ts +0 -43
- package/lib/lib/patterns.js +0 -433
- package/lib/lib/patterns.js.map +0 -1
- package/lib/lib/plugins.d.ts +0 -11
- package/lib/lib/plugins.js +0 -403
- package/lib/lib/plugins.js.map +0 -1
- package/lib/lib/settings.d.ts +0 -11
- package/lib/lib/settings.js +0 -342
- package/lib/lib/settings.js.map +0 -1
- package/lib/lib/storybook.d.ts +0 -11
- package/lib/lib/storybook.js +0 -13
- package/lib/lib/storybook.js.map +0 -1
- package/lib/lib/utils.d.ts +0 -34
- package/lib/lib/utils.js +0 -253
- package/lib/lib/utils.js.map +0 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/types.d.ts +0 -94
- package/lib/types/types.js +0 -41
- package/lib/types/types.js.map +0 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "ChartPopover", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ChartPopover;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _reactpopover = require("@fluentui/react-popover");
|
|
14
|
+
const _react1 = require("@griffel/react");
|
|
15
|
+
const _reacttheme = require("@fluentui/react-theme");
|
|
16
|
+
const _reactutilities = require("@fluentui/react-utilities");
|
|
17
|
+
const _index = require("../../utilities/index");
|
|
18
|
+
const _localeutil = require("../../utilities/locale-util");
|
|
19
|
+
const _shape = require("../Legends/shape");
|
|
20
|
+
const _useChartPopoverStylesstyles = require("./useChartPopoverStyles.styles");
|
|
21
|
+
const ChartPopover = /*#__PURE__*/ _react.forwardRef((props, forwardedRef)=>{
|
|
22
|
+
var _props_customCallout;
|
|
23
|
+
const virtualElement = {
|
|
24
|
+
getBoundingClientRect: ()=>({
|
|
25
|
+
top: props.clickPosition.y,
|
|
26
|
+
left: props.clickPosition.x,
|
|
27
|
+
right: props.clickPosition.x,
|
|
28
|
+
bottom: props.clickPosition.y,
|
|
29
|
+
x: props.clickPosition.x,
|
|
30
|
+
y: props.clickPosition.y,
|
|
31
|
+
width: 0,
|
|
32
|
+
height: 0
|
|
33
|
+
})
|
|
34
|
+
};
|
|
35
|
+
props = {
|
|
36
|
+
...props,
|
|
37
|
+
...(_props_customCallout = props.customCallout) === null || _props_customCallout === void 0 ? void 0 : _props_customCallout.customCalloutProps
|
|
38
|
+
};
|
|
39
|
+
const classes = (0, _useChartPopoverStylesstyles.usePopoverStyles_unstable)(props);
|
|
40
|
+
const legend = props.xCalloutValue ? props.xCalloutValue : props.legend;
|
|
41
|
+
const YValue = props.yCalloutValue ? props.yCalloutValue : props.YValue;
|
|
42
|
+
return /*#__PURE__*/ _react.createElement("div", {
|
|
43
|
+
id: (0, _reactutilities.useId)('callout'),
|
|
44
|
+
ref: forwardedRef,
|
|
45
|
+
className: classes.calloutContainer
|
|
46
|
+
}, /*#__PURE__*/ _react.createElement(_reactpopover.Popover, {
|
|
47
|
+
positioning: {
|
|
48
|
+
target: virtualElement,
|
|
49
|
+
autoSize: 'always',
|
|
50
|
+
offset: 20,
|
|
51
|
+
coverTarget: false
|
|
52
|
+
},
|
|
53
|
+
open: props.isPopoverOpen,
|
|
54
|
+
inline: true
|
|
55
|
+
}, /*#__PURE__*/ _react.createElement(_reactpopover.PopoverSurface, null, props.customCallout && props.customCallout.customizedCallout && props.customCallout.customizedCallout, (!props.customCallout || !props.customCallout.customizedCallout) && props.isCalloutForStack && _multiValueCallout(), (!props.customCallout || !props.customCallout.customizedCallout) && !props.isCalloutForStack && /*#__PURE__*/ _react.createElement("div", {
|
|
56
|
+
className: classes.calloutContentRoot
|
|
57
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
58
|
+
className: classes.calloutDateTimeContainer
|
|
59
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
60
|
+
className: classes.calloutContentX
|
|
61
|
+
}, props.XValue, " ")), /*#__PURE__*/ _react.createElement("div", {
|
|
62
|
+
className: classes.calloutInfoContainer,
|
|
63
|
+
style: {
|
|
64
|
+
...props.ratio && {
|
|
65
|
+
display: 'flex',
|
|
66
|
+
alignItems: 'flex-end'
|
|
67
|
+
},
|
|
68
|
+
borderLeft: `4px solid ${props.color}`
|
|
69
|
+
}
|
|
70
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
71
|
+
className: classes.calloutBlockContainer
|
|
72
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
73
|
+
className: classes.calloutlegendText
|
|
74
|
+
}, (0, _localeutil.convertToLocaleString)(legend, props.culture)), /*#__PURE__*/ _react.createElement("div", {
|
|
75
|
+
className: classes.calloutContentY,
|
|
76
|
+
style: {
|
|
77
|
+
color: props.color ? props.color : _reacttheme.tokens.colorNeutralForeground1
|
|
78
|
+
}
|
|
79
|
+
}, (0, _localeutil.convertToLocaleString)(YValue, props.culture))), !!props.ratio && /*#__PURE__*/ _react.createElement("div", {
|
|
80
|
+
className: classes.ratio
|
|
81
|
+
}, /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("span", {
|
|
82
|
+
className: classes.numerator
|
|
83
|
+
}, (0, _localeutil.convertToLocaleString)(props.ratio[0], props.culture)), "/", /*#__PURE__*/ _react.createElement("span", {
|
|
84
|
+
className: classes.denominator
|
|
85
|
+
}, (0, _localeutil.convertToLocaleString)(props.ratio[1], props.culture))))), !!props.descriptionMessage && /*#__PURE__*/ _react.createElement("div", {
|
|
86
|
+
className: classes.descriptionMessage
|
|
87
|
+
}, props.descriptionMessage)))));
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
|
+
function _multiValueCallout() {
|
|
90
|
+
var _yValueHoverSubCountsExists1;
|
|
91
|
+
const yValueHoverSubCountsExists = (_yValueHoverSubCountsExists1 = _yValueHoverSubCountsExists(props.YValueHover)) !== null && _yValueHoverSubCountsExists1 !== void 0 ? _yValueHoverSubCountsExists1 : false;
|
|
92
|
+
return /*#__PURE__*/ _react.createElement("div", {
|
|
93
|
+
className: classes.calloutContentRoot
|
|
94
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
95
|
+
className: classes.calloutDateTimeContainer,
|
|
96
|
+
style: yValueHoverSubCountsExists ? {
|
|
97
|
+
marginBottom: '11px'
|
|
98
|
+
} : {}
|
|
99
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
100
|
+
className: classes.calloutContentX,
|
|
101
|
+
...(0, _index.getAccessibleDataObject)(props.xAxisCalloutAccessibilityData, 'text', false)
|
|
102
|
+
}, (0, _localeutil.convertToLocaleString)(props.hoverXValue, props.culture))), /*#__PURE__*/ _react.createElement("div", {
|
|
103
|
+
style: yValueHoverSubCountsExists ? {
|
|
104
|
+
display: 'flex'
|
|
105
|
+
} : {}
|
|
106
|
+
}, props.YValueHover && props.YValueHover.map((yValue, index, yValues)=>{
|
|
107
|
+
const isLast = index + 1 === yValues.length;
|
|
108
|
+
const { shouldDrawBorderBottom = false } = yValue;
|
|
109
|
+
return /*#__PURE__*/ _react.createElement("div", {
|
|
110
|
+
...(0, _index.getAccessibleDataObject)(yValue.callOutAccessibilityData, 'text', false),
|
|
111
|
+
key: `callout-content-${index}`,
|
|
112
|
+
style: yValueHoverSubCountsExists ? {
|
|
113
|
+
display: 'inline-block',
|
|
114
|
+
...shouldDrawBorderBottom && {
|
|
115
|
+
borderBottom: `1px solid ${_reacttheme.tokens.colorNeutralStroke2}`,
|
|
116
|
+
paddingBottom: '10px'
|
|
117
|
+
}
|
|
118
|
+
} : {
|
|
119
|
+
...shouldDrawBorderBottom && {
|
|
120
|
+
borderBottom: `1px solid ${_reacttheme.tokens.colorNeutralStroke2}`,
|
|
121
|
+
paddingBottom: '10px'
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}, _getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast));
|
|
125
|
+
}), !!props.descriptionMessage && /*#__PURE__*/ _react.createElement("div", {
|
|
126
|
+
className: classes.descriptionMessage
|
|
127
|
+
}, props.descriptionMessage)));
|
|
128
|
+
}
|
|
129
|
+
function _yValueHoverSubCountsExists(yValueHover) {
|
|
130
|
+
return yValueHover && yValueHover.some((yValue)=>yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string');
|
|
131
|
+
}
|
|
132
|
+
function _getCalloutContent(xValue, index, yValueHoverSubCountsExists, isLast) {
|
|
133
|
+
const marginStyle = isLast ? {} : {
|
|
134
|
+
marginRight: '16px'
|
|
135
|
+
};
|
|
136
|
+
const toDrawShape = xValue.index !== undefined && xValue.index !== -1;
|
|
137
|
+
const { culture } = props;
|
|
138
|
+
const yValue = (0, _localeutil.convertToLocaleString)(xValue.y, culture);
|
|
139
|
+
if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {
|
|
140
|
+
var _xValue_y;
|
|
141
|
+
return /*#__PURE__*/ _react.createElement("div", {
|
|
142
|
+
style: yValueHoverSubCountsExists ? marginStyle : {}
|
|
143
|
+
}, yValueHoverSubCountsExists && /*#__PURE__*/ _react.createElement("div", {
|
|
144
|
+
className: "ms-fontWeight-semibold",
|
|
145
|
+
style: {
|
|
146
|
+
fontSize: '12pt'
|
|
147
|
+
}
|
|
148
|
+
}, xValue.legend, " (", yValue, ")"), /*#__PURE__*/ _react.createElement("div", {
|
|
149
|
+
id: `${index}_${xValue.y}`,
|
|
150
|
+
className: classes.calloutBlockContainer,
|
|
151
|
+
style: {
|
|
152
|
+
marginTop: props.XValue ? '13px' : 'unset',
|
|
153
|
+
...!toDrawShape ? {
|
|
154
|
+
borderLeft: `4px solid ${xValue.color}`
|
|
155
|
+
} : {}
|
|
156
|
+
}
|
|
157
|
+
}, toDrawShape && /*#__PURE__*/ _react.createElement(_shape.Shape, {
|
|
158
|
+
svgProps: {
|
|
159
|
+
className: classes.shapeStyles
|
|
160
|
+
},
|
|
161
|
+
pathProps: {
|
|
162
|
+
fill: xValue.color
|
|
163
|
+
},
|
|
164
|
+
shape: _index.Points[xValue.index % Object.keys(_index.pointTypes).length]
|
|
165
|
+
}), /*#__PURE__*/ _react.createElement("div", {
|
|
166
|
+
className: (0, _react1.mergeClasses)(classes.calloutBlockContainer, toDrawShape ? classes.calloutBlockContainertoDrawShapetrue : classes.calloutBlockContainertoDrawShapefalse)
|
|
167
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
168
|
+
className: classes.calloutlegendText
|
|
169
|
+
}, " ", xValue.legend), /*#__PURE__*/ _react.createElement("div", {
|
|
170
|
+
className: classes.calloutContentY
|
|
171
|
+
}, (0, _localeutil.convertToLocaleString)(xValue.yAxisCalloutData ? xValue.yAxisCalloutData : (_xValue_y = xValue.y) !== null && _xValue_y !== void 0 ? _xValue_y : xValue.data, culture)))));
|
|
172
|
+
} else {
|
|
173
|
+
const subcounts = xValue.yAxisCalloutData;
|
|
174
|
+
return /*#__PURE__*/ _react.createElement("div", {
|
|
175
|
+
style: marginStyle
|
|
176
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
177
|
+
className: "ms-fontWeight-semibold",
|
|
178
|
+
style: {
|
|
179
|
+
fontSize: '12pt'
|
|
180
|
+
}
|
|
181
|
+
}, xValue.legend, " (", yValue, ")"), Object.keys(subcounts).map((subcountName)=>{
|
|
182
|
+
return /*#__PURE__*/ _react.createElement("div", {
|
|
183
|
+
key: subcountName,
|
|
184
|
+
className: classes.calloutBlockContainer
|
|
185
|
+
}, /*#__PURE__*/ _react.createElement("div", {
|
|
186
|
+
className: classes.calloutlegendText
|
|
187
|
+
}, " ", (0, _localeutil.convertToLocaleString)(subcountName, culture)), /*#__PURE__*/ _react.createElement("div", {
|
|
188
|
+
className: classes.calloutContentY,
|
|
189
|
+
style: {
|
|
190
|
+
color: props.color ? props.color : _reacttheme.tokens.colorNeutralForeground1
|
|
191
|
+
}
|
|
192
|
+
}, (0, _localeutil.convertToLocaleString)(subcounts[subcountName], culture)));
|
|
193
|
+
}));
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
ChartPopover.displayName = 'ChartPopover';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["ChartPopover.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Popover, PopoverSurface } from '@fluentui/react-popover';\nimport { mergeClasses } from '@griffel/react';\nimport type { PositioningVirtualElement } from '@fluentui/react-positioning';\nimport { tokens } from '@fluentui/react-theme';\nimport { useId } from '@fluentui/react-utilities';\nimport { getAccessibleDataObject, Points, pointTypes } from '../../utilities/index';\nimport { convertToLocaleString } from '../../utilities/locale-util';\nimport { Shape } from '../Legends/shape';\nimport { usePopoverStyles_unstable } from './useChartPopoverStyles.styles';\nimport { YValueHover } from './CartesianChart.types';\nimport { LegendShape } from '../Legends/Legends.types';\nimport { ChartPopoverProps } from './ChartPopover.types';\n\n/* This component is a wrapper over Popover component which implements the logic for rendering popovers for any chart\ncombining the logic for Callout and ChartHoverCard in v8 charts. */\nexport const ChartPopover: React.FunctionComponent<ChartPopoverProps> = React.forwardRef<\n HTMLDivElement,\n ChartPopoverProps\n>((props, forwardedRef) => {\n const virtualElement: PositioningVirtualElement = {\n getBoundingClientRect: () => ({\n top: props.clickPosition!.y,\n left: props.clickPosition!.x,\n right: props.clickPosition!.x,\n bottom: props.clickPosition!.y,\n x: props.clickPosition!.x,\n y: props.clickPosition!.y,\n width: 0,\n height: 0,\n }),\n };\n props = { ...props, ...props.customCallout?.customCalloutProps };\n const classes = usePopoverStyles_unstable(props);\n const legend = props.xCalloutValue ? props.xCalloutValue : props.legend;\n const YValue = props.yCalloutValue ? props.yCalloutValue : props.YValue;\n return (\n <div id={useId('callout')} ref={forwardedRef} className={classes.calloutContainer}>\n <Popover\n positioning={{ target: virtualElement, autoSize: 'always', offset: 20, coverTarget: false }}\n open={props.isPopoverOpen}\n inline\n >\n <PopoverSurface>\n {/** Given custom callout, then it will render */}\n {props.customCallout && props.customCallout.customizedCallout && props.customCallout.customizedCallout}\n {/** single x point its corresponding y points of all the bars/lines in chart will render in callout */}\n {(!props.customCallout || !props.customCallout.customizedCallout) &&\n props.isCalloutForStack &&\n _multiValueCallout()}\n {/** single x point its corresponding y point of single line/bar in the chart will render in callout */}\n {(!props.customCallout || !props.customCallout.customizedCallout) && !props.isCalloutForStack && (\n <div className={classes.calloutContentRoot}>\n <div className={classes.calloutDateTimeContainer}>\n <div className={classes.calloutContentX}>{props.XValue} </div>\n {/*TO DO if we add time for callout then will use this */}\n {/* <div className={classNames.calloutContentX}>07:00am</div> */}\n </div>\n <div\n className={classes.calloutInfoContainer}\n style={{\n ...(props.ratio && {\n display: 'flex',\n alignItems: 'flex-end',\n }),\n borderLeft: `4px solid ${props.color}`,\n }}\n >\n <div className={classes.calloutBlockContainer}>\n <div className={classes.calloutlegendText}>{convertToLocaleString(legend, props.culture)}</div>\n <div\n className={classes.calloutContentY}\n style={{ color: props.color ? props.color : tokens.colorNeutralForeground1 }}\n >\n {convertToLocaleString(YValue, props.culture)}\n </div>\n </div>\n {!!props.ratio && (\n <div className={classes.ratio}>\n <>\n <span className={classes.numerator}>{convertToLocaleString(props.ratio[0], props.culture)}</span>/\n <span className={classes.denominator}>\n {convertToLocaleString(props.ratio[1], props.culture)}\n </span>\n </>\n </div>\n )}\n </div>\n {!!props.descriptionMessage && (\n <div className={classes.descriptionMessage}>{props.descriptionMessage}</div>\n )}\n </div>\n )}\n </PopoverSurface>\n </Popover>\n </div>\n );\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n function _multiValueCallout() {\n const yValueHoverSubCountsExists: boolean = _yValueHoverSubCountsExists(props.YValueHover) ?? false;\n return (\n <div className={classes.calloutContentRoot}>\n <div\n className={classes.calloutDateTimeContainer}\n style={yValueHoverSubCountsExists ? { marginBottom: '11px' } : {}}\n >\n <div\n className={classes.calloutContentX}\n {...getAccessibleDataObject(props!.xAxisCalloutAccessibilityData, 'text', false)}\n >\n {convertToLocaleString(props!.hoverXValue, props.culture)}\n </div>\n </div>\n <div style={yValueHoverSubCountsExists ? { display: 'flex' } : {}}>\n {props!.YValueHover &&\n props!.YValueHover.map((yValue: YValueHover, index: number, yValues: YValueHover[]) => {\n const isLast: boolean = index + 1 === yValues.length;\n const { shouldDrawBorderBottom = false } = yValue;\n return (\n <div\n {...getAccessibleDataObject(yValue.callOutAccessibilityData, 'text', false)}\n key={`callout-content-${index}`}\n style={\n yValueHoverSubCountsExists\n ? {\n display: 'inline-block',\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${tokens.colorNeutralStroke2}`,\n paddingBottom: '10px',\n }),\n }\n : {\n ...(shouldDrawBorderBottom && {\n borderBottom: `1px solid ${tokens.colorNeutralStroke2}`,\n paddingBottom: '10px',\n }),\n }\n }\n >\n {_getCalloutContent(yValue, index, yValueHoverSubCountsExists, isLast)}\n </div>\n );\n })}\n {!!props.descriptionMessage && <div className={classes.descriptionMessage}>{props.descriptionMessage}</div>}\n </div>\n </div>\n );\n }\n\n function _yValueHoverSubCountsExists(yValueHover?: YValueHover[]): boolean | undefined {\n return (\n yValueHover &&\n yValueHover.some(\n (yValue: {\n legend?: string;\n y?: number;\n color?: string;\n yAxisCalloutData?: string | { [id: string]: number };\n }) => yValue.yAxisCalloutData && typeof yValue.yAxisCalloutData !== 'string',\n )\n );\n }\n\n function _getCalloutContent(\n xValue: YValueHover,\n index: number,\n yValueHoverSubCountsExists: boolean,\n isLast: boolean,\n ): React.ReactNode {\n const marginStyle: React.CSSProperties = isLast ? {} : { marginRight: '16px' };\n const toDrawShape = xValue.index !== undefined && xValue.index !== -1;\n const { culture } = props;\n const yValue = convertToLocaleString(xValue.y, culture);\n if (!xValue.yAxisCalloutData || typeof xValue.yAxisCalloutData === 'string') {\n return (\n <div style={yValueHoverSubCountsExists ? marginStyle : {}}>\n {yValueHoverSubCountsExists && (\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n )}\n <div\n id={`${index}_${xValue.y}`}\n className={classes.calloutBlockContainer}\n style={{\n marginTop: props.XValue ? '13px' : 'unset',\n ...(!toDrawShape\n ? {\n borderLeft: `4px solid ${xValue.color}`,\n }\n : {}),\n }}\n >\n {toDrawShape && (\n <Shape\n svgProps={{\n className: classes.shapeStyles,\n }}\n pathProps={{ fill: xValue.color }}\n shape={Points[xValue.index! % Object.keys(pointTypes).length] as LegendShape}\n />\n )}\n <div\n className={mergeClasses(\n classes.calloutBlockContainer,\n toDrawShape\n ? classes.calloutBlockContainertoDrawShapetrue\n : classes.calloutBlockContainertoDrawShapefalse,\n )}\n >\n <div className={classes.calloutlegendText}> {xValue.legend}</div>\n <div className={classes.calloutContentY}>\n {convertToLocaleString(\n xValue.yAxisCalloutData ? xValue.yAxisCalloutData : xValue.y ?? xValue.data,\n culture,\n )}\n </div>\n </div>\n </div>\n </div>\n );\n } else {\n const subcounts: { [id: string]: number } = xValue.yAxisCalloutData as { [id: string]: number };\n return (\n <div style={marginStyle}>\n <div className=\"ms-fontWeight-semibold\" style={{ fontSize: '12pt' }}>\n {xValue.legend!} ({yValue})\n </div>\n {Object.keys(subcounts).map((subcountName: string) => {\n return (\n <div key={subcountName} className={classes.calloutBlockContainer}>\n <div className={classes.calloutlegendText}> {convertToLocaleString(subcountName, culture)}</div>\n <div\n className={classes.calloutContentY}\n style={{ color: props.color ? props.color : tokens.colorNeutralForeground1 }}\n >\n {convertToLocaleString(subcounts[subcountName], culture)}\n </div>\n </div>\n );\n })}\n </div>\n );\n }\n }\n});\nChartPopover.displayName = 'ChartPopover';\n"],"names":["ChartPopover","React","forwardRef","props","forwardedRef","virtualElement","getBoundingClientRect","top","clickPosition","y","left","x","right","bottom","width","height","customCallout","customCalloutProps","classes","usePopoverStyles_unstable","legend","xCalloutValue","YValue","yCalloutValue","createElement","div","id","useId","ref","className","calloutContainer","Popover","positioning","target","autoSize","offset","coverTarget","open","isPopoverOpen","inline","PopoverSurface","customizedCallout","isCalloutForStack","_multiValueCallout","calloutContentRoot","calloutDateTimeContainer","calloutContentX","XValue","calloutInfoContainer","style","ratio","display","alignItems","borderLeft","color","calloutBlockContainer","calloutlegendText","convertToLocaleString","culture","calloutContentY","tokens","colorNeutralForeground1","Fragment","span","numerator","denominator","descriptionMessage","_yValueHoverSubCountsExists","yValueHoverSubCountsExists","YValueHover","marginBottom","getAccessibleDataObject","xAxisCalloutAccessibilityData","hoverXValue","map","yValue","index","yValues","isLast","length","shouldDrawBorderBottom","callOutAccessibilityData","key","borderBottom","colorNeutralStroke2","paddingBottom","_getCalloutContent","yValueHover","some","yAxisCalloutData","xValue","marginStyle","marginRight","toDrawShape","undefined","fontSize","marginTop","Shape","svgProps","shapeStyles","pathProps","fill","shape","Points","Object","keys","pointTypes","mergeClasses","calloutBlockContainertoDrawShapetrue","calloutBlockContainertoDrawShapefalse","data","subcounts","subcountName","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAgBaA;;;eAAAA;;;;iEAhBU;8BACiB;wBACX;4BAEN;gCACD;uBACsC;4BACtB;uBAChB;6CACoB;AAOnC,M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iB;eAAE,KAAEkC,OAAOtE,MAAM,GAAA,WAAA,GAC1DnB,OAAAuB,aAAA,CAACC,OAAAA;gBAAII,WAAWX,QAAQyC,eAAe;eACpCF,IAAAA,iCAAAA,EACCiC,OAAOD,gBAAgB,GAAGC,OAAOD,gBAAgB,GAAGC,CAAAA,YAAAA,OAAOjF,CAAC,AAADA,MAAC,QAARiF,cAAAA,KAAAA,IAAAA,YAAYA,OAAOoB,IAAI,EAC3EpD;QAOd,OAAO;YACL,MAAMqD,YAAsCrB,OAAOD,gBAAgB;YACnE,OAAA,WAAA,GACExF,OAAAuB,aAAA,CAACC,OAAAA;gBAAIwB,OAAO0C;6BACV1F,OAAAuB,aAAA,CAACC,OAAAA;gBAAII,WAAU;gBAAyBoB,OAAO;oBAAE8C,UAAU;gBAAO;eAC/DL,OAAOtE,MAAM,EAAE,MAAGuD,QAAO,MAE3B6B,OAAOC,IAAI,CAACM,WAAWrC,GAAG,CAAC,CAACsC;gBAC3B,OAAA,WAAA,GACE/G,OAAAuB,aAAA,CAACC,OAAAA;oBAAIyD,KAAK8B;oBAAcnF,WAAWX,QAAQqC,qBAAqB;iCAC9DtD,OAAAuB,aAAA,CAACC,OAAAA;oBAAII,WAAWX,QAAQsC,iBAAiB;mBAAE,KAAEC,IAAAA,iCAAAA,EAAsBuD,cAActD,WAAAA,WAAAA,GACjFzD,OAAAuB,aAAA,CAACC,OAAAA;oBACCI,WAAWX,QAAQyC,eAAe;oBAClCV,OAAO;wBAAEK,OAAOnD,MAAMmD,KAAK,GAAGnD,MAAMmD,KAAK,GAAGM,kBAAAA,CAAOC,uBAAuB;oBAAC;mBAE1EJ,IAAAA,iCAAAA,EAAsBsD,SAAS,CAACC,aAAa,EAAEtD;YAIxD;QAGN;IACF;AACF;AACA1D,aAAaiH,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["ChartPopover.types.ts"],"sourcesContent":["import { YValueHover } from '../../index';\n\nexport interface ChartPopoverProps {\n clickPosition?: { x: number; y: number };\n isPopoverOpen?: boolean;\n xCalloutValue?: string;\n legend?: string | number | Date;\n yCalloutValue?: string;\n YValue?: string | number | Date;\n XValue?: string;\n color?: string;\n culture?: string;\n customCallout?: {\n customizedCallout?: JSX.Element;\n customCalloutProps?: ChartPopoverProps;\n };\n isCalloutForStack?: boolean;\n xAxisCalloutAccessibilityData?: { ariaLabel?: string; data?: string };\n hoverXValue?: string | number;\n YValueHover?: YValueHover[];\n descriptionMessage?: string;\n ratio?: [number, number];\n isCartesian?: boolean;\n}\n\nexport interface PopoverComponentStyles {\n calloutContentRoot: string;\n calloutDateTimeContainer: string;\n calloutContentX: string;\n calloutBlockContainer: string;\n calloutBlockContainertoDrawShapefalse: string;\n calloutBlockContainertoDrawShapetrue: string;\n shapeStyles: string;\n calloutlegendText: string;\n calloutContentY: string;\n descriptionMessage: string;\n ratio: string;\n numerator: string;\n denominator: string;\n calloutInfoContainer: string;\n calloutContainer: string;\n}\n"],"names":[],"rangeMappings":"","mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
+
_export_star._(require("./CartesianChart"), exports);
|
|
7
|
+
_export_star._(require("./CartesianChart.types"), exports);
|
|
8
|
+
_export_star._(require("./ChartPopover"), exports);
|
|
9
|
+
_export_star._(require("./ChartPopover.types"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './CartesianChart';\nexport * from './CartesianChart.types';\nexport * from './ChartPopover';\nexport * from './ChartPopover.types';\n"],"names":[],"rangeMappings":";;;;;;;;","mappings":";;;;;uBAAc;uBACA;uBACA;uBACA"}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
cartesianchartClassNames: function() {
|
|
13
|
+
return cartesianchartClassNames;
|
|
14
|
+
},
|
|
15
|
+
useCartesianChartStyles: function() {
|
|
16
|
+
return useCartesianChartStyles;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const _utilities = require("../../utilities/utilities");
|
|
21
|
+
const cartesianchartClassNames = {
|
|
22
|
+
root: 'fui-cart__root',
|
|
23
|
+
chartWrapper: 'fui-cart__chartWrapper',
|
|
24
|
+
axisTitle: 'fui-cart__axisTitle',
|
|
25
|
+
xAxis: 'fui-cart__xAxis',
|
|
26
|
+
yAxis: 'fui-cart__yAxis',
|
|
27
|
+
opacityChangeOnHover: 'fui-cart__opacityChangeOnHover',
|
|
28
|
+
legendContainer: 'fui-cart__legendContainer',
|
|
29
|
+
calloutContentRoot: 'fui-cart__calloutContentRoot',
|
|
30
|
+
calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',
|
|
31
|
+
calloutContentX: 'fui-cart__calloutContentX',
|
|
32
|
+
calloutBlockContainer: 'fui-cart__calloutBlockContainer',
|
|
33
|
+
calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',
|
|
34
|
+
calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',
|
|
35
|
+
shapeStyles: 'fui-cart__shapeStyles',
|
|
36
|
+
calloutlegendText: 'fui-cart__calloutlegendText',
|
|
37
|
+
calloutContentY: 'fui-cart__calloutContentY',
|
|
38
|
+
descriptionMessage: 'fui-cart__descriptionMessage',
|
|
39
|
+
hover: 'fui-cart__hover',
|
|
40
|
+
calloutInfoContainer: 'fui-cart__calloutInfoContainer',
|
|
41
|
+
tooltip: 'fui-cart__tooltip',
|
|
42
|
+
chartTitle: 'fui-cart__chartTitle'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Base Styles
|
|
46
|
+
*/ const useStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
47
|
+
root: {
|
|
48
|
+
Bahqtrf: "fk6fouc",
|
|
49
|
+
Be2twd7: "fkhj508",
|
|
50
|
+
Bhrd7zp: "figsok6",
|
|
51
|
+
Bg96gwp: "f1i3iumi",
|
|
52
|
+
mc9l5x: "f22iagw",
|
|
53
|
+
a9b677: "fly5x3f",
|
|
54
|
+
Bqenvij: "f1l02sjl",
|
|
55
|
+
Beiy3e4: "f1vx9l62",
|
|
56
|
+
B68tc82: 0,
|
|
57
|
+
Bmxbyg5: 0,
|
|
58
|
+
Bpg54ce: "f1a3p1vp"
|
|
59
|
+
},
|
|
60
|
+
chartWrapper: {
|
|
61
|
+
B68tc82: 0,
|
|
62
|
+
Bmxbyg5: 0,
|
|
63
|
+
Bpg54ce: "f1enuhaj"
|
|
64
|
+
},
|
|
65
|
+
axisTitle: {
|
|
66
|
+
Bahqtrf: "fk6fouc",
|
|
67
|
+
Be2twd7: "f13mqy1h",
|
|
68
|
+
Bhrd7zp: "fl43uef",
|
|
69
|
+
Bg96gwp: "fcpl73t",
|
|
70
|
+
B80ckks: "fmd4ok8",
|
|
71
|
+
fsow6f: "f17mccla",
|
|
72
|
+
sj55zd: "fkfq4zb",
|
|
73
|
+
Bkfmm31: "fhuob2q"
|
|
74
|
+
},
|
|
75
|
+
xAxis: {
|
|
76
|
+
Bifops1: "fk6onyz",
|
|
77
|
+
lr70ht: "f17odlr9",
|
|
78
|
+
D01gh: "f1wvrikb",
|
|
79
|
+
vxuu72: "fidmvdy",
|
|
80
|
+
lclgl4: "f1noc3f3",
|
|
81
|
+
Dzfv0s: "f1rtcel9",
|
|
82
|
+
s17mou: "f4w8oyz",
|
|
83
|
+
jxu3ei: "fkuun",
|
|
84
|
+
B3i31d3: "f1u7a78k",
|
|
85
|
+
Bhcy8il: "f1myyn02",
|
|
86
|
+
t7r2jy: "f1ypwncy",
|
|
87
|
+
Bpf2t2a: "fs22wna",
|
|
88
|
+
J19x1g: "f19ju15u",
|
|
89
|
+
se2xxg: "f1x8lysa"
|
|
90
|
+
},
|
|
91
|
+
yAxis: {
|
|
92
|
+
lr70ht: "f17odlr9",
|
|
93
|
+
D01gh: "f1wvrikb",
|
|
94
|
+
vxuu72: "fidmvdy",
|
|
95
|
+
lclgl4: "f1noc3f3",
|
|
96
|
+
Bifops1: "fk6onyz",
|
|
97
|
+
Dzfv0s: "f1rtcel9",
|
|
98
|
+
s17mou: "f4w8oyz",
|
|
99
|
+
jxu3ei: "fkuun",
|
|
100
|
+
B3i31d3: "f1u7a78k",
|
|
101
|
+
t7r2jy: "f1ypwncy",
|
|
102
|
+
Bpf2t2a: "fs22wna",
|
|
103
|
+
J19x1g: "f19ju15u",
|
|
104
|
+
se2xxg: "f1x8lysa"
|
|
105
|
+
},
|
|
106
|
+
rtl: {
|
|
107
|
+
Bkw34lo: "f1j2g1si"
|
|
108
|
+
},
|
|
109
|
+
ltr: {},
|
|
110
|
+
opacityChangeOnHover: {
|
|
111
|
+
abs64n: "f9das1l",
|
|
112
|
+
Bceei9c: "f158kwzp"
|
|
113
|
+
},
|
|
114
|
+
legendContainer: {
|
|
115
|
+
B6of3ja: "frnwi6n",
|
|
116
|
+
Frg6f3: [
|
|
117
|
+
"ff3wqvv",
|
|
118
|
+
"f1l2akhw"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
calloutContentRoot: {
|
|
122
|
+
mc9l5x: "f13qh94s",
|
|
123
|
+
B68tc82: 0,
|
|
124
|
+
Bmxbyg5: 0,
|
|
125
|
+
Bpg54ce: "f1a3p1vp",
|
|
126
|
+
z8tnut: "f1dvrhzg",
|
|
127
|
+
z189sj: [
|
|
128
|
+
"fjnv7mu",
|
|
129
|
+
"fae8789"
|
|
130
|
+
],
|
|
131
|
+
Byoj8tv: "f1av7aef",
|
|
132
|
+
uwmqm3: [
|
|
133
|
+
"fae8789",
|
|
134
|
+
"fjnv7mu"
|
|
135
|
+
],
|
|
136
|
+
De3pzq: "fxugw4r",
|
|
137
|
+
jy2i9i: "fronft5"
|
|
138
|
+
},
|
|
139
|
+
calloutDateTimeContainer: {
|
|
140
|
+
mc9l5x: "f22iagw",
|
|
141
|
+
Beiy3e4: "f1063pyq",
|
|
142
|
+
Brf1p80: "f1869bpl"
|
|
143
|
+
},
|
|
144
|
+
calloutContentX: {
|
|
145
|
+
Bahqtrf: "fk6fouc",
|
|
146
|
+
Be2twd7: "fy9rknc",
|
|
147
|
+
Bhrd7zp: "figsok6",
|
|
148
|
+
Bg96gwp: "fwrc4pm",
|
|
149
|
+
abs64n: "fp25eh",
|
|
150
|
+
sj55zd: "fkfq4zb"
|
|
151
|
+
},
|
|
152
|
+
calloutBlockContainer: {
|
|
153
|
+
Bahqtrf: "fk6fouc",
|
|
154
|
+
Be2twd7: "fod5ikn",
|
|
155
|
+
Bhrd7zp: "figsok6",
|
|
156
|
+
Bg96gwp: "faaz57k",
|
|
157
|
+
B6of3ja: "f7jvbu2",
|
|
158
|
+
sj55zd: "fkfq4zb"
|
|
159
|
+
},
|
|
160
|
+
calloutBlockContainertoDrawShapefalse: {
|
|
161
|
+
B93v9kj: "f15mrrko",
|
|
162
|
+
ibv6hh: [
|
|
163
|
+
"frjpdoz",
|
|
164
|
+
"fm1xp1g"
|
|
165
|
+
],
|
|
166
|
+
uwmqm3: [
|
|
167
|
+
"f1f5gg8d",
|
|
168
|
+
"f1vdfbxk"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
calloutBlockContainertoDrawShapetrue: {
|
|
172
|
+
mc9l5x: "f22iagw"
|
|
173
|
+
},
|
|
174
|
+
shapeStyles: {
|
|
175
|
+
t21cq0: [
|
|
176
|
+
"f1vcna3q",
|
|
177
|
+
"foyynoy"
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
calloutLegendText: {
|
|
181
|
+
Bahqtrf: "fk6fouc",
|
|
182
|
+
Be2twd7: "fy9rknc",
|
|
183
|
+
Bhrd7zp: "figsok6",
|
|
184
|
+
Bg96gwp: "fwrc4pm",
|
|
185
|
+
sj55zd: "fkfq4zb",
|
|
186
|
+
Bd6j3yi: "f5klfrb",
|
|
187
|
+
hbub2c: "f1f0smcx"
|
|
188
|
+
},
|
|
189
|
+
calloutContentY: {
|
|
190
|
+
Bahqtrf: "fk6fouc",
|
|
191
|
+
Be2twd7: "fod5ikn",
|
|
192
|
+
Bhrd7zp: "flh3ekv",
|
|
193
|
+
Bg96gwp: "faaz57k",
|
|
194
|
+
Bd6j3yi: "f5klfrb",
|
|
195
|
+
hbub2c: "f1f0smcx"
|
|
196
|
+
},
|
|
197
|
+
descriptionMessage: {
|
|
198
|
+
Bahqtrf: "fk6fouc",
|
|
199
|
+
Be2twd7: "fy9rknc",
|
|
200
|
+
Bhrd7zp: "figsok6",
|
|
201
|
+
Bg96gwp: "fwrc4pm",
|
|
202
|
+
sj55zd: "fkfq4zb",
|
|
203
|
+
B6of3ja: "f1gaxbfw",
|
|
204
|
+
z8tnut: "f1ngh7ph",
|
|
205
|
+
B4j52fo: "f1pgliyk"
|
|
206
|
+
}
|
|
207
|
+
}, {
|
|
208
|
+
d: [
|
|
209
|
+
".fk6fouc{font-family:var(--fontFamilyBase);}",
|
|
210
|
+
".fkhj508{font-size:var(--fontSizeBase300);}",
|
|
211
|
+
".figsok6{font-weight:var(--fontWeightRegular);}",
|
|
212
|
+
".f1i3iumi{line-height:var(--lineHeightBase300);}",
|
|
213
|
+
".f22iagw{display:flex;}",
|
|
214
|
+
".fly5x3f{width:100%;}",
|
|
215
|
+
".f1l02sjl{height:100%;}",
|
|
216
|
+
".f1vx9l62{flex-direction:column;}",
|
|
217
|
+
[
|
|
218
|
+
".f1a3p1vp{overflow:hidden;}",
|
|
219
|
+
{
|
|
220
|
+
p: -1
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
[
|
|
224
|
+
".f1enuhaj{overflow:auto;}",
|
|
225
|
+
{
|
|
226
|
+
p: -1
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
".f13mqy1h{font-size:var(--fontSizeBase100);}",
|
|
230
|
+
".fl43uef{font-weight:var(--fontWeightSemibold);}",
|
|
231
|
+
".fcpl73t{line-height:var(--lineHeightBase100);}",
|
|
232
|
+
".fmd4ok8{font-style:normal;}",
|
|
233
|
+
".f17mccla{text-align:center;}",
|
|
234
|
+
".fkfq4zb{color:var(--colorNeutralForeground2);}",
|
|
235
|
+
".fhuob2q{fill:var(--colorNeutralForeground1);}",
|
|
236
|
+
".fk6onyz text{fill:var(--colorNeutralForeground1);}",
|
|
237
|
+
".f17odlr9 text{font-family:var(--fontFamilyBase);}",
|
|
238
|
+
".f1wvrikb text{font-size:var(--fontSizeBase100);}",
|
|
239
|
+
".fidmvdy text{font-weight:var(--fontWeightSemibold);}",
|
|
240
|
+
".f1noc3f3 text{line-height:var(--lineHeightBase100);}",
|
|
241
|
+
".fkuun line{opacity:0.2;}",
|
|
242
|
+
".f1u7a78k line{stroke:var(--colorNeutralForeground1);}",
|
|
243
|
+
".f1myyn02 line{width:1px;}",
|
|
244
|
+
".f1x8lysa path{display:none;}",
|
|
245
|
+
".f1j2g1si g{text-anchor:end;}",
|
|
246
|
+
".f9das1l{opacity:0.1;}",
|
|
247
|
+
".f158kwzp{cursor:default;}",
|
|
248
|
+
".frnwi6n{margin-top:var(--spacingVerticalS);}",
|
|
249
|
+
".ff3wqvv{margin-left:var(--spacingHorizontalXL);}",
|
|
250
|
+
".f1l2akhw{margin-right:var(--spacingHorizontalXL);}",
|
|
251
|
+
".f13qh94s{display:grid;}",
|
|
252
|
+
[
|
|
253
|
+
".f1a3p1vp{overflow:hidden;}",
|
|
254
|
+
{
|
|
255
|
+
p: -1
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
".f1dvrhzg{padding-top:11px 16px 10px 16px;}",
|
|
259
|
+
".fjnv7mu{padding-right:11px 16px 10px 16px;}",
|
|
260
|
+
".fae8789{padding-left:11px 16px 10px 16px;}",
|
|
261
|
+
".f1av7aef{padding-bottom:11px 16px 10px 16px;}",
|
|
262
|
+
".fxugw4r{background-color:var(--colorNeutralBackground1);}",
|
|
263
|
+
".fronft5{background-blend-mode:normal,luminosity;}",
|
|
264
|
+
".f1063pyq{flex-direction:row;}",
|
|
265
|
+
".f1869bpl{justify-content:space-between;}",
|
|
266
|
+
".fy9rknc{font-size:var(--fontSizeBase200);}",
|
|
267
|
+
".fwrc4pm{line-height:var(--lineHeightBase200);}",
|
|
268
|
+
".fp25eh{opacity:0.8;}",
|
|
269
|
+
".fod5ikn{font-size:var(--fontSizeBase400);}",
|
|
270
|
+
".faaz57k{line-height:var(--lineHeightBase400);}",
|
|
271
|
+
".f7jvbu2{margin-top:13px;}",
|
|
272
|
+
".frjpdoz{border-left-width:4px solid;}",
|
|
273
|
+
".fm1xp1g{border-right-width:4px solid;}",
|
|
274
|
+
".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",
|
|
275
|
+
".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",
|
|
276
|
+
".f1vcna3q{margin-right:var(--spacingHorizontalS);}",
|
|
277
|
+
".foyynoy{margin-left:var(--spacingHorizontalS);}",
|
|
278
|
+
".flh3ekv{font-weight:var(--fontWeightBold);}",
|
|
279
|
+
".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",
|
|
280
|
+
".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",
|
|
281
|
+
".f1pgliyk{border-top-width:1px solid var(--colorNeutralStroke2);}"
|
|
282
|
+
],
|
|
283
|
+
m: [
|
|
284
|
+
[
|
|
285
|
+
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1rtcel9 text{fill:rgb(179, 179, 179);}}",
|
|
286
|
+
{
|
|
287
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f4w8oyz text{forced-color-adjust:none;}}",
|
|
292
|
+
{
|
|
293
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
[
|
|
297
|
+
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1ypwncy line{opacity:0.1;}}",
|
|
298
|
+
{
|
|
299
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
[
|
|
303
|
+
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.fs22wna line{stroke:rgb(179, 179, 179);}}",
|
|
304
|
+
{
|
|
305
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
[
|
|
309
|
+
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f19ju15u line{forced-color-adjust:none;}}",
|
|
310
|
+
{
|
|
311
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
"@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.f15mrrko{forced-color-adjust:none;}}",
|
|
316
|
+
{
|
|
317
|
+
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
[
|
|
321
|
+
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f5klfrb{color:rgb(255, 255, 255);}}",
|
|
322
|
+
{
|
|
323
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
[
|
|
327
|
+
"@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1f0smcx{forced-color-adjust:none;}}",
|
|
328
|
+
{
|
|
329
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
]
|
|
333
|
+
});
|
|
334
|
+
const useCartesianChartStyles = (props)=>{
|
|
335
|
+
const _useRtl = (0, _utilities.useRtl)();
|
|
336
|
+
const baseStyles = useStyles();
|
|
337
|
+
return {
|
|
338
|
+
root: (0, _react.mergeClasses)(cartesianchartClassNames.root, baseStyles.root /*props.styles?.root*/ ),
|
|
339
|
+
chartWrapper: (0, _react.mergeClasses)(cartesianchartClassNames.chartWrapper, baseStyles.chartWrapper /*props.styles?.chartWrapper*/ ),
|
|
340
|
+
axisTitle: (0, _react.mergeClasses)(cartesianchartClassNames.axisTitle, baseStyles.axisTitle /*props.styles?.axisTitle*/ ),
|
|
341
|
+
xAxis: (0, _react.mergeClasses)(cartesianchartClassNames.xAxis, baseStyles.xAxis /*props.styles?.xAxis*/ ),
|
|
342
|
+
yAxis: (0, _react.mergeClasses)(cartesianchartClassNames.yAxis, baseStyles.yAxis, _useRtl ? baseStyles.rtl : baseStyles.ltr /*props.styles?.yAxis*/ ),
|
|
343
|
+
opacityChangeOnHover: (0, _react.mergeClasses)(cartesianchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/ ),
|
|
344
|
+
legendContainer: (0, _react.mergeClasses)(cartesianchartClassNames.legendContainer, baseStyles.legendContainer /*props.styles?.legendContainer*/ ),
|
|
345
|
+
calloutContentRoot: (0, _react.mergeClasses)(cartesianchartClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/ ),
|
|
346
|
+
calloutDateTimeContainer: (0, _react.mergeClasses)(cartesianchartClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/ ),
|
|
347
|
+
calloutContentX: (0, _react.mergeClasses)(cartesianchartClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/ ),
|
|
348
|
+
calloutBlockContainer: (0, _react.mergeClasses)(cartesianchartClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainer*/ ),
|
|
349
|
+
calloutBlockContainertoDrawShapefalse: (0, _react.mergeClasses)(cartesianchartClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/ ),
|
|
350
|
+
calloutBlockContainertoDrawShapetrue: (0, _react.mergeClasses)(cartesianchartClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/ ),
|
|
351
|
+
shapeStyles: (0, _react.mergeClasses)(cartesianchartClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/ ),
|
|
352
|
+
calloutlegendText: (0, _react.mergeClasses)(cartesianchartClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/ ),
|
|
353
|
+
calloutContentY: (0, _react.mergeClasses)(cartesianchartClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentY*/ ),
|
|
354
|
+
descriptionMessage: (0, _react.mergeClasses)(cartesianchartClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/ )
|
|
355
|
+
};
|
|
356
|
+
}; //# sourceMappingURL=useCartesianChartStyles.styles.js.map
|