@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,229 @@
|
|
|
1
|
+
import { __styles, mergeClasses, shorthands } from '@griffel/react';
|
|
2
|
+
import { HighContrastSelectorBlack, HighContrastSelector } from '../../utilities/index';
|
|
3
|
+
import { tokens, typographyStyles } from '@fluentui/react-theme';
|
|
4
|
+
import { useRtl } from '../../utilities/utilities';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export const cartesianchartClassNames = {
|
|
9
|
+
root: 'fui-cart__root',
|
|
10
|
+
chartWrapper: 'fui-cart__chartWrapper',
|
|
11
|
+
axisTitle: 'fui-cart__axisTitle',
|
|
12
|
+
xAxis: 'fui-cart__xAxis',
|
|
13
|
+
yAxis: 'fui-cart__yAxis',
|
|
14
|
+
opacityChangeOnHover: 'fui-cart__opacityChangeOnHover',
|
|
15
|
+
legendContainer: 'fui-cart__legendContainer',
|
|
16
|
+
calloutContentRoot: 'fui-cart__calloutContentRoot',
|
|
17
|
+
calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',
|
|
18
|
+
calloutContentX: 'fui-cart__calloutContentX',
|
|
19
|
+
calloutBlockContainer: 'fui-cart__calloutBlockContainer',
|
|
20
|
+
calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',
|
|
21
|
+
calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',
|
|
22
|
+
shapeStyles: 'fui-cart__shapeStyles',
|
|
23
|
+
calloutlegendText: 'fui-cart__calloutlegendText',
|
|
24
|
+
calloutContentY: 'fui-cart__calloutContentY',
|
|
25
|
+
descriptionMessage: 'fui-cart__descriptionMessage',
|
|
26
|
+
hover: 'fui-cart__hover',
|
|
27
|
+
calloutInfoContainer: 'fui-cart__calloutInfoContainer',
|
|
28
|
+
tooltip: 'fui-cart__tooltip',
|
|
29
|
+
chartTitle: 'fui-cart__chartTitle'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Base Styles
|
|
33
|
+
*/
|
|
34
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
35
|
+
root: {
|
|
36
|
+
Bahqtrf: "fk6fouc",
|
|
37
|
+
Be2twd7: "fkhj508",
|
|
38
|
+
Bhrd7zp: "figsok6",
|
|
39
|
+
Bg96gwp: "f1i3iumi",
|
|
40
|
+
mc9l5x: "f22iagw",
|
|
41
|
+
a9b677: "fly5x3f",
|
|
42
|
+
Bqenvij: "f1l02sjl",
|
|
43
|
+
Beiy3e4: "f1vx9l62",
|
|
44
|
+
B68tc82: 0,
|
|
45
|
+
Bmxbyg5: 0,
|
|
46
|
+
Bpg54ce: "f1a3p1vp"
|
|
47
|
+
},
|
|
48
|
+
chartWrapper: {
|
|
49
|
+
B68tc82: 0,
|
|
50
|
+
Bmxbyg5: 0,
|
|
51
|
+
Bpg54ce: "f1enuhaj"
|
|
52
|
+
},
|
|
53
|
+
axisTitle: {
|
|
54
|
+
Bahqtrf: "fk6fouc",
|
|
55
|
+
Be2twd7: "f13mqy1h",
|
|
56
|
+
Bhrd7zp: "fl43uef",
|
|
57
|
+
Bg96gwp: "fcpl73t",
|
|
58
|
+
B80ckks: "fmd4ok8",
|
|
59
|
+
fsow6f: "f17mccla",
|
|
60
|
+
sj55zd: "fkfq4zb",
|
|
61
|
+
Bkfmm31: "fhuob2q"
|
|
62
|
+
},
|
|
63
|
+
xAxis: {
|
|
64
|
+
Bifops1: "fk6onyz",
|
|
65
|
+
lr70ht: "f17odlr9",
|
|
66
|
+
D01gh: "f1wvrikb",
|
|
67
|
+
vxuu72: "fidmvdy",
|
|
68
|
+
lclgl4: "f1noc3f3",
|
|
69
|
+
Dzfv0s: "f1rtcel9",
|
|
70
|
+
s17mou: "f4w8oyz",
|
|
71
|
+
jxu3ei: "fkuun",
|
|
72
|
+
B3i31d3: "f1u7a78k",
|
|
73
|
+
Bhcy8il: "f1myyn02",
|
|
74
|
+
t7r2jy: "f1ypwncy",
|
|
75
|
+
Bpf2t2a: "fs22wna",
|
|
76
|
+
J19x1g: "f19ju15u",
|
|
77
|
+
se2xxg: "f1x8lysa"
|
|
78
|
+
},
|
|
79
|
+
yAxis: {
|
|
80
|
+
lr70ht: "f17odlr9",
|
|
81
|
+
D01gh: "f1wvrikb",
|
|
82
|
+
vxuu72: "fidmvdy",
|
|
83
|
+
lclgl4: "f1noc3f3",
|
|
84
|
+
Bifops1: "fk6onyz",
|
|
85
|
+
Dzfv0s: "f1rtcel9",
|
|
86
|
+
s17mou: "f4w8oyz",
|
|
87
|
+
jxu3ei: "fkuun",
|
|
88
|
+
B3i31d3: "f1u7a78k",
|
|
89
|
+
t7r2jy: "f1ypwncy",
|
|
90
|
+
Bpf2t2a: "fs22wna",
|
|
91
|
+
J19x1g: "f19ju15u",
|
|
92
|
+
se2xxg: "f1x8lysa"
|
|
93
|
+
},
|
|
94
|
+
rtl: {
|
|
95
|
+
Bkw34lo: "f1j2g1si"
|
|
96
|
+
},
|
|
97
|
+
ltr: {},
|
|
98
|
+
opacityChangeOnHover: {
|
|
99
|
+
abs64n: "f9das1l",
|
|
100
|
+
Bceei9c: "f158kwzp"
|
|
101
|
+
},
|
|
102
|
+
legendContainer: {
|
|
103
|
+
B6of3ja: "frnwi6n",
|
|
104
|
+
Frg6f3: ["ff3wqvv", "f1l2akhw"]
|
|
105
|
+
},
|
|
106
|
+
calloutContentRoot: {
|
|
107
|
+
mc9l5x: "f13qh94s",
|
|
108
|
+
B68tc82: 0,
|
|
109
|
+
Bmxbyg5: 0,
|
|
110
|
+
Bpg54ce: "f1a3p1vp",
|
|
111
|
+
z8tnut: "f1dvrhzg",
|
|
112
|
+
z189sj: ["fjnv7mu", "fae8789"],
|
|
113
|
+
Byoj8tv: "f1av7aef",
|
|
114
|
+
uwmqm3: ["fae8789", "fjnv7mu"],
|
|
115
|
+
De3pzq: "fxugw4r",
|
|
116
|
+
jy2i9i: "fronft5"
|
|
117
|
+
},
|
|
118
|
+
calloutDateTimeContainer: {
|
|
119
|
+
mc9l5x: "f22iagw",
|
|
120
|
+
Beiy3e4: "f1063pyq",
|
|
121
|
+
Brf1p80: "f1869bpl"
|
|
122
|
+
},
|
|
123
|
+
calloutContentX: {
|
|
124
|
+
Bahqtrf: "fk6fouc",
|
|
125
|
+
Be2twd7: "fy9rknc",
|
|
126
|
+
Bhrd7zp: "figsok6",
|
|
127
|
+
Bg96gwp: "fwrc4pm",
|
|
128
|
+
abs64n: "fp25eh",
|
|
129
|
+
sj55zd: "fkfq4zb"
|
|
130
|
+
},
|
|
131
|
+
calloutBlockContainer: {
|
|
132
|
+
Bahqtrf: "fk6fouc",
|
|
133
|
+
Be2twd7: "fod5ikn",
|
|
134
|
+
Bhrd7zp: "figsok6",
|
|
135
|
+
Bg96gwp: "faaz57k",
|
|
136
|
+
B6of3ja: "f7jvbu2",
|
|
137
|
+
sj55zd: "fkfq4zb"
|
|
138
|
+
},
|
|
139
|
+
calloutBlockContainertoDrawShapefalse: {
|
|
140
|
+
B93v9kj: "f15mrrko",
|
|
141
|
+
ibv6hh: ["frjpdoz", "fm1xp1g"],
|
|
142
|
+
uwmqm3: ["f1f5gg8d", "f1vdfbxk"]
|
|
143
|
+
},
|
|
144
|
+
calloutBlockContainertoDrawShapetrue: {
|
|
145
|
+
mc9l5x: "f22iagw"
|
|
146
|
+
},
|
|
147
|
+
shapeStyles: {
|
|
148
|
+
t21cq0: ["f1vcna3q", "foyynoy"]
|
|
149
|
+
},
|
|
150
|
+
calloutLegendText: {
|
|
151
|
+
Bahqtrf: "fk6fouc",
|
|
152
|
+
Be2twd7: "fy9rknc",
|
|
153
|
+
Bhrd7zp: "figsok6",
|
|
154
|
+
Bg96gwp: "fwrc4pm",
|
|
155
|
+
sj55zd: "fkfq4zb",
|
|
156
|
+
Bd6j3yi: "f5klfrb",
|
|
157
|
+
hbub2c: "f1f0smcx"
|
|
158
|
+
},
|
|
159
|
+
calloutContentY: {
|
|
160
|
+
Bahqtrf: "fk6fouc",
|
|
161
|
+
Be2twd7: "fod5ikn",
|
|
162
|
+
Bhrd7zp: "flh3ekv",
|
|
163
|
+
Bg96gwp: "faaz57k",
|
|
164
|
+
Bd6j3yi: "f5klfrb",
|
|
165
|
+
hbub2c: "f1f0smcx"
|
|
166
|
+
},
|
|
167
|
+
descriptionMessage: {
|
|
168
|
+
Bahqtrf: "fk6fouc",
|
|
169
|
+
Be2twd7: "fy9rknc",
|
|
170
|
+
Bhrd7zp: "figsok6",
|
|
171
|
+
Bg96gwp: "fwrc4pm",
|
|
172
|
+
sj55zd: "fkfq4zb",
|
|
173
|
+
B6of3ja: "f1gaxbfw",
|
|
174
|
+
z8tnut: "f1ngh7ph",
|
|
175
|
+
B4j52fo: "f1pgliyk"
|
|
176
|
+
}
|
|
177
|
+
}, {
|
|
178
|
+
d: [".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".f22iagw{display:flex;}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}", ".f1vx9l62{flex-direction:column;}", [".f1a3p1vp{overflow:hidden;}", {
|
|
179
|
+
p: -1
|
|
180
|
+
}], [".f1enuhaj{overflow:auto;}", {
|
|
181
|
+
p: -1
|
|
182
|
+
}], ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".fmd4ok8{font-style:normal;}", ".f17mccla{text-align:center;}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".fhuob2q{fill:var(--colorNeutralForeground1);}", ".fk6onyz text{fill:var(--colorNeutralForeground1);}", ".f17odlr9 text{font-family:var(--fontFamilyBase);}", ".f1wvrikb text{font-size:var(--fontSizeBase100);}", ".fidmvdy text{font-weight:var(--fontWeightSemibold);}", ".f1noc3f3 text{line-height:var(--lineHeightBase100);}", ".fkuun line{opacity:0.2;}", ".f1u7a78k line{stroke:var(--colorNeutralForeground1);}", ".f1myyn02 line{width:1px;}", ".f1x8lysa path{display:none;}", ".f1j2g1si g{text-anchor:end;}", ".f9das1l{opacity:0.1;}", ".f158kwzp{cursor:default;}", ".frnwi6n{margin-top:var(--spacingVerticalS);}", ".ff3wqvv{margin-left:var(--spacingHorizontalXL);}", ".f1l2akhw{margin-right:var(--spacingHorizontalXL);}", ".f13qh94s{display:grid;}", [".f1a3p1vp{overflow:hidden;}", {
|
|
183
|
+
p: -1
|
|
184
|
+
}], ".f1dvrhzg{padding-top:11px 16px 10px 16px;}", ".fjnv7mu{padding-right:11px 16px 10px 16px;}", ".fae8789{padding-left:11px 16px 10px 16px;}", ".f1av7aef{padding-bottom:11px 16px 10px 16px;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fronft5{background-blend-mode:normal,luminosity;}", ".f1063pyq{flex-direction:row;}", ".f1869bpl{justify-content:space-between;}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fp25eh{opacity:0.8;}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".f7jvbu2{margin-top:13px;}", ".frjpdoz{border-left-width:4px solid;}", ".fm1xp1g{border-right-width:4px solid;}", ".f1f5gg8d{padding-left:var(--spacingHorizontalS);}", ".f1vdfbxk{padding-right:var(--spacingHorizontalS);}", ".f1vcna3q{margin-right:var(--spacingHorizontalS);}", ".foyynoy{margin-left:var(--spacingHorizontalS);}", ".flh3ekv{font-weight:var(--fontWeightBold);}", ".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}", ".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}", ".f1pgliyk{border-top-width:1px solid var(--colorNeutralStroke2);}"],
|
|
185
|
+
m: [["@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);}}", {
|
|
186
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
187
|
+
}], ["@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;}}", {
|
|
188
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
189
|
+
}], ["@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1ypwncy line{opacity:0.1;}}", {
|
|
190
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
191
|
+
}], ["@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);}}", {
|
|
192
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
193
|
+
}], ["@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;}}", {
|
|
194
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
195
|
+
}], ["@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.f15mrrko{forced-color-adjust:none;}}", {
|
|
196
|
+
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
197
|
+
}], ["@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);}}", {
|
|
198
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
199
|
+
}], ["@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.f1f0smcx{forced-color-adjust:none;}}", {
|
|
200
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
201
|
+
}]]
|
|
202
|
+
});
|
|
203
|
+
/**
|
|
204
|
+
* Apply styling to the Carousel slots based on the state
|
|
205
|
+
*/
|
|
206
|
+
export const useCartesianChartStyles = props => {
|
|
207
|
+
const _useRtl = useRtl();
|
|
208
|
+
const baseStyles = useStyles();
|
|
209
|
+
return {
|
|
210
|
+
root: mergeClasses(cartesianchartClassNames.root, baseStyles.root /*props.styles?.root*/),
|
|
211
|
+
chartWrapper: mergeClasses(cartesianchartClassNames.chartWrapper, baseStyles.chartWrapper /*props.styles?.chartWrapper*/),
|
|
212
|
+
axisTitle: mergeClasses(cartesianchartClassNames.axisTitle, baseStyles.axisTitle /*props.styles?.axisTitle*/),
|
|
213
|
+
xAxis: mergeClasses(cartesianchartClassNames.xAxis, baseStyles.xAxis /*props.styles?.xAxis*/),
|
|
214
|
+
yAxis: mergeClasses(cartesianchartClassNames.yAxis, baseStyles.yAxis, _useRtl ? baseStyles.rtl : baseStyles.ltr /*props.styles?.yAxis*/),
|
|
215
|
+
opacityChangeOnHover: mergeClasses(cartesianchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/),
|
|
216
|
+
legendContainer: mergeClasses(cartesianchartClassNames.legendContainer, baseStyles.legendContainer /*props.styles?.legendContainer*/),
|
|
217
|
+
calloutContentRoot: mergeClasses(cartesianchartClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/),
|
|
218
|
+
calloutDateTimeContainer: mergeClasses(cartesianchartClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/),
|
|
219
|
+
calloutContentX: mergeClasses(cartesianchartClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/),
|
|
220
|
+
calloutBlockContainer: mergeClasses(cartesianchartClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainer*/),
|
|
221
|
+
calloutBlockContainertoDrawShapefalse: mergeClasses(cartesianchartClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/),
|
|
222
|
+
calloutBlockContainertoDrawShapetrue: mergeClasses(cartesianchartClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/),
|
|
223
|
+
shapeStyles: mergeClasses(cartesianchartClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/),
|
|
224
|
+
calloutlegendText: mergeClasses(cartesianchartClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/),
|
|
225
|
+
calloutContentY: mergeClasses(cartesianchartClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentY*/),
|
|
226
|
+
descriptionMessage: mergeClasses(cartesianchartClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/)
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
//# sourceMappingURL=useCartesianChartStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","shorthands","HighContrastSelectorBlack","HighContrastSelector","tokens","typographyStyles","useRtl","cartesianchartClassNames","root","chartWrapper","axisTitle","xAxis","yAxis","opacityChangeOnHover","legendContainer","calloutContentRoot","calloutDateTimeContainer","calloutContentX","calloutBlockContainer","calloutBlockContainertoDrawShapefalse","calloutBlockContainertoDrawShapetrue","shapeStyles","calloutlegendText","calloutContentY","descriptionMessage","hover","calloutInfoContainer","tooltip","chartTitle","useStyles","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","mc9l5x","a9b677","Bqenvij","Beiy3e4","B68tc82","Bmxbyg5","Bpg54ce","B80ckks","fsow6f","sj55zd","Bkfmm31","Bifops1","lr70ht","D01gh","vxuu72","lclgl4","Dzfv0s","s17mou","jxu3ei","B3i31d3","Bhcy8il","t7r2jy","Bpf2t2a","J19x1g","se2xxg","rtl","Bkw34lo","ltr","abs64n","Bceei9c","B6of3ja","Frg6f3","z8tnut","z189sj","Byoj8tv","uwmqm3","De3pzq","jy2i9i","Brf1p80","B93v9kj","ibv6hh","t21cq0","calloutLegendText","Bd6j3yi","hbub2c","B4j52fo","d","p","m","useCartesianChartStyles","props","_useRtl","baseStyles"],"sources":["useCartesianChartStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { HighContrastSelectorBlack, HighContrastSelector } from '../../utilities/index';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { useRtl } from '../../utilities/utilities';\n/**\n * @internal\n */ export const cartesianchartClassNames = {\n root: 'fui-cart__root',\n chartWrapper: 'fui-cart__chartWrapper',\n axisTitle: 'fui-cart__axisTitle',\n xAxis: 'fui-cart__xAxis',\n yAxis: 'fui-cart__yAxis',\n opacityChangeOnHover: 'fui-cart__opacityChangeOnHover',\n legendContainer: 'fui-cart__legendContainer',\n calloutContentRoot: 'fui-cart__calloutContentRoot',\n calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',\n calloutContentX: 'fui-cart__calloutContentX',\n calloutBlockContainer: 'fui-cart__calloutBlockContainer',\n calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',\n calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',\n shapeStyles: 'fui-cart__shapeStyles',\n calloutlegendText: 'fui-cart__calloutlegendText',\n calloutContentY: 'fui-cart__calloutContentY',\n descriptionMessage: 'fui-cart__descriptionMessage',\n hover: 'fui-cart__hover',\n calloutInfoContainer: 'fui-cart__calloutInfoContainer',\n tooltip: 'fui-cart__tooltip',\n chartTitle: 'fui-cart__chartTitle'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n root: {\n ...typographyStyles.body1,\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden'\n },\n chartWrapper: {\n overflow: 'auto'\n },\n axisTitle: {\n ...typographyStyles.caption2Strong,\n fontStyle: 'normal',\n textAlign: 'center',\n color: tokens.colorNeutralForeground2,\n fill: tokens.colorNeutralForeground1\n },\n xAxis: {\n '& text': {\n fill: tokens.colorNeutralForeground1,\n ...typographyStyles.caption2Strong,\n [HighContrastSelectorBlack]: {\n fill: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& line': {\n opacity: 0.2,\n stroke: tokens.colorNeutralForeground1,\n width: '1px',\n [HighContrastSelectorBlack]: {\n opacity: 0.1,\n stroke: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& path': {\n display: 'none'\n }\n },\n yAxis: {\n '& text': {\n ...typographyStyles.caption2Strong,\n fill: tokens.colorNeutralForeground1,\n [HighContrastSelectorBlack]: {\n fill: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& line': {\n opacity: 0.2,\n stroke: tokens.colorNeutralForeground1,\n [HighContrastSelectorBlack]: {\n opacity: 0.1,\n stroke: 'rgb(179, 179, 179)',\n forcedColorAdjust: 'none'\n }\n },\n '& path': {\n display: 'none'\n }\n },\n rtl: {\n '& g': {\n textAnchor: 'end'\n }\n },\n ltr: {},\n opacityChangeOnHover: {\n opacity: '0.1',\n cursor: 'default'\n },\n legendContainer: {\n marginTop: tokens.spacingVerticalS,\n marginLeft: tokens.spacingHorizontalXL\n },\n calloutContentRoot: {\n display: 'grid',\n overflow: 'hidden',\n ...shorthands.padding('11px 16px 10px 16px'),\n backgroundColor: tokens.colorNeutralBackground1,\n backgroundBlendMode: 'normal, luminosity'\n },\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between'\n },\n calloutContentX: {\n ...typographyStyles.caption1,\n opacity: '0.8',\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainer: {\n ...typographyStyles.body2,\n marginTop: '13px',\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainertoDrawShapefalse: {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none'\n },\n ...shorthands.borderLeft('4px solid'),\n paddingLeft: tokens.spacingHorizontalS\n },\n calloutBlockContainertoDrawShapetrue: {\n display: 'flex'\n },\n shapeStyles: {\n marginRight: tokens.spacingHorizontalS\n },\n calloutLegendText: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)',\n forcedColorAdjust: 'none'\n }\n },\n calloutContentY: {\n ...typographyStyles.subtitle2Stronger,\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)',\n forcedColorAdjust: 'none'\n }\n },\n descriptionMessage: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n marginTop: tokens.spacingVerticalMNudge,\n paddingTop: tokens.spacingVerticalMNudge,\n ...shorthands.borderTop(`1px solid ${tokens.colorNeutralStroke2}`)\n }\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const useCartesianChartStyles = (props)=>{\n const _useRtl = useRtl();\n const baseStyles = useStyles();\n return {\n root: mergeClasses(cartesianchartClassNames.root, baseStyles.root /*props.styles?.root*/ ),\n chartWrapper: mergeClasses(cartesianchartClassNames.chartWrapper, baseStyles.chartWrapper /*props.styles?.chartWrapper*/ ),\n axisTitle: mergeClasses(cartesianchartClassNames.axisTitle, baseStyles.axisTitle /*props.styles?.axisTitle*/ ),\n xAxis: mergeClasses(cartesianchartClassNames.xAxis, baseStyles.xAxis /*props.styles?.xAxis*/ ),\n yAxis: mergeClasses(cartesianchartClassNames.yAxis, baseStyles.yAxis, _useRtl ? baseStyles.rtl : baseStyles.ltr /*props.styles?.yAxis*/ ),\n opacityChangeOnHover: mergeClasses(cartesianchartClassNames.opacityChangeOnHover, baseStyles.opacityChangeOnHover /*props.styles?.opacityChangeOnHover*/ ),\n legendContainer: mergeClasses(cartesianchartClassNames.legendContainer, baseStyles.legendContainer /*props.styles?.legendContainer*/ ),\n calloutContentRoot: mergeClasses(cartesianchartClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/ ),\n calloutDateTimeContainer: mergeClasses(cartesianchartClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/ ),\n calloutContentX: mergeClasses(cartesianchartClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/ ),\n calloutBlockContainer: mergeClasses(cartesianchartClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainer*/ ),\n calloutBlockContainertoDrawShapefalse: mergeClasses(cartesianchartClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/ ),\n calloutBlockContainertoDrawShapetrue: mergeClasses(cartesianchartClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/ ),\n shapeStyles: mergeClasses(cartesianchartClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/ ),\n calloutlegendText: mergeClasses(cartesianchartClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/ ),\n calloutContentY: mergeClasses(cartesianchartClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentY*/ ),\n descriptionMessage: mergeClasses(cartesianchartClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/ )\n };\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,SAASC,yBAAyB,EAAEC,oBAAoB,QAAQ,uBAAuB;AACvF,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,uBAAuB;AAChE,SAASC,MAAM,QAAQ,2BAA2B;AAClD;AACA;AACA;AAAI,OAAO,MAAMC,wBAAwB,GAAG;EACxCC,IAAI,EAAE,gBAAgB;EACtBC,YAAY,EAAE,wBAAwB;EACtCC,SAAS,EAAE,qBAAqB;EAChCC,KAAK,EAAE,iBAAiB;EACxBC,KAAK,EAAE,iBAAiB;EACxBC,oBAAoB,EAAE,gCAAgC;EACtDC,eAAe,EAAE,2BAA2B;EAC5CC,kBAAkB,EAAE,8BAA8B;EAClDC,wBAAwB,EAAE,oCAAoC;EAC9DC,eAAe,EAAE,2BAA2B;EAC5CC,qBAAqB,EAAE,iCAAiC;EACxDC,qCAAqC,EAAE,iDAAiD;EACxFC,oCAAoC,EAAE,gDAAgD;EACtFC,WAAW,EAAE,uBAAuB;EACpCC,iBAAiB,EAAE,6BAA6B;EAChDC,eAAe,EAA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YAAY,CAACO,wBAAwB,CAACY,qCAAqC,EAAEmE,UAAU,CAACnE,qCAAqC,CAAC,uDAAwD,CAAC;IAC9NC,oCAAoC,EAAEpB,YAAY,CAACO,wBAAwB,CAACa,oCAAoC,EAAEkE,UAAU,CAAClE,oCAAoC,CAAC,sDAAuD,CAAC;IAC1NC,WAAW,EAAErB,YAAY,CAACO,wBAAwB,CAACc,WAAW,EAAEiE,UAAU,CAACjE,WAAW,CAAC,6BAA8B,CAAC;IACtHC,iBAAiB,EAAEtB,YAAY,CAACO,wBAAwB,CAACe,iBAAiB,EAAEgE,UAAU,CAACV,iBAAiB,CAAC,mCAAoC,CAAC;IAC9IrD,eAAe,EAAEvB,YAAY,CAACO,wBAAwB,CAACgB,eAAe,EAAE+D,UAAU,CAAC/D,eAAe,CAAC,iCAAkC,CAAC;IACtIC,kBAAkB,EAAExB,YAAY,CAACO,wBAAwB,CAACiB,kBAAkB,EAAE8D,UAAU,CAAC9D,kBAAkB,CAAC,qCAAsC;EACtJ,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { __styles, mergeClasses, shorthands } from '@griffel/react';
|
|
2
|
+
import { HighContrastSelectorBlack, HighContrastSelector } from '../../utilities/index';
|
|
3
|
+
import { tokens, typographyStyles } from '@fluentui/react-theme';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export const popoverClassNames = {
|
|
8
|
+
calloutContentRoot: 'fui-cart__calloutContentRoot',
|
|
9
|
+
calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',
|
|
10
|
+
calloutContentX: 'fui-cart__calloutContentX',
|
|
11
|
+
calloutBlockContainer: 'fui-cart__calloutBlockContainer',
|
|
12
|
+
calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',
|
|
13
|
+
calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',
|
|
14
|
+
shapeStyles: 'fui-cart__shapeStyles',
|
|
15
|
+
calloutlegendText: 'fui-cart__calloutlegendText',
|
|
16
|
+
calloutContentY: 'fui-cart__calloutContentY',
|
|
17
|
+
descriptionMessage: 'fui-cart__descriptionMessage',
|
|
18
|
+
ratio: 'fui-cart__ratio',
|
|
19
|
+
numerator: 'fui-cart__numerator',
|
|
20
|
+
denominator: 'fui-cart__denominator',
|
|
21
|
+
calloutInfoContainer: 'fui-cart__calloutInfoContainer',
|
|
22
|
+
calloutContainer: 'fui-cart__calloutContainer'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Base Styles
|
|
26
|
+
*/
|
|
27
|
+
const useStyles = /*#__PURE__*/__styles({
|
|
28
|
+
calloutContentRoot: {
|
|
29
|
+
mc9l5x: "f1bxpd7w",
|
|
30
|
+
B68tc82: 0,
|
|
31
|
+
Bmxbyg5: 0,
|
|
32
|
+
Bpg54ce: "f1a3p1vp",
|
|
33
|
+
z8tnut: "f1dvrhzg",
|
|
34
|
+
z189sj: ["fjnv7mu", "fae8789"],
|
|
35
|
+
Byoj8tv: "f1av7aef",
|
|
36
|
+
uwmqm3: ["fae8789", "fjnv7mu"],
|
|
37
|
+
De3pzq: "fxugw4r",
|
|
38
|
+
jy2i9i: "fronft5"
|
|
39
|
+
},
|
|
40
|
+
calloutDateTimeContainer: {
|
|
41
|
+
mc9l5x: "f22iagw",
|
|
42
|
+
Beiy3e4: "f1063pyq",
|
|
43
|
+
Brf1p80: "f1869bpl"
|
|
44
|
+
},
|
|
45
|
+
calloutContentX: {
|
|
46
|
+
Bahqtrf: "fk6fouc",
|
|
47
|
+
Be2twd7: "fy9rknc",
|
|
48
|
+
Bhrd7zp: "figsok6",
|
|
49
|
+
Bg96gwp: "fwrc4pm",
|
|
50
|
+
abs64n: "fp25eh",
|
|
51
|
+
sj55zd: "fkfq4zb"
|
|
52
|
+
},
|
|
53
|
+
calloutBlockContainer: {
|
|
54
|
+
sj55zd: "fkfq4zb"
|
|
55
|
+
},
|
|
56
|
+
calloutBlockContainerCartesian: {
|
|
57
|
+
Bahqtrf: "fk6fouc",
|
|
58
|
+
Be2twd7: "fy9rknc",
|
|
59
|
+
Bhrd7zp: "figsok6",
|
|
60
|
+
Bg96gwp: "fwrc4pm",
|
|
61
|
+
B6of3ja: "f7jvbu2"
|
|
62
|
+
},
|
|
63
|
+
calloutBlockContainerNonCartesian: {
|
|
64
|
+
Be2twd7: "fojgt09",
|
|
65
|
+
Bg96gwp: "f82itaf",
|
|
66
|
+
bo4z9n: "fg7a56h"
|
|
67
|
+
},
|
|
68
|
+
calloutBlockContainertoDrawShapefalse: {
|
|
69
|
+
bo4z9n: "fg7a56h",
|
|
70
|
+
uwmqm3: ["f1f5gg8d", "f1vdfbxk"]
|
|
71
|
+
},
|
|
72
|
+
calloutBlockContainertoDrawShapetrue: {
|
|
73
|
+
mc9l5x: "fwk3njj"
|
|
74
|
+
},
|
|
75
|
+
shapeStyles: {
|
|
76
|
+
t21cq0: ["f1vcna3q", "foyynoy"]
|
|
77
|
+
},
|
|
78
|
+
calloutLegendText: {
|
|
79
|
+
Bahqtrf: "fk6fouc",
|
|
80
|
+
Be2twd7: "fy9rknc",
|
|
81
|
+
Bhrd7zp: "figsok6",
|
|
82
|
+
Bg96gwp: "fwrc4pm",
|
|
83
|
+
sj55zd: "fkfq4zb",
|
|
84
|
+
B1cpy0k: "fig6os7"
|
|
85
|
+
},
|
|
86
|
+
calloutContentY: {
|
|
87
|
+
B1cpy0k: "fig6os7"
|
|
88
|
+
},
|
|
89
|
+
calloutContentYCartesian: {
|
|
90
|
+
Bahqtrf: "fk6fouc",
|
|
91
|
+
Be2twd7: "fod5ikn",
|
|
92
|
+
Bhrd7zp: "flh3ekv",
|
|
93
|
+
Bg96gwp: "faaz57k"
|
|
94
|
+
},
|
|
95
|
+
calloutContentYNonCartesian: {
|
|
96
|
+
Bahqtrf: "fk6fouc",
|
|
97
|
+
Be2twd7: "fojgt09",
|
|
98
|
+
Bhrd7zp: "fl43uef",
|
|
99
|
+
Bg96gwp: "fcen8rp"
|
|
100
|
+
},
|
|
101
|
+
descriptionMessage: {
|
|
102
|
+
Bahqtrf: "fk6fouc",
|
|
103
|
+
Be2twd7: "fy9rknc",
|
|
104
|
+
Bhrd7zp: "figsok6",
|
|
105
|
+
Bg96gwp: "fwrc4pm",
|
|
106
|
+
sj55zd: "fkfq4zb",
|
|
107
|
+
B6of3ja: "f1gaxbfw",
|
|
108
|
+
z8tnut: "f1ngh7ph",
|
|
109
|
+
B4j52fo: "f1pgliyk"
|
|
110
|
+
},
|
|
111
|
+
ratio: {
|
|
112
|
+
Bahqtrf: "fk6fouc",
|
|
113
|
+
Be2twd7: "f13mqy1h",
|
|
114
|
+
Bhrd7zp: "figsok6",
|
|
115
|
+
Bg96gwp: "fcpl73t",
|
|
116
|
+
Frg6f3: ["f1t5qyk5", "f1ikr372"],
|
|
117
|
+
sj55zd: "f19n0e5"
|
|
118
|
+
},
|
|
119
|
+
numerator: {
|
|
120
|
+
Bahqtrf: "fk6fouc",
|
|
121
|
+
Be2twd7: "f13mqy1h",
|
|
122
|
+
Bhrd7zp: "fl43uef",
|
|
123
|
+
Bg96gwp: "fcpl73t"
|
|
124
|
+
},
|
|
125
|
+
denominator: {
|
|
126
|
+
Bahqtrf: "fk6fouc",
|
|
127
|
+
Be2twd7: "f13mqy1h",
|
|
128
|
+
Bhrd7zp: "fl43uef",
|
|
129
|
+
Bg96gwp: "fcpl73t"
|
|
130
|
+
},
|
|
131
|
+
calloutInfoContainer: {
|
|
132
|
+
uwmqm3: ["f1f5gg8d", "f1vdfbxk"]
|
|
133
|
+
},
|
|
134
|
+
calloutContainer: {
|
|
135
|
+
a6j6cd: "f1j86lqe",
|
|
136
|
+
B93v9kj: "f15mrrko"
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
d: [".f1bxpd7w{display:contents;}", [".f1a3p1vp{overflow:hidden;}", {
|
|
140
|
+
p: -1
|
|
141
|
+
}], ".f1dvrhzg{padding-top:11px 16px 10px 16px;}", ".fjnv7mu{padding-right:11px 16px 10px 16px;}", ".fae8789{padding-left:11px 16px 10px 16px;}", ".f1av7aef{padding-bottom:11px 16px 10px 16px;}", ".fxugw4r{background-color:var(--colorNeutralBackground1);}", ".fronft5{background-blend-mode:normal,luminosity;}", ".f22iagw{display:flex;}", ".f1063pyq{flex-direction:row;}", ".f1869bpl{justify-content:space-between;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fp25eh{opacity:0.8;}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f7jvbu2{margin-top:13px;}", ".fojgt09{font-size:var(--fontSizeHero700);}", ".f82itaf{line-height:22px;}", ".f1f5gg8d{padding-left:var(--spacingHorizontalS);}", ".f1vdfbxk{padding-right:var(--spacingHorizontalS);}", ".fwk3njj{display:inline-grid;}", ".f1vcna3q{margin-right:var(--spacingHorizontalS);}", ".foyynoy{margin-left:var(--spacingHorizontalS);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".flh3ekv{font-weight:var(--fontWeightBold);}", ".faaz57k{line-height:var(--lineHeightBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".fcen8rp{line-height:var(--lineHeightHero700);}", ".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}", ".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}", ".f1pgliyk{border-top-width:1px solid var(--colorNeutralStroke2);}", ".f13mqy1h{font-size:var(--fontSizeBase100);}", ".fcpl73t{line-height:var(--lineHeightBase100);}", ".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}", ".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}", ".f19n0e5{color:var(--colorNeutralForeground1);}"],
|
|
142
|
+
m: [["@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.fg7a56h selectors{forced-color-adjust:none;}}", {
|
|
143
|
+
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
144
|
+
}], ["@media screen and (-ms-high-contrast: white-on-black),screen and (forced-colors: active) and (prefers-color-scheme: dark){.fig6os7 selectors{color:rgb(255, 255, 255);}}", {
|
|
145
|
+
m: "screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)"
|
|
146
|
+
}], ["@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.f1j86lqe{fill:WindowText;}}", {
|
|
147
|
+
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
148
|
+
}], ["@media screen and (-ms-high-contrast: active),screen and (forced-colors: active){.f15mrrko{forced-color-adjust:none;}}", {
|
|
149
|
+
m: "screen and (-ms-high-contrast: active), screen and (forced-colors: active)"
|
|
150
|
+
}]]
|
|
151
|
+
});
|
|
152
|
+
/**
|
|
153
|
+
* Apply styling to the Carousel slots based on the state
|
|
154
|
+
*/
|
|
155
|
+
export const usePopoverStyles_unstable = props => {
|
|
156
|
+
const {
|
|
157
|
+
isCartesian
|
|
158
|
+
} = props;
|
|
159
|
+
const baseStyles = useStyles();
|
|
160
|
+
return {
|
|
161
|
+
calloutContentRoot: mergeClasses(popoverClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/),
|
|
162
|
+
calloutDateTimeContainer: mergeClasses(popoverClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/),
|
|
163
|
+
calloutContentX: mergeClasses(popoverClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/),
|
|
164
|
+
calloutBlockContainer: mergeClasses(popoverClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainerCartesian*/, isCartesian ? baseStyles.calloutBlockContainerCartesian : baseStyles.calloutBlockContainerNonCartesian),
|
|
165
|
+
calloutBlockContainertoDrawShapefalse: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/),
|
|
166
|
+
calloutBlockContainertoDrawShapetrue: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/),
|
|
167
|
+
shapeStyles: mergeClasses(popoverClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/),
|
|
168
|
+
calloutlegendText: mergeClasses(popoverClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/),
|
|
169
|
+
calloutContentY: mergeClasses(popoverClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentYNonCartesian*/, isCartesian ? baseStyles.calloutContentYCartesian : baseStyles.calloutContentYNonCartesian),
|
|
170
|
+
descriptionMessage: mergeClasses(popoverClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/),
|
|
171
|
+
ratio: mergeClasses(popoverClassNames.ratio, baseStyles.ratio /*props.styles?.ratio*/),
|
|
172
|
+
numerator: mergeClasses(popoverClassNames.numerator, baseStyles.numerator /*props.styles?.numerator*/),
|
|
173
|
+
denominator: mergeClasses(popoverClassNames.denominator, baseStyles.denominator /*props.styles?.denominator*/),
|
|
174
|
+
calloutInfoContainer: mergeClasses(popoverClassNames.calloutInfoContainer, baseStyles.calloutInfoContainer),
|
|
175
|
+
calloutContainer: mergeClasses(popoverClassNames.calloutContainer, baseStyles.calloutContainer)
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=useChartPopoverStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","shorthands","HighContrastSelectorBlack","HighContrastSelector","tokens","typographyStyles","popoverClassNames","calloutContentRoot","calloutDateTimeContainer","calloutContentX","calloutBlockContainer","calloutBlockContainertoDrawShapefalse","calloutBlockContainertoDrawShapetrue","shapeStyles","calloutlegendText","calloutContentY","descriptionMessage","ratio","numerator","denominator","calloutInfoContainer","calloutContainer","useStyles","mc9l5x","B68tc82","Bmxbyg5","Bpg54ce","z8tnut","z189sj","Byoj8tv","uwmqm3","De3pzq","jy2i9i","Beiy3e4","Brf1p80","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","abs64n","sj55zd","calloutBlockContainerCartesian","B6of3ja","calloutBlockContainerNonCartesian","bo4z9n","t21cq0","calloutLegendText","B1cpy0k","calloutContentYCartesian","calloutContentYNonCartesian","B4j52fo","Frg6f3","a6j6cd","B93v9kj","d","p","m","usePopoverStyles_unstable","props","isCartesian","baseStyles"],"sources":["useChartPopoverStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { HighContrastSelectorBlack, HighContrastSelector } from '../../utilities/index';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\n/**\n * @internal\n */ export const popoverClassNames = {\n calloutContentRoot: 'fui-cart__calloutContentRoot',\n calloutDateTimeContainer: 'fui-cart__calloutDateTimeContainer',\n calloutContentX: 'fui-cart__calloutContentX',\n calloutBlockContainer: 'fui-cart__calloutBlockContainer',\n calloutBlockContainertoDrawShapefalse: 'fui-cart__calloutBlockContainertoDrawShapefalse',\n calloutBlockContainertoDrawShapetrue: 'fui-cart__calloutBlockContainertoDrawShapetrue',\n shapeStyles: 'fui-cart__shapeStyles',\n calloutlegendText: 'fui-cart__calloutlegendText',\n calloutContentY: 'fui-cart__calloutContentY',\n descriptionMessage: 'fui-cart__descriptionMessage',\n ratio: 'fui-cart__ratio',\n numerator: 'fui-cart__numerator',\n denominator: 'fui-cart__denominator',\n calloutInfoContainer: 'fui-cart__calloutInfoContainer',\n calloutContainer: 'fui-cart__calloutContainer'\n};\n/**\n * Base Styles\n */ const useStyles = makeStyles({\n calloutContentRoot: {\n display: 'contents',\n overflow: 'hidden',\n ...shorthands.padding('11px 16px 10px 16px'),\n backgroundColor: tokens.colorNeutralBackground1,\n backgroundBlendMode: 'normal, luminosity'\n },\n calloutDateTimeContainer: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between'\n },\n calloutContentX: {\n ...typographyStyles.caption1,\n opacity: '0.8',\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainer: {\n color: tokens.colorNeutralForeground2\n },\n calloutBlockContainerCartesian: {\n ...typographyStyles.caption1,\n marginTop: '13px'\n },\n calloutBlockContainerNonCartesian: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: '22px',\n '& selectors': {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none'\n }\n }\n },\n calloutBlockContainertoDrawShapefalse: {\n '& selectors': {\n [HighContrastSelector]: {\n forcedColorAdjust: 'none'\n }\n },\n paddingLeft: tokens.spacingHorizontalS\n },\n calloutBlockContainertoDrawShapetrue: {\n display: 'inline-grid'\n },\n shapeStyles: {\n marginRight: tokens.spacingHorizontalS\n },\n calloutLegendText: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n '& selectors': {\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)'\n }\n }\n },\n calloutContentY: {\n '& selectors': {\n [HighContrastSelectorBlack]: {\n color: 'rgb(255, 255, 255)'\n }\n }\n },\n calloutContentYCartesian: {\n ...typographyStyles.subtitle2Stronger\n },\n calloutContentYNonCartesian: {\n ...typographyStyles.title2\n },\n descriptionMessage: {\n ...typographyStyles.caption1,\n color: tokens.colorNeutralForeground2,\n marginTop: tokens.spacingVerticalMNudge,\n paddingTop: tokens.spacingVerticalMNudge,\n ...shorthands.borderTop(`1px solid ${tokens.colorNeutralStroke2}`)\n },\n ratio: {\n ...typographyStyles.caption2,\n marginLeft: tokens.spacingHorizontalSNudge,\n color: tokens.colorNeutralForeground1\n },\n numerator: {\n ...typographyStyles.caption2Strong\n },\n denominator: {\n ...typographyStyles.caption2Strong\n },\n calloutInfoContainer: {\n paddingLeft: tokens.spacingHorizontalS\n },\n calloutContainer: {\n [HighContrastSelector]: {\n fill: 'WindowText',\n forcedColorAdjust: 'none'\n }\n }\n});\n/**\n * Apply styling to the Carousel slots based on the state\n */ export const usePopoverStyles_unstable = (props)=>{\n const { isCartesian } = props;\n const baseStyles = useStyles();\n return {\n calloutContentRoot: mergeClasses(popoverClassNames.calloutContentRoot, baseStyles.calloutContentRoot /*props.styles?. calloutContentRoot*/ ),\n calloutDateTimeContainer: mergeClasses(popoverClassNames.calloutDateTimeContainer, baseStyles.calloutDateTimeContainer /*props.styles?.calloutDateTimeContainer*/ ),\n calloutContentX: mergeClasses(popoverClassNames.calloutContentX, baseStyles.calloutContentX /*props.styles?.calloutContentX*/ ),\n calloutBlockContainer: mergeClasses(popoverClassNames.calloutBlockContainer, baseStyles.calloutBlockContainer /*props.styles?.calloutBlockContainerCartesian*/ , isCartesian ? baseStyles.calloutBlockContainerCartesian : baseStyles.calloutBlockContainerNonCartesian),\n calloutBlockContainertoDrawShapefalse: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapefalse, baseStyles.calloutBlockContainertoDrawShapefalse /*props.styles?.calloutBlockContainertoDrawShapefalse*/ ),\n calloutBlockContainertoDrawShapetrue: mergeClasses(popoverClassNames.calloutBlockContainertoDrawShapetrue, baseStyles.calloutBlockContainertoDrawShapetrue /*props.styles?.calloutBlockContainertoDrawShapetrue*/ ),\n shapeStyles: mergeClasses(popoverClassNames.shapeStyles, baseStyles.shapeStyles /*props.styles?.shapeStyles*/ ),\n calloutlegendText: mergeClasses(popoverClassNames.calloutlegendText, baseStyles.calloutLegendText /*props.styles?.calloutlegendText*/ ),\n calloutContentY: mergeClasses(popoverClassNames.calloutContentY, baseStyles.calloutContentY /*props.styles?.calloutContentYNonCartesian*/ , isCartesian ? baseStyles.calloutContentYCartesian : baseStyles.calloutContentYNonCartesian),\n descriptionMessage: mergeClasses(popoverClassNames.descriptionMessage, baseStyles.descriptionMessage /*props.styles?. descriptionMessage*/ ),\n ratio: mergeClasses(popoverClassNames.ratio, baseStyles.ratio /*props.styles?.ratio*/ ),\n numerator: mergeClasses(popoverClassNames.numerator, baseStyles.numerator /*props.styles?.numerator*/ ),\n denominator: mergeClasses(popoverClassNames.denominator, baseStyles.denominator /*props.styles?.denominator*/ ),\n calloutInfoContainer: mergeClasses(popoverClassNames.calloutInfoContainer, baseStyles.calloutInfoContainer),\n calloutContainer: mergeClasses(popoverClassNames.calloutContainer, baseStyles.calloutContainer)\n };\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,SAASC,yBAAyB,EAAEC,oBAAoB,QAAQ,uBAAuB;AACvF,SAASC,MAAM,EAAEC,gBAAgB,QAAQ,uBAAuB;AAChE;AACA;AACA;AAAI,OAAO,MAAMC,iBAAiB,GAAG;EACjCC,kBAAkB,EAAE,8BAA8B;EAClDC,wBAAwB,EAAE,oCAAoC;EAC9DC,eAAe,EAAE,2BAA2B;EAC5CC,qBAAqB,EAAE,iCAAiC;EACxDC,qCAAqC,EAAE,iDAAiD;EACxFC,oCAAoC,EAAE,gDAAgD;EACtFC,WAAW,EAAE,uBAAuB;EACpCC,iBAAiB,EAAE,6BAA6B;EAChDC,eAAe,EAAE,2BAA2B;EAC5CC,kBAAkB,EAAE,8BAA8B;EAClDC,KAAK,EAAE,iBAAiB;EACxBC,SAAS,EAAE,qBAAqB;EAChCC,WAAW,EAAE,uBAAuB;EACpCC,oBAAoB,EAAE,gCAAgC;EACtDC,gBAAgB,EAAE;AACtB,CAAC;AACD;AACA;AACA;AAAI,MAAMC,SAAS,gBAAGvB,QAAA;EAAAQ,kBAAA;IAAAgB,MAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAxB,wBAAA;IAAAe,MAAA;IAAAU,OAAA;IAAAC,OAAA;EAAA;EAAAzB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,+CAAgD4C,WAAW,GAAGC,UAAU,CAACZ,wBAAwB,GAAGY,UAAU,CAACX,2BAA2B,CAAC;IACvOjC,kBAAkB,EAAEhB,YAAY,CAACM,iBAAiB,CAACU,kBAAkB,EAAE4C,UAAU,CAAC5C,kBAAkB,CAAC,qCAAsC,CAAC;IAC5IC,KAAK,EAAEjB,YAAY,CAACM,iBAAiB,CAACW,KAAK,EAAE2C,UAAU,CAAC3C,KAAK,CAAC,uBAAwB,CAAC;IACvFC,SAAS,EAAElB,YAAY,CAACM,iBAAiB,CAACY,SAAS,EAAE0C,UAAU,CAAC1C,SAAS,CAAC,2BAA4B,CAAC;IACvGC,WAAW,EAAEnB,YAAY,CAACM,iBAAiB,CAACa,WAAW,EAAEyC,UAAU,CAACzC,WAAW,CAAC,6BAA8B,CAAC;IAC/GC,oBAAoB,EAAEpB,YAAY,CAACM,iBAAiB,CAACc,oBAAoB,EAAEwC,UAAU,CAACxC,oBAAoB,CAAC;IAC3GC,gBAAgB,EAAErB,YAAY,CAACM,iBAAiB,CAACe,gBAAgB,EAAEuC,UAAU,CAACvC,gBAAgB;EAClG,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */ import * as React from 'react';
|
|
2
|
+
import { DonutChart } from '../DonutChart/index';
|
|
3
|
+
import { isArrayOrTypedArray, isDateArray, isNumberArray, isMonthArray, sanitizeJson, updateXValues, transformPlotlyJsonToDonutProps, transformPlotlyJsonToScatterChartProps, transformPlotlyJsonToVBCProps } from './PlotlySchemaAdapter';
|
|
4
|
+
import { LineChart } from '../LineChart/index';
|
|
5
|
+
import { VerticalBarChart } from '../VerticalBarChart/index';
|
|
6
|
+
import { toImage } from './imageExporter';
|
|
7
|
+
import { tokens } from '@fluentui/react-theme';
|
|
8
|
+
const useColorMapping = ()=>{
|
|
9
|
+
const colorMap = React.useRef(new Map());
|
|
10
|
+
return colorMap;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* DeclarativeChart component.
|
|
14
|
+
* {@docCategory DeclarativeChart}
|
|
15
|
+
*/ export const DeclarativeChart = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
16
|
+
const { plotlySchema } = sanitizeJson(props.chartSchema);
|
|
17
|
+
const plotlyInput = plotlySchema;
|
|
18
|
+
let { selectedLegends } = plotlySchema;
|
|
19
|
+
const colorMap = useColorMapping();
|
|
20
|
+
const isDarkTheme = false;
|
|
21
|
+
const chartRef = React.useRef(null);
|
|
22
|
+
if (!isArrayOrTypedArray(selectedLegends)) {
|
|
23
|
+
selectedLegends = [];
|
|
24
|
+
}
|
|
25
|
+
const [activeLegends, setActiveLegends] = React.useState(selectedLegends);
|
|
26
|
+
const onActiveLegendsChange = (keys)=>{
|
|
27
|
+
setActiveLegends(keys);
|
|
28
|
+
if (props.onSchemaChange) {
|
|
29
|
+
props.onSchemaChange({
|
|
30
|
+
plotlySchema: {
|
|
31
|
+
plotlyInput,
|
|
32
|
+
selectedLegends: keys
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
React.useEffect(()=>{
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
39
|
+
const { plotlySchema } = sanitizeJson(props.chartSchema);
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
41
|
+
const { selectedLegends } = plotlySchema;
|
|
42
|
+
setActiveLegends(selectedLegends !== null && selectedLegends !== void 0 ? selectedLegends : []);
|
|
43
|
+
}, [
|
|
44
|
+
props.chartSchema
|
|
45
|
+
]);
|
|
46
|
+
const multiSelectLegendProps = {
|
|
47
|
+
canSelectMultipleLegends: true,
|
|
48
|
+
onChange: onActiveLegendsChange,
|
|
49
|
+
selectedLegends: activeLegends
|
|
50
|
+
};
|
|
51
|
+
const commonProps = {
|
|
52
|
+
legendProps: multiSelectLegendProps,
|
|
53
|
+
componentRef: chartRef
|
|
54
|
+
};
|
|
55
|
+
const checkAndRenderChart = (renderChartJsx, isAreaChart = false)=>{
|
|
56
|
+
var _plotlyInput_data_;
|
|
57
|
+
const xValues = plotlyInput.data[0].x;
|
|
58
|
+
const isXDate = isDateArray(xValues);
|
|
59
|
+
const isXNumber = isNumberArray(xValues);
|
|
60
|
+
const isXMonth = isMonthArray(xValues);
|
|
61
|
+
if (isXDate || isXNumber) {
|
|
62
|
+
const chartProps = {
|
|
63
|
+
...transformPlotlyJsonToScatterChartProps({
|
|
64
|
+
data: plotlyInput.data,
|
|
65
|
+
layout: plotlyInput.layout
|
|
66
|
+
}, isAreaChart, colorMap, isDarkTheme),
|
|
67
|
+
...commonProps
|
|
68
|
+
};
|
|
69
|
+
return renderChartJsx(chartProps);
|
|
70
|
+
} else if (isXMonth) {
|
|
71
|
+
const updatedData = plotlyInput.data.map((dataPoint)=>({
|
|
72
|
+
...dataPoint,
|
|
73
|
+
x: updateXValues(dataPoint.x)
|
|
74
|
+
}));
|
|
75
|
+
const chartProps = {
|
|
76
|
+
...transformPlotlyJsonToScatterChartProps({
|
|
77
|
+
data: updatedData,
|
|
78
|
+
layout: plotlyInput.layout
|
|
79
|
+
}, isAreaChart, colorMap, isDarkTheme),
|
|
80
|
+
...commonProps
|
|
81
|
+
};
|
|
82
|
+
return renderChartJsx(chartProps);
|
|
83
|
+
}
|
|
84
|
+
throw new Error(`Unsupported chart type :${(_plotlyInput_data_ = plotlyInput.data[0]) === null || _plotlyInput_data_ === void 0 ? void 0 : _plotlyInput_data_.type}`);
|
|
85
|
+
};
|
|
86
|
+
const exportAsImage = React.useCallback((opts)=>{
|
|
87
|
+
var _chartRef_current;
|
|
88
|
+
return toImage((_chartRef_current = chartRef.current) === null || _chartRef_current === void 0 ? void 0 : _chartRef_current.chartContainer, {
|
|
89
|
+
background: tokens.colorNeutralBackground1,
|
|
90
|
+
scale: 5,
|
|
91
|
+
...opts
|
|
92
|
+
});
|
|
93
|
+
}, []);
|
|
94
|
+
React.useImperativeHandle(props.componentRef, ()=>({
|
|
95
|
+
exportAsImage
|
|
96
|
+
}), [
|
|
97
|
+
exportAsImage
|
|
98
|
+
]);
|
|
99
|
+
switch(plotlyInput.data[0].type){
|
|
100
|
+
case 'pie':
|
|
101
|
+
return /*#__PURE__*/ React.createElement(DonutChart, {
|
|
102
|
+
...transformPlotlyJsonToDonutProps(plotlySchema, colorMap, isDarkTheme),
|
|
103
|
+
...commonProps
|
|
104
|
+
});
|
|
105
|
+
case 'bar':
|
|
106
|
+
var _plotlyInput_data_;
|
|
107
|
+
throw new Error(`Unsupported chart type :${(_plotlyInput_data_ = plotlyInput.data[0]) === null || _plotlyInput_data_ === void 0 ? void 0 : _plotlyInput_data_.type}`);
|
|
108
|
+
case 'scatter':
|
|
109
|
+
if (plotlyInput.data[0].mode === 'markers') {
|
|
110
|
+
var _plotlyInput_data_1, _plotlyInput_data_2;
|
|
111
|
+
throw new Error(`Unsupported chart - type :${(_plotlyInput_data_1 = plotlyInput.data[0]) === null || _plotlyInput_data_1 === void 0 ? void 0 : _plotlyInput_data_1.type}, mode: ${(_plotlyInput_data_2 = plotlyInput.data[0]) === null || _plotlyInput_data_2 === void 0 ? void 0 : _plotlyInput_data_2.mode}`);
|
|
112
|
+
}
|
|
113
|
+
const isAreaChart = plotlyInput.data.some((series)=>series.fill === 'tonexty' || series.fill === 'tozeroy');
|
|
114
|
+
const renderChartJsx = (chartProps)=>{
|
|
115
|
+
if (isAreaChart) {
|
|
116
|
+
var _plotlyInput_data_, _plotlyInput_data_1;
|
|
117
|
+
throw new Error(`Unsupported chart type :${(_plotlyInput_data_ = plotlyInput.data[0]) === null || _plotlyInput_data_ === void 0 ? void 0 : _plotlyInput_data_.type}, fill: ${(_plotlyInput_data_1 = plotlyInput.data[0]) === null || _plotlyInput_data_1 === void 0 ? void 0 : _plotlyInput_data_1.fill}`);
|
|
118
|
+
}
|
|
119
|
+
return /*#__PURE__*/ React.createElement(LineChart, chartProps);
|
|
120
|
+
};
|
|
121
|
+
return checkAndRenderChart(renderChartJsx, isAreaChart);
|
|
122
|
+
case 'heatmap':
|
|
123
|
+
var _plotlyInput_data_3;
|
|
124
|
+
throw new Error(`Unsupported chart type :${(_plotlyInput_data_3 = plotlyInput.data[0]) === null || _plotlyInput_data_3 === void 0 ? void 0 : _plotlyInput_data_3.type}`);
|
|
125
|
+
case 'sankey':
|
|
126
|
+
var _plotlyInput_data_4;
|
|
127
|
+
throw new Error(`Unsupported chart type :${(_plotlyInput_data_4 = plotlyInput.data[0]) === null || _plotlyInput_data_4 === void 0 ? void 0 : _plotlyInput_data_4.type}`);
|
|
128
|
+
case 'indicator':
|
|
129
|
+
case 'gauge':
|
|
130
|
+
var _plotlyInput_data_5, _plotlyInput_data_6;
|
|
131
|
+
throw new Error(`Unsupported chart - type: ${(_plotlyInput_data_5 = plotlyInput.data[0]) === null || _plotlyInput_data_5 === void 0 ? void 0 : _plotlyInput_data_5.type}, mode: ${(_plotlyInput_data_6 = plotlyInput.data[0]) === null || _plotlyInput_data_6 === void 0 ? void 0 : _plotlyInput_data_6.mode}`);
|
|
132
|
+
case 'histogram':
|
|
133
|
+
return /*#__PURE__*/ React.createElement(VerticalBarChart, {
|
|
134
|
+
...transformPlotlyJsonToVBCProps(plotlySchema, colorMap, isDarkTheme),
|
|
135
|
+
...commonProps
|
|
136
|
+
});
|
|
137
|
+
default:
|
|
138
|
+
var _plotlyInput_data_7;
|
|
139
|
+
const xValues = plotlyInput.data[0].x;
|
|
140
|
+
const yValues = plotlyInput.data[0].y;
|
|
141
|
+
if (xValues && yValues && xValues.length > 0 && yValues.length > 0) {
|
|
142
|
+
const renderLineChartJsx = (chartProps)=>{
|
|
143
|
+
return /*#__PURE__*/ React.createElement(LineChart, chartProps);
|
|
144
|
+
};
|
|
145
|
+
return checkAndRenderChart(renderLineChartJsx);
|
|
146
|
+
}
|
|
147
|
+
throw new Error(`Unsupported chart type :${(_plotlyInput_data_7 = plotlyInput.data[0]) === null || _plotlyInput_data_7 === void 0 ? void 0 : _plotlyInput_data_7.type}`);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
DeclarativeChart.displayName = 'DeclarativeChart';
|