@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,249 @@
|
|
|
1
|
+
export const DataVizPalette = {
|
|
2
|
+
color1: 'qualitative.1',
|
|
3
|
+
color2: 'qualitative.2',
|
|
4
|
+
color3: 'qualitative.3',
|
|
5
|
+
color4: 'qualitative.4',
|
|
6
|
+
color5: 'qualitative.5',
|
|
7
|
+
color6: 'qualitative.6',
|
|
8
|
+
color7: 'qualitative.7',
|
|
9
|
+
color8: 'qualitative.8',
|
|
10
|
+
color9: 'qualitative.9',
|
|
11
|
+
color10: 'qualitative.10',
|
|
12
|
+
color11: 'qualitative.11',
|
|
13
|
+
color12: 'qualitative.12',
|
|
14
|
+
color13: 'qualitative.13',
|
|
15
|
+
color14: 'qualitative.14',
|
|
16
|
+
color15: 'qualitative.15',
|
|
17
|
+
color16: 'qualitative.16',
|
|
18
|
+
color17: 'qualitative.17',
|
|
19
|
+
color18: 'qualitative.18',
|
|
20
|
+
color19: 'qualitative.19',
|
|
21
|
+
color20: 'qualitative.20',
|
|
22
|
+
color21: 'qualitative.21',
|
|
23
|
+
color22: 'qualitative.22',
|
|
24
|
+
color23: 'qualitative.23',
|
|
25
|
+
color24: 'qualitative.24',
|
|
26
|
+
color25: 'qualitative.25',
|
|
27
|
+
color26: 'qualitative.26',
|
|
28
|
+
color27: 'qualitative.27',
|
|
29
|
+
color28: 'qualitative.28',
|
|
30
|
+
color29: 'qualitative.29',
|
|
31
|
+
color30: 'qualitative.30',
|
|
32
|
+
color31: 'qualitative.31',
|
|
33
|
+
color32: 'qualitative.32',
|
|
34
|
+
color33: 'qualitative.33',
|
|
35
|
+
color34: 'qualitative.34',
|
|
36
|
+
color35: 'qualitative.35',
|
|
37
|
+
color36: 'qualitative.36',
|
|
38
|
+
color37: 'qualitative.37',
|
|
39
|
+
color38: 'qualitative.38',
|
|
40
|
+
color39: 'qualitative.39',
|
|
41
|
+
color40: 'qualitative.40',
|
|
42
|
+
info: 'semantic.info',
|
|
43
|
+
disabled: 'semantic.disabled',
|
|
44
|
+
highError: 'semantic.highError',
|
|
45
|
+
error: 'semantic.error',
|
|
46
|
+
warning: 'semantic.warning',
|
|
47
|
+
success: 'semantic.success',
|
|
48
|
+
highSuccess: 'semantic.highSuccess'
|
|
49
|
+
};
|
|
50
|
+
const QualitativePalette = {
|
|
51
|
+
'1': [
|
|
52
|
+
'#637cef'
|
|
53
|
+
],
|
|
54
|
+
'2': [
|
|
55
|
+
'#e3008c'
|
|
56
|
+
],
|
|
57
|
+
'3': [
|
|
58
|
+
'#2aa0a4'
|
|
59
|
+
],
|
|
60
|
+
'4': [
|
|
61
|
+
'#9373c0'
|
|
62
|
+
],
|
|
63
|
+
'5': [
|
|
64
|
+
'#13a10e'
|
|
65
|
+
],
|
|
66
|
+
'6': [
|
|
67
|
+
'#3a96dd'
|
|
68
|
+
],
|
|
69
|
+
'7': [
|
|
70
|
+
'#ca5010'
|
|
71
|
+
],
|
|
72
|
+
'8': [
|
|
73
|
+
'#57811b'
|
|
74
|
+
],
|
|
75
|
+
'9': [
|
|
76
|
+
'#b146c2'
|
|
77
|
+
],
|
|
78
|
+
'10': [
|
|
79
|
+
'#ae8c00'
|
|
80
|
+
],
|
|
81
|
+
'11': [
|
|
82
|
+
'#3c51b4',
|
|
83
|
+
'#93a4f4'
|
|
84
|
+
],
|
|
85
|
+
'12': [
|
|
86
|
+
'#ad006a',
|
|
87
|
+
'#ee5fb7'
|
|
88
|
+
],
|
|
89
|
+
'13': [
|
|
90
|
+
'#026467',
|
|
91
|
+
'#4cb4b7'
|
|
92
|
+
],
|
|
93
|
+
'14': [
|
|
94
|
+
'#674c8c',
|
|
95
|
+
'#a083c9'
|
|
96
|
+
],
|
|
97
|
+
'15': [
|
|
98
|
+
'#0e7a0b',
|
|
99
|
+
'#27ac22'
|
|
100
|
+
],
|
|
101
|
+
'16': [
|
|
102
|
+
'#2c72a8',
|
|
103
|
+
'#4fa1e1'
|
|
104
|
+
],
|
|
105
|
+
'17': [
|
|
106
|
+
'#9a3d0c',
|
|
107
|
+
'#d77440'
|
|
108
|
+
],
|
|
109
|
+
'18': [
|
|
110
|
+
'#405f14',
|
|
111
|
+
'#73aa24'
|
|
112
|
+
],
|
|
113
|
+
'19': [
|
|
114
|
+
'#863593',
|
|
115
|
+
'#c36bd1'
|
|
116
|
+
],
|
|
117
|
+
'20': [
|
|
118
|
+
'#6d5700',
|
|
119
|
+
'#d0b232'
|
|
120
|
+
],
|
|
121
|
+
'21': [
|
|
122
|
+
'#4f6bed'
|
|
123
|
+
],
|
|
124
|
+
'22': [
|
|
125
|
+
'#ea38a6'
|
|
126
|
+
],
|
|
127
|
+
'23': [
|
|
128
|
+
'#038387'
|
|
129
|
+
],
|
|
130
|
+
'24': [
|
|
131
|
+
'#8764b8'
|
|
132
|
+
],
|
|
133
|
+
'25': [
|
|
134
|
+
'#11910d'
|
|
135
|
+
],
|
|
136
|
+
'26': [
|
|
137
|
+
'#3487c7'
|
|
138
|
+
],
|
|
139
|
+
'27': [
|
|
140
|
+
'#d06228'
|
|
141
|
+
],
|
|
142
|
+
'28': [
|
|
143
|
+
'#689920'
|
|
144
|
+
],
|
|
145
|
+
'29': [
|
|
146
|
+
'#ba58c9'
|
|
147
|
+
],
|
|
148
|
+
'30': [
|
|
149
|
+
'#937700',
|
|
150
|
+
'#c19c00'
|
|
151
|
+
],
|
|
152
|
+
'31': [
|
|
153
|
+
'#2c3c85',
|
|
154
|
+
'#c8d1fa'
|
|
155
|
+
],
|
|
156
|
+
'32': [
|
|
157
|
+
'#7f004e',
|
|
158
|
+
'#f7adda'
|
|
159
|
+
],
|
|
160
|
+
'33': [
|
|
161
|
+
'#02494c',
|
|
162
|
+
'#9bd9db'
|
|
163
|
+
],
|
|
164
|
+
'34': [
|
|
165
|
+
'#4c3867',
|
|
166
|
+
'#b29ad4'
|
|
167
|
+
],
|
|
168
|
+
'35': [
|
|
169
|
+
'#0b5a08',
|
|
170
|
+
'#a7e3a5'
|
|
171
|
+
],
|
|
172
|
+
'36': [
|
|
173
|
+
'#20547c',
|
|
174
|
+
'#83bdeb'
|
|
175
|
+
],
|
|
176
|
+
'37': [
|
|
177
|
+
'#712d09',
|
|
178
|
+
'#df8e64'
|
|
179
|
+
],
|
|
180
|
+
'38': [
|
|
181
|
+
'#23330b',
|
|
182
|
+
'#a4cc6c'
|
|
183
|
+
],
|
|
184
|
+
'39': [
|
|
185
|
+
'#63276d',
|
|
186
|
+
'#cf87da'
|
|
187
|
+
],
|
|
188
|
+
'40': [
|
|
189
|
+
'#3a2f00',
|
|
190
|
+
'#dac157'
|
|
191
|
+
]
|
|
192
|
+
};
|
|
193
|
+
const SemanticPalette = {
|
|
194
|
+
info: [
|
|
195
|
+
'#015cda'
|
|
196
|
+
],
|
|
197
|
+
disabled: [
|
|
198
|
+
'#dbdbdb',
|
|
199
|
+
'#4d4d4d'
|
|
200
|
+
],
|
|
201
|
+
highError: [
|
|
202
|
+
'#6e0811',
|
|
203
|
+
'#cc2635'
|
|
204
|
+
],
|
|
205
|
+
error: [
|
|
206
|
+
'#c50f1f',
|
|
207
|
+
'#dc626d'
|
|
208
|
+
],
|
|
209
|
+
warning: [
|
|
210
|
+
'#f7630c',
|
|
211
|
+
'#f87528'
|
|
212
|
+
],
|
|
213
|
+
success: [
|
|
214
|
+
'#107c10',
|
|
215
|
+
'#54b054'
|
|
216
|
+
],
|
|
217
|
+
highSuccess: [
|
|
218
|
+
'#094509',
|
|
219
|
+
'#218c21'
|
|
220
|
+
]
|
|
221
|
+
};
|
|
222
|
+
const Colors = {
|
|
223
|
+
qualitative: QualitativePalette,
|
|
224
|
+
semantic: SemanticPalette
|
|
225
|
+
};
|
|
226
|
+
const QUALITATIVE_COLORS = Object.values(QualitativePalette);
|
|
227
|
+
const TOKENS = Object.values(DataVizPalette);
|
|
228
|
+
const getThemeSpecificColor = (colors, isDarkTheme)=>{
|
|
229
|
+
if (colors.length === 0) {
|
|
230
|
+
return '';
|
|
231
|
+
}
|
|
232
|
+
const colorIdx = Number(isDarkTheme);
|
|
233
|
+
if (colorIdx < colors.length) {
|
|
234
|
+
return colors[colorIdx];
|
|
235
|
+
}
|
|
236
|
+
return colors[0];
|
|
237
|
+
};
|
|
238
|
+
export const getNextColor = (index, offset = 0, isDarkTheme = false)=>{
|
|
239
|
+
const colors = QUALITATIVE_COLORS[(index + offset) % QUALITATIVE_COLORS.length];
|
|
240
|
+
return getThemeSpecificColor(colors, isDarkTheme);
|
|
241
|
+
};
|
|
242
|
+
export const getColorFromToken = (token, isDarkTheme = false)=>{
|
|
243
|
+
if (TOKENS.indexOf(token) >= 0) {
|
|
244
|
+
const [paletteName, colorCode] = token.split('.');
|
|
245
|
+
const colors = Colors[paletteName][colorCode];
|
|
246
|
+
return getThemeSpecificColor(colors, isDarkTheme);
|
|
247
|
+
}
|
|
248
|
+
return token;
|
|
249
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["colors.ts"],"sourcesContent":["export const DataVizPalette = {\n color1: 'qualitative.1',\n color2: 'qualitative.2',\n color3: 'qualitative.3',\n color4: 'qualitative.4',\n color5: 'qualitative.5',\n color6: 'qualitative.6',\n color7: 'qualitative.7',\n color8: 'qualitative.8',\n color9: 'qualitative.9',\n color10: 'qualitative.10',\n color11: 'qualitative.11',\n color12: 'qualitative.12',\n color13: 'qualitative.13',\n color14: 'qualitative.14',\n color15: 'qualitative.15',\n color16: 'qualitative.16',\n color17: 'qualitative.17',\n color18: 'qualitative.18',\n color19: 'qualitative.19',\n color20: 'qualitative.20',\n color21: 'qualitative.21',\n color22: 'qualitative.22',\n color23: 'qualitative.23',\n color24: 'qualitative.24',\n color25: 'qualitative.25',\n color26: 'qualitative.26',\n color27: 'qualitative.27',\n color28: 'qualitative.28',\n color29: 'qualitative.29',\n color30: 'qualitative.30',\n color31: 'qualitative.31',\n color32: 'qualitative.32',\n color33: 'qualitative.33',\n color34: 'qualitative.34',\n color35: 'qualitative.35',\n color36: 'qualitative.36',\n color37: 'qualitative.37',\n color38: 'qualitative.38',\n color39: 'qualitative.39',\n color40: 'qualitative.40',\n info: 'semantic.info',\n disabled: 'semantic.disabled',\n highError: 'semantic.highError',\n error: 'semantic.error',\n warning: 'semantic.warning',\n success: 'semantic.success',\n highSuccess: 'semantic.highSuccess',\n};\n\n/**\n * Key: Color code.\n * Value:\n * Index 0 - Default color / Color for light theme,\n * Index 1 - Color for dark theme\n */\ntype Palette = { [key: string]: string[] };\n\nconst QualitativePalette: Palette = {\n '1': ['#637cef'], // [cornflower.tint10],\n '2': ['#e3008c'], // [hotPink.primary],\n '3': ['#2aa0a4'], // [teal.tint20],\n '4': ['#9373c0'], // [orchid.tint10],\n '5': ['#13a10e'], // [lightGreen.primary],\n '6': ['#3a96dd'], // [lightBlue.primary],\n '7': ['#ca5010'], // [pumpkin.primary],\n '8': ['#57811b'], // [lime.shade20],\n '9': ['#b146c2'], // [lilac.primary],\n '10': ['#ae8c00'], // [gold.shade10],\n '11': ['#3c51b4', '#93a4f4'], // [cornflower.shade20, cornflower.tint30],\n '12': ['#ad006a', '#ee5fb7'], // [hotPink.shade20, hotPink.tint30],\n '13': ['#026467', '#4cb4b7'], // [teal.shade20, teal.tint30],\n '14': ['#674c8c', '#a083c9'], // [orchid.shade20, orchid.tint20],\n '15': ['#0e7a0b', '#27ac22'], // [lightGreen.shade20, lightGreen.tint10],\n '16': ['#2c72a8', '#4fa1e1'], // [lightBlue.shade20, lightBlue.tint10],\n '17': ['#9a3d0c', '#d77440'], // [pumpkin.shade20, pumpkin.tint20],\n '18': ['#405f14', '#73aa24'], // [lime.shade30, lime.primary],\n '19': ['#863593', '#c36bd1'], // [lilac.shade20, lilac.tint20],\n '20': ['#6d5700', '#d0b232'], // [gold.shade30, gold.tint20],\n '21': ['#4f6bed'], // [cornflower.primary],\n '22': ['#ea38a6'], // [hotPink.tint20],\n '23': ['#038387'], // [teal.primary],\n '24': ['#8764b8'], // [orchid.primary],\n '25': ['#11910d'], // [lightGreen.shade10],\n '26': ['#3487c7'], // [lightBlue.shade10],\n '27': ['#d06228'], // [pumpkin.tint10],\n '28': ['#689920'], // [lime.shade10],\n '29': ['#ba58c9'], // [lilac.tint10],\n '30': ['#937700', '#c19c00'], // [gold.shade20, gold.primary],\n '31': ['#2c3c85', '#c8d1fa'], // [cornflower.shade30, cornflower.tint40],\n '32': ['#7f004e', '#f7adda'], // [hotPink.shade30, hotPink.tint40],\n '33': ['#02494c', '#9bd9db'], // [teal.shade30, teal.tint40],\n '34': ['#4c3867', '#b29ad4'], // [orchid.shade30, orchid.tint30],\n '35': ['#0b5a08', '#a7e3a5'], // [lightGreen.shade30, lightGreen.tint40],\n '36': ['#20547c', '#83bdeb'], // [lightBlue.shade30, lightBlue.tint30],\n '37': ['#712d09', '#df8e64'], // [pumpkin.shade30, pumpkin.tint30],\n '38': ['#23330b', '#a4cc6c'], // [lime.shade40, lime.tint30],\n '39': ['#63276d', '#cf87da'], // [lilac.shade30, lilac.tint30],\n '40': ['#3a2f00', '#dac157'], // [gold.shade40, gold.tint30],\n};\n\nconst SemanticPalette: Palette = {\n info: ['#015cda'],\n disabled: ['#dbdbdb', '#4d4d4d'], // [grey[86], grey[30]]\n highError: ['#6e0811', '#cc2635'], // [cranberry.shade30, cranberry.tint10],\n error: ['#c50f1f', '#dc626d'], // [cranberry.primary, cranberry.tint30],\n warning: ['#f7630c', '#f87528'], // [orange.primary, orange.tint10],\n success: ['#107c10', '#54b054'], // [green.primary, green.tint30],\n highSuccess: ['#094509', '#218c21'], // [green.shade30, green.tint10],\n};\n\nconst Colors: { [key: string]: Palette } = {\n qualitative: QualitativePalette,\n semantic: SemanticPalette,\n};\n\nconst QUALITATIVE_COLORS = Object.values(QualitativePalette);\nconst TOKENS = Object.values(DataVizPalette);\n\nconst getThemeSpecificColor = (colors: string[], isDarkTheme: boolean): string => {\n if (colors.length === 0) {\n return '';\n }\n const colorIdx = Number(isDarkTheme);\n if (colorIdx < colors.length) {\n return colors[colorIdx];\n }\n return colors[0];\n};\n\nexport const getNextColor = (index: number, offset: number = 0, isDarkTheme: boolean = false): string => {\n const colors = QUALITATIVE_COLORS[(index + offset) % QUALITATIVE_COLORS.length];\n return getThemeSpecificColor(colors, isDarkTheme);\n};\n\nexport const getColorFromToken = (token: string, isDarkTheme: boolean = false): string => {\n if (TOKENS.indexOf(token) >= 0) {\n const [paletteName, colorCode] = token.split('.');\n const colors = Colors[paletteName][colorCode];\n return getThemeSpecificColor(colors, isDarkTheme);\n }\n return token;\n};\n"],"names":["DataVizPalette","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color13","color14","color15","color16","color17","color18","color19","color20","color21","color22","color23","color24","color25","color26","color27","color28","color29","color30","color31","color32","color33","color34","color35","color36","color37","color38","color39","color40","info","disabled","highError","error","warning","success","highSuccess","QualitativePalette","SemanticPalette","Colors","qualitative","semantic","QUALITATIVE_COLORS","Object","values","TOKENS","getThemeSpecificColor","colors","isDarkTheme","length","colorIdx","Number","getNextColor","index","offset","getColorFromToken","token","indexOf","paletteName","colorCode","split"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { canUseDOM } from '@fluentui/react-utilities';
|
|
2
|
+
let _window = undefined;
|
|
3
|
+
// Note: Accessing "window" in IE11 is somewhat expensive, and calling "typeof window"
|
|
4
|
+
// hits a memory leak, whereas aliasing it and calling "typeof _window" does not.
|
|
5
|
+
// Caching the window value at the file scope lets us minimize the impact.
|
|
6
|
+
try {
|
|
7
|
+
// eslint-disable-next-line no-restricted-globals
|
|
8
|
+
_window = window;
|
|
9
|
+
} catch (e) {
|
|
10
|
+
/* no-op */ }
|
|
11
|
+
/**
|
|
12
|
+
* Helper to get the window object. The helper will make sure to use a cached variable
|
|
13
|
+
* of "window", to avoid overhead and memory leaks in IE11. Note that in popup scenarios the
|
|
14
|
+
* window object won't match the "global" window object, and for these scenarios, you should
|
|
15
|
+
* pass in an element hosted within the popup.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/ export function getWindow(rootElement) {
|
|
19
|
+
if (!canUseDOM() || typeof _window === 'undefined') {
|
|
20
|
+
return undefined;
|
|
21
|
+
} else {
|
|
22
|
+
const el = rootElement;
|
|
23
|
+
return el && el.ownerDocument && el.ownerDocument.defaultView ? el.ownerDocument.defaultView : _window;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["getWindow.ts"],"sourcesContent":["import { canUseDOM } from '@fluentui/react-utilities';\n\nlet _window: Window | undefined = undefined;\n\n// Note: Accessing \"window\" in IE11 is somewhat expensive, and calling \"typeof window\"\n// hits a memory leak, whereas aliasing it and calling \"typeof _window\" does not.\n// Caching the window value at the file scope lets us minimize the impact.\ntry {\n // eslint-disable-next-line no-restricted-globals\n _window = window;\n} catch (e) {\n /* no-op */\n}\n\n/**\n * Helper to get the window object. The helper will make sure to use a cached variable\n * of \"window\", to avoid overhead and memory leaks in IE11. Note that in popup scenarios the\n * window object won't match the \"global\" window object, and for these scenarios, you should\n * pass in an element hosted within the popup.\n *\n * @public\n */\nexport function getWindow(rootElement?: Element | null): Window | undefined {\n if (!canUseDOM() || typeof _window === 'undefined') {\n return undefined;\n } else {\n const el = rootElement as Element;\n\n return el && el.ownerDocument && el.ownerDocument.defaultView ? el.ownerDocument.defaultView : _window;\n }\n}\n"],"names":["canUseDOM","_window","undefined","window","e","getWindow","rootElement","el","ownerDocument","defaultView"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,4BAA4B;AAEtD,IAAIC,UAA8BC;AAElC,sFAAsF;AACtF,iFAAiF;AACjF,0EAA0E;AAC1E,IAAI;IACF,iDAAiD;IACjDD,UAAUE;AACZ,EAAE,OAAOC,GAAG;AACV,SAAS,GACX;AAEA;;;;;;;CAOC,GACD,OAAO,SAASC,UAAUC,WAA4B;IACpD,IAAI,CAACN,eAAe,OAAOC,YAAY,aAAa;QAClD,OAAOC;IACT,OAAO;QACL,MAAMK,KAAKD;QAEX,OAAOC,MAAMA,GAAGC,aAAa,IAAID,GAAGC,aAAa,CAACC,WAAW,GAAGF,GAAGC,aAAa,CAACC,WAAW,GAAGR;IACjG;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './utilities';\nexport * from './colors';\nexport * from './vbc-utils';\n"],"names":[],"rangeMappings":";;","mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,cAAc"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const convertToLocaleString = (data, culture)=>{
|
|
2
|
+
if (!data) {
|
|
3
|
+
return data;
|
|
4
|
+
}
|
|
5
|
+
culture = culture || undefined;
|
|
6
|
+
if (typeof data === 'number') {
|
|
7
|
+
return data.toLocaleString(culture);
|
|
8
|
+
} else if (typeof data === 'string' && !isNaN(Number(data))) {
|
|
9
|
+
const num = Number(data);
|
|
10
|
+
return num.toLocaleString(culture);
|
|
11
|
+
} else if (data instanceof Date) {
|
|
12
|
+
return data.toLocaleDateString(culture);
|
|
13
|
+
}
|
|
14
|
+
return data;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["locale-util.ts"],"sourcesContent":["type LocaleStringDataProps = number | string | Date | { [id: string]: number } | undefined;\nexport const convertToLocaleString = (data: LocaleStringDataProps, culture?: string): LocaleStringDataProps => {\n if (!data) {\n return data;\n }\n culture = culture || undefined;\n if (typeof data === 'number') {\n return data.toLocaleString(culture);\n } else if (typeof data === 'string' && !isNaN(Number(data))) {\n const num = Number(data);\n return num.toLocaleString(culture);\n } else if (data instanceof Date) {\n return data.toLocaleDateString(culture);\n }\n return data;\n};\n"],"names":["convertToLocaleString","data","culture","undefined","toLocaleString","isNaN","Number","num","Date","toLocaleDateString"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AACA,OAAO,MAAMA,wBAAwB,CAACC,MAA6BC;IACjE,IAAI,CAACD,MAAM;QACT,OAAOA;IACT;IACAC,UAAUA,WAAWC;IACrB,IAAI,OAAOF,SAAS,UAAU;QAC5B,OAAOA,KAAKG,cAAc,CAACF;IAC7B,OAAO,IAAI,OAAOD,SAAS,YAAY,CAACI,MAAMC,OAAOL,QAAQ;QAC3D,MAAMM,MAAMD,OAAOL;QACnB,OAAOM,IAAIH,cAAc,CAACF;IAC5B,OAAO,IAAID,gBAAgBO,MAAM;QAC/B,OAAOP,KAAKQ,kBAAkB,CAACP;IACjC;IACA,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detects whether an element's content has horizontal overflow
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
* @param element - Element to check for overflow
|
|
6
|
+
* @returns True if element's content overflows
|
|
7
|
+
*/ export function hasHorizontalOverflow(element) {
|
|
8
|
+
return element.clientWidth < element.scrollWidth;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Detects whether an element's content has vertical overflow
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
* @param element - Element to check for overflow
|
|
15
|
+
* @returns True if element's content overflows
|
|
16
|
+
*/ export function hasVerticalOverflow(element) {
|
|
17
|
+
return element.clientHeight < element.scrollHeight;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Detects whether an element's content has overflow in any direction
|
|
21
|
+
*
|
|
22
|
+
* @public
|
|
23
|
+
* @param element - Element to check for overflow
|
|
24
|
+
* @returns True if element's content overflows
|
|
25
|
+
*/ export function hasOverflow(element) {
|
|
26
|
+
return hasHorizontalOverflow(element) || hasVerticalOverflow(element);
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["overflow-utils.ts"],"sourcesContent":["/**\n * Detects whether an element's content has horizontal overflow\n *\n * @public\n * @param element - Element to check for overflow\n * @returns True if element's content overflows\n */\nexport function hasHorizontalOverflow(element: HTMLElement): boolean {\n return element.clientWidth < element.scrollWidth;\n}\n\n/**\n * Detects whether an element's content has vertical overflow\n *\n * @public\n * @param element - Element to check for overflow\n * @returns True if element's content overflows\n */\nexport function hasVerticalOverflow(element: HTMLElement): boolean {\n return element.clientHeight < element.scrollHeight;\n}\n\n/**\n * Detects whether an element's content has overflow in any direction\n *\n * @public\n * @param element - Element to check for overflow\n * @returns True if element's content overflows\n */\nexport function hasOverflow(element: HTMLElement): boolean {\n return hasHorizontalOverflow(element) || hasVerticalOverflow(element);\n}\n"],"names":["hasHorizontalOverflow","element","clientWidth","scrollWidth","hasVerticalOverflow","clientHeight","scrollHeight","hasOverflow"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA;;;;;;CAMC,GACD,OAAO,SAASA,sBAAsBC,OAAoB;IACxD,OAAOA,QAAQC,WAAW,GAAGD,QAAQE,WAAW;AAClD;AAEA;;;;;;CAMC,GACD,OAAO,SAASC,oBAAoBH,OAAoB;IACtD,OAAOA,QAAQI,YAAY,GAAGJ,QAAQK,YAAY;AACpD;AAEA;;;;;;CAMC,GACD,OAAO,SAASC,YAAYN,OAAoB;IAC9C,OAAOD,sBAAsBC,YAAYG,oBAAoBH;AAC/D"}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
export const chartPointsVBC = [
|
|
2
|
+
{
|
|
3
|
+
x: 0,
|
|
4
|
+
y: 10000,
|
|
5
|
+
legend: 'First',
|
|
6
|
+
color: 'aqua',
|
|
7
|
+
xAxisCalloutData: '2020/04/30',
|
|
8
|
+
yAxisCalloutData: '10%'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
x: 10000,
|
|
12
|
+
y: 50000,
|
|
13
|
+
legend: 'Second',
|
|
14
|
+
color: 'blue',
|
|
15
|
+
xAxisCalloutData: '2020/04/30',
|
|
16
|
+
yAxisCalloutData: '20%'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
x: 25000,
|
|
20
|
+
y: 30000,
|
|
21
|
+
legend: 'Third',
|
|
22
|
+
color: 'navy',
|
|
23
|
+
xAxisCalloutData: '2020/04/30',
|
|
24
|
+
yAxisCalloutData: '37%'
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
const firstChartPointsVSBC = [
|
|
28
|
+
{
|
|
29
|
+
legend: 'Metadata1',
|
|
30
|
+
data: 40,
|
|
31
|
+
color: 'aqua',
|
|
32
|
+
xAxisCalloutData: '2020/04/30',
|
|
33
|
+
yAxisCalloutData: '40%'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
legend: 'Metadata2',
|
|
37
|
+
data: 5,
|
|
38
|
+
color: 'navy',
|
|
39
|
+
xAxisCalloutData: '2020/04/30',
|
|
40
|
+
yAxisCalloutData: '5%'
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
const secondChartPointsVSBC = [
|
|
44
|
+
{
|
|
45
|
+
legend: 'Metadata1',
|
|
46
|
+
data: 30,
|
|
47
|
+
color: 'aqua',
|
|
48
|
+
xAxisCalloutData: '2020/04/30',
|
|
49
|
+
yAxisCalloutData: '30%'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
legend: 'Metadata2',
|
|
53
|
+
data: 20,
|
|
54
|
+
color: 'navy',
|
|
55
|
+
xAxisCalloutData: '2020/04/30',
|
|
56
|
+
yAxisCalloutData: '20%'
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
export const chartPointsVSBC = [
|
|
60
|
+
{
|
|
61
|
+
chartData: firstChartPointsVSBC,
|
|
62
|
+
xAxisPoint: 0
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
chartData: secondChartPointsVSBC,
|
|
66
|
+
xAxisPoint: 20
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
export const chartPoints2VSBC = [
|
|
70
|
+
{
|
|
71
|
+
chartData: firstChartPointsVSBC,
|
|
72
|
+
xAxisPoint: 0,
|
|
73
|
+
lineData: [
|
|
74
|
+
{
|
|
75
|
+
y: 15,
|
|
76
|
+
legend: 'Line1',
|
|
77
|
+
color: 'yellow'
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
chartData: secondChartPointsVSBC,
|
|
83
|
+
xAxisPoint: 20,
|
|
84
|
+
lineData: [
|
|
85
|
+
{
|
|
86
|
+
y: 30,
|
|
87
|
+
legend: 'Line1',
|
|
88
|
+
color: 'yellow'
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
export const emptychartPointsVSBC = [
|
|
94
|
+
{
|
|
95
|
+
chartData: [],
|
|
96
|
+
xAxisPoint: 0
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
export const pointsHBCWA = [
|
|
100
|
+
{
|
|
101
|
+
x: 10000,
|
|
102
|
+
y: 5000,
|
|
103
|
+
legend: 'Oranges',
|
|
104
|
+
color: 'aqua',
|
|
105
|
+
xAxisCalloutData: '2020/04/30',
|
|
106
|
+
yAxisCalloutData: '10%'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
x: 20000,
|
|
110
|
+
y: 50000,
|
|
111
|
+
legend: 'Dogs',
|
|
112
|
+
color: 'blue',
|
|
113
|
+
xAxisCalloutData: '2020/04/30',
|
|
114
|
+
yAxisCalloutData: '20%'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
x: 25000,
|
|
118
|
+
y: 30000,
|
|
119
|
+
legend: 'Apples',
|
|
120
|
+
color: 'navy',
|
|
121
|
+
xAxisCalloutData: '2020/04/30',
|
|
122
|
+
yAxisCalloutData: '37%'
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
x: 40000,
|
|
126
|
+
y: 13000,
|
|
127
|
+
legend: 'Bananas',
|
|
128
|
+
color: 'teal',
|
|
129
|
+
xAxisCalloutData: '2020/04/30',
|
|
130
|
+
yAxisCalloutData: '88%'
|
|
131
|
+
}
|
|
132
|
+
];
|
|
133
|
+
export const pointsDC = [
|
|
134
|
+
{
|
|
135
|
+
legend: 'first',
|
|
136
|
+
data: 20000,
|
|
137
|
+
color: '#E5E5E5',
|
|
138
|
+
xAxisCalloutData: '2020/04/30'
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
legend: 'second',
|
|
142
|
+
data: 39000,
|
|
143
|
+
color: '#0078D4',
|
|
144
|
+
xAxisCalloutData: '2020/04/20'
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
legend: 'third',
|
|
148
|
+
data: 45000,
|
|
149
|
+
color: '#DADADA',
|
|
150
|
+
xAxisCalloutData: '2020/04/25'
|
|
151
|
+
}
|
|
152
|
+
];
|
|
153
|
+
export const pointsDCElevateMinimumsExample = [
|
|
154
|
+
{
|
|
155
|
+
legend: 'first',
|
|
156
|
+
data: 39000,
|
|
157
|
+
color: '#E5E5E5',
|
|
158
|
+
xAxisCalloutData: '2020/04/30'
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
legend: 'second',
|
|
162
|
+
data: 20,
|
|
163
|
+
color: '#0078D4',
|
|
164
|
+
xAxisCalloutData: '2020/04/20'
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
legend: 'third',
|
|
168
|
+
data: 20,
|
|
169
|
+
color: '#DADADA',
|
|
170
|
+
xAxisCalloutData: '2020/04/25'
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
legend: 'fourth',
|
|
174
|
+
data: 20,
|
|
175
|
+
color: '#DADADA',
|
|
176
|
+
xAxisCalloutData: '2020/04/25'
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
legend: 'fifth',
|
|
180
|
+
data: 20,
|
|
181
|
+
color: '#DADADA',
|
|
182
|
+
xAxisCalloutData: '2020/04/25'
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
legend: 'sixth',
|
|
186
|
+
data: 20,
|
|
187
|
+
color: '#DADADA',
|
|
188
|
+
xAxisCalloutData: '2020/04/25'
|
|
189
|
+
}
|
|
190
|
+
];
|
|
191
|
+
export const chartPointsDC = {
|
|
192
|
+
chartTitle: 'Donut chart example',
|
|
193
|
+
chartData: pointsDC
|
|
194
|
+
};
|
|
195
|
+
export const chartPointsDCElevateMinimums = {
|
|
196
|
+
chartTitle: 'Donut chart example',
|
|
197
|
+
chartData: pointsDC
|
|
198
|
+
};
|
|
199
|
+
export const chartPointsHBCWA = [
|
|
200
|
+
{
|
|
201
|
+
x: 10000,
|
|
202
|
+
y: 5000,
|
|
203
|
+
legend: 'Oranges',
|
|
204
|
+
color: 'aqua',
|
|
205
|
+
yAxisCalloutData: '2020/04/30',
|
|
206
|
+
xAxisCalloutData: '10%'
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
x: 20000,
|
|
210
|
+
y: 50000,
|
|
211
|
+
legend: 'Grapes',
|
|
212
|
+
color: 'blue',
|
|
213
|
+
yAxisCalloutData: '2020/04/30',
|
|
214
|
+
xAxisCalloutData: '20%'
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
x: 25000,
|
|
218
|
+
y: 30000,
|
|
219
|
+
legend: 'Apples',
|
|
220
|
+
color: 'navy',
|
|
221
|
+
yAxisCalloutData: '2020/04/30',
|
|
222
|
+
xAxisCalloutData: '37%'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
x: 40000,
|
|
226
|
+
y: 13000,
|
|
227
|
+
legend: 'Bananas',
|
|
228
|
+
color: 'teal',
|
|
229
|
+
yAxisCalloutData: '2020/04/30',
|
|
230
|
+
xAxisCalloutData: '88%'
|
|
231
|
+
}
|
|
232
|
+
];
|
|
233
|
+
export const chartPointsWithStringYAxisHBCWA = [
|
|
234
|
+
{
|
|
235
|
+
y: 'String One',
|
|
236
|
+
x: 1000,
|
|
237
|
+
color: 'aqua'
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
y: 'String Two',
|
|
241
|
+
x: 5000,
|
|
242
|
+
color: 'blue'
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
y: 'String Three',
|
|
246
|
+
x: 3000,
|
|
247
|
+
color: 'navy'
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
y: 'String Four',
|
|
251
|
+
x: 2000,
|
|
252
|
+
color: 'blue'
|
|
253
|
+
}
|
|
254
|
+
];
|
|
255
|
+
export const chartPointsWithAxisToolTipHBCWA = [
|
|
256
|
+
{
|
|
257
|
+
x: 1000,
|
|
258
|
+
y: 1000,
|
|
259
|
+
color: 'aqua'
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
x: 2000,
|
|
263
|
+
y: 5000,
|
|
264
|
+
color: 'blue'
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
x: 3000,
|
|
268
|
+
y: 3000,
|
|
269
|
+
color: 'navy'
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
x: 4000,
|
|
273
|
+
y: 2000,
|
|
274
|
+
color: 'blue'
|
|
275
|
+
}
|
|
276
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["test-data.ts"],"sourcesContent":["import {\n ChartDataPoint,\n ChartProps,\n HorizontalBarChartWithAxisDataPoint,\n VSChartDataPoint,\n VerticalStackedChartProps,\n} from '../index';\n\nexport const chartPointsVBC = [\n {\n x: 0,\n y: 10000,\n legend: 'First',\n color: 'aqua',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '10%',\n },\n {\n x: 10000,\n y: 50000,\n legend: 'Second',\n color: 'blue',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '20%',\n },\n {\n x: 25000,\n y: 30000,\n legend: 'Third',\n color: 'navy',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '37%',\n },\n];\n\nconst firstChartPointsVSBC: VSChartDataPoint[] = [\n {\n legend: 'Metadata1',\n data: 40,\n color: 'aqua',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '40%',\n },\n {\n legend: 'Metadata2',\n data: 5,\n color: 'navy',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '5%',\n },\n];\n\nconst secondChartPointsVSBC: VSChartDataPoint[] = [\n {\n legend: 'Metadata1',\n data: 30,\n color: 'aqua',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '30%',\n },\n {\n legend: 'Metadata2',\n data: 20,\n color: 'navy',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '20%',\n },\n];\n\nexport const chartPointsVSBC: VerticalStackedChartProps[] = [\n { chartData: firstChartPointsVSBC, xAxisPoint: 0 },\n { chartData: secondChartPointsVSBC, xAxisPoint: 20 },\n];\n\nexport const chartPoints2VSBC: VerticalStackedChartProps[] = [\n {\n chartData: firstChartPointsVSBC,\n xAxisPoint: 0,\n lineData: [{ y: 15, legend: 'Line1', color: 'yellow' }],\n },\n {\n chartData: secondChartPointsVSBC,\n xAxisPoint: 20,\n lineData: [{ y: 30, legend: 'Line1', color: 'yellow' }],\n },\n];\n\nexport const emptychartPointsVSBC: VerticalStackedChartProps[] = [{ chartData: [], xAxisPoint: 0 }];\n\nexport const pointsHBCWA = [\n {\n x: 10000,\n y: 5000,\n legend: 'Oranges',\n color: 'aqua',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '10%',\n },\n {\n x: 20000,\n y: 50000,\n legend: 'Dogs',\n color: 'blue',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '20%',\n },\n {\n x: 25000,\n y: 30000,\n legend: 'Apples',\n color: 'navy',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '37%',\n },\n\n {\n x: 40000,\n y: 13000,\n legend: 'Bananas',\n color: 'teal',\n xAxisCalloutData: '2020/04/30',\n yAxisCalloutData: '88%',\n },\n];\n\nexport const pointsDC: ChartDataPoint[] = [\n { legend: 'first', data: 20000, color: '#E5E5E5', xAxisCalloutData: '2020/04/30' },\n { legend: 'second', data: 39000, color: '#0078D4', xAxisCalloutData: '2020/04/20' },\n { legend: 'third', data: 45000, color: '#DADADA', xAxisCalloutData: '2020/04/25' },\n];\n\nexport const pointsDCElevateMinimumsExample: ChartDataPoint[] = [\n { legend: 'first', data: 39000, color: '#E5E5E5', xAxisCalloutData: '2020/04/30' },\n { legend: 'second', data: 20, color: '#0078D4', xAxisCalloutData: '2020/04/20' },\n { legend: 'third', data: 20, color: '#DADADA', xAxisCalloutData: '2020/04/25' },\n { legend: 'fourth', data: 20, color: '#DADADA', xAxisCalloutData: '2020/04/25' },\n { legend: 'fifth', data: 20, color: '#DADADA', xAxisCalloutData: '2020/04/25' },\n { legend: 'sixth', data: 20, color: '#DADADA', xAxisCalloutData: '2020/04/25' },\n];\n\nexport const chartPointsDC: ChartProps = {\n chartTitle: 'Donut chart example',\n chartData: pointsDC,\n};\n\nexport const chartPointsDCElevateMinimums: ChartProps = {\n chartTitle: 'Donut chart example',\n chartData: pointsDC,\n};\n\nexport const chartPointsHBCWA: HorizontalBarChartWithAxisDataPoint[] = [\n {\n x: 10000,\n y: 5000,\n legend: 'Oranges',\n color: 'aqua',\n yAxisCalloutData: '2020/04/30',\n xAxisCalloutData: '10%',\n },\n {\n x: 20000,\n y: 50000,\n legend: 'Grapes',\n color: 'blue',\n yAxisCalloutData: '2020/04/30',\n xAxisCalloutData: '20%',\n },\n {\n x: 25000,\n y: 30000,\n legend: 'Apples',\n color: 'navy',\n yAxisCalloutData: '2020/04/30',\n xAxisCalloutData: '37%',\n },\n\n {\n x: 40000,\n y: 13000,\n legend: 'Bananas',\n color: 'teal',\n yAxisCalloutData: '2020/04/30',\n xAxisCalloutData: '88%',\n },\n];\n\nexport const chartPointsWithStringYAxisHBCWA: HorizontalBarChartWithAxisDataPoint[] = [\n {\n y: 'String One',\n x: 1000,\n color: 'aqua',\n },\n {\n y: 'String Two',\n x: 5000,\n color: 'blue',\n },\n {\n y: 'String Three',\n x: 3000,\n color: 'navy',\n },\n {\n y: 'String Four',\n x: 2000,\n color: 'blue',\n },\n];\n\nexport const chartPointsWithAxisToolTipHBCWA: HorizontalBarChartWithAxisDataPoint[] = [\n {\n x: 1000,\n y: 1000,\n color: 'aqua',\n },\n {\n x: 2000,\n y: 5000,\n color: 'blue',\n },\n {\n x: 3000,\n y: 3000,\n color: 'navy',\n },\n {\n x: 4000,\n y: 2000,\n color: 'blue',\n },\n];\n"],"names":["chartPointsVBC","x","y","legend","color","xAxisCalloutData","yAxisCalloutData","firstChartPointsVSBC","data","secondChartPointsVSBC","chartPointsVSBC","chartData","xAxisPoint","chartPoints2VSBC","lineData","emptychartPointsVSBC","pointsHBCWA","pointsDC","pointsDCElevateMinimumsExample","chartPointsDC","chartTitle","chartPointsDCElevateMinimums","chartPointsHBCWA","chartPointsWithStringYAxisHBCWA","chartPointsWithAxisToolTipHBCWA"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
|