@fluentui/react-charting 5.21.27 → 5.21.28
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.json +28 -1
- package/CHANGELOG.md +13 -2
- package/lib/AreaChart.js.map +1 -1
- package/lib/CartesianChart.js.map +1 -1
- package/lib/DonutChart.js.map +1 -1
- package/lib/GaugeChart.js.map +1 -1
- package/lib/GroupedVerticalBarChart.js.map +1 -1
- package/lib/HeatMapChart.js.map +1 -1
- package/lib/HorizontalBarChart.js.map +1 -1
- package/lib/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib/Legends.js.map +1 -1
- package/lib/LineChart.js.map +1 -1
- package/lib/PieChart.js.map +1 -1
- package/lib/SankeyChart.js.map +1 -1
- package/lib/Sparkline.js.map +1 -1
- package/lib/StackedBarChart.js.map +1 -1
- package/lib/Styling.js.map +1 -1
- package/lib/TreeChart.js.map +1 -1
- package/lib/Utilities.js.map +1 -1
- package/lib/VerticalBarChart.js.map +1 -1
- package/lib/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib/components/AreaChart/index.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/CommonComponents/index.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib/components/DonutChart/Arc/index.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/index.js.map +1 -1
- package/lib/components/DonutChart/index.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/components/GaugeChart/index.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib/components/HeatMapChart/index.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChart/index.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/components/Legends/Legends.js.map +1 -1
- package/lib/components/Legends/Legends.styles.js.map +1 -1
- package/lib/components/Legends/Legends.types.js.map +1 -1
- package/lib/components/Legends/index.js.map +1 -1
- package/lib/components/Legends/shape.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/LineChart/LineChart.js.map +1 -1
- package/lib/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib/components/LineChart/LineChart.types.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib/components/LineChart/index.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.types.js.map +1 -1
- package/lib/components/PieChart/Arc/index.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.types.js.map +1 -1
- package/lib/components/PieChart/Pie/index.js.map +1 -1
- package/lib/components/PieChart/PieChart.base.js.map +1 -1
- package/lib/components/PieChart/PieChart.js.map +1 -1
- package/lib/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib/components/PieChart/PieChart.types.js.map +1 -1
- package/lib/components/PieChart/index.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib/components/SankeyChart/index.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib/components/Sparkline/index.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
- package/lib/components/StackedBarChart/index.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib/components/TreeChart/index.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib/components/VerticalBarChart/index.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/types/IEventAnnotation.js.map +1 -1
- package/lib/types/ILegendDataItem.js.map +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
- package/lib/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib/utilities/FocusableTooltipText.js.map +1 -1
- package/lib/utilities/SVGTooltipText.js.map +1 -1
- package/lib/utilities/colors.js.map +1 -1
- package/lib/utilities/index.js.map +1 -1
- package/lib/utilities/locale-util.js.map +1 -1
- package/lib/utilities/test-data.js.map +1 -1
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/utilities/vbc-utils.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-commonjs/AreaChart.js.map +1 -1
- package/lib-commonjs/CartesianChart.js.map +1 -1
- package/lib-commonjs/DonutChart.js.map +1 -1
- package/lib-commonjs/GaugeChart.js.map +1 -1
- package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/HeatMapChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/Legends.js.map +1 -1
- package/lib-commonjs/LineChart.js.map +1 -1
- package/lib-commonjs/PieChart.js.map +1 -1
- package/lib-commonjs/SankeyChart.js.map +1 -1
- package/lib-commonjs/Sparkline.js.map +1 -1
- package/lib-commonjs/StackedBarChart.js.map +1 -1
- package/lib-commonjs/Styling.js.map +1 -1
- package/lib-commonjs/TreeChart.js.map +1 -1
- package/lib-commonjs/Utilities.js.map +1 -1
- package/lib-commonjs/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-commonjs/components/AreaChart/index.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/index.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/index.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
- package/lib-commonjs/components/Legends/index.js.map +1 -1
- package/lib-commonjs/components/Legends/shape.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib-commonjs/components/LineChart/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.types.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.types.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -1
- package/lib-commonjs/components/PieChart/index.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib-commonjs/components/Sparkline/index.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib-commonjs/components/TreeChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/types/IEventAnnotation.js.map +1 -1
- package/lib-commonjs/types/ILegendDataItem.js.map +1 -1
- package/lib-commonjs/types/index.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/colors.js.map +1 -1
- package/lib-commonjs/utilities/index.js.map +1 -1
- package/lib-commonjs/utilities/locale-util.js.map +1 -1
- package/lib-commonjs/utilities/test-data.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +4 -4
- package/dist/react-charting.js +0 -1
- package/dist/react-charting.min.js +0 -1
- package/lib-amd/AreaChart.d.ts +0 -1
- package/lib-amd/AreaChart.js +0 -6
- package/lib-amd/AreaChart.js.map +0 -1
- package/lib-amd/CartesianChart.d.ts +0 -1
- package/lib-amd/CartesianChart.js +0 -6
- package/lib-amd/CartesianChart.js.map +0 -1
- package/lib-amd/DonutChart.d.ts +0 -1
- package/lib-amd/DonutChart.js +0 -6
- package/lib-amd/DonutChart.js.map +0 -1
- package/lib-amd/GaugeChart.d.ts +0 -1
- package/lib-amd/GaugeChart.js +0 -6
- package/lib-amd/GaugeChart.js.map +0 -1
- package/lib-amd/GroupedVerticalBarChart.d.ts +0 -1
- package/lib-amd/GroupedVerticalBarChart.js +0 -6
- package/lib-amd/GroupedVerticalBarChart.js.map +0 -1
- package/lib-amd/HeatMapChart.d.ts +0 -1
- package/lib-amd/HeatMapChart.js +0 -6
- package/lib-amd/HeatMapChart.js.map +0 -1
- package/lib-amd/HorizontalBarChart.d.ts +0 -1
- package/lib-amd/HorizontalBarChart.js +0 -6
- package/lib-amd/HorizontalBarChart.js.map +0 -1
- package/lib-amd/HorizontalBarChartWithAxis.d.ts +0 -1
- package/lib-amd/HorizontalBarChartWithAxis.js +0 -6
- package/lib-amd/HorizontalBarChartWithAxis.js.map +0 -1
- package/lib-amd/Legends.d.ts +0 -1
- package/lib-amd/Legends.js +0 -6
- package/lib-amd/Legends.js.map +0 -1
- package/lib-amd/LineChart.d.ts +0 -1
- package/lib-amd/LineChart.js +0 -6
- package/lib-amd/LineChart.js.map +0 -1
- package/lib-amd/PieChart.d.ts +0 -1
- package/lib-amd/PieChart.js +0 -6
- package/lib-amd/PieChart.js.map +0 -1
- package/lib-amd/SankeyChart.d.ts +0 -1
- package/lib-amd/SankeyChart.js +0 -6
- package/lib-amd/SankeyChart.js.map +0 -1
- package/lib-amd/Sparkline.d.ts +0 -1
- package/lib-amd/Sparkline.js +0 -6
- package/lib-amd/Sparkline.js.map +0 -1
- package/lib-amd/StackedBarChart.d.ts +0 -1
- package/lib-amd/StackedBarChart.js +0 -6
- package/lib-amd/StackedBarChart.js.map +0 -1
- package/lib-amd/Styling.d.ts +0 -2
- package/lib-amd/Styling.js +0 -75
- package/lib-amd/Styling.js.map +0 -1
- package/lib-amd/TreeChart.d.ts +0 -1
- package/lib-amd/TreeChart.js +0 -6
- package/lib-amd/TreeChart.js.map +0 -1
- package/lib-amd/Utilities.d.ts +0 -2
- package/lib-amd/Utilities.js +0 -183
- package/lib-amd/Utilities.js.map +0 -1
- package/lib-amd/VerticalBarChart.d.ts +0 -1
- package/lib-amd/VerticalBarChart.js +0 -6
- package/lib-amd/VerticalBarChart.js.map +0 -1
- package/lib-amd/VerticalStackedBarChart.d.ts +0 -1
- package/lib-amd/VerticalStackedBarChart.js +0 -6
- package/lib-amd/VerticalStackedBarChart.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +0 -103
- package/lib-amd/components/AreaChart/AreaChart.base.js +0 -652
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.d.ts +0 -7
- package/lib-amd/components/AreaChart/AreaChart.js +0 -12
- package/lib-amd/components/AreaChart/AreaChart.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +0 -2
- package/lib-amd/components/AreaChart/AreaChart.styles.js +0 -12
- package/lib-amd/components/AreaChart/AreaChart.styles.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.types.d.ts +0 -59
- package/lib-amd/components/AreaChart/AreaChart.types.js +0 -5
- package/lib-amd/components/AreaChart/AreaChart.types.js.map +0 -1
- package/lib-amd/components/AreaChart/index.d.ts +0 -2
- package/lib-amd/components/AreaChart/index.js +0 -7
- package/lib-amd/components/AreaChart/index.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +0 -62
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +0 -593
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.d.ts +0 -7
- package/lib-amd/components/CommonComponents/CartesianChart.js +0 -11
- package/lib-amd/components/CommonComponents/CartesianChart.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +0 -2
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +0 -180
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +0 -528
- package/lib-amd/components/CommonComponents/CartesianChart.types.js +0 -5
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +0 -1
- package/lib-amd/components/CommonComponents/index.d.ts +0 -2
- package/lib-amd/components/CommonComponents/index.js +0 -7
- package/lib-amd/components/CommonComponents/index.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/Arc.d.ts +0 -21
- package/lib-amd/components/DonutChart/Arc/Arc.js +0 -88
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +0 -2
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js +0 -33
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +0 -124
- package/lib-amd/components/DonutChart/Arc/Arc.types.js +0 -5
- package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/index.d.ts +0 -2
- package/lib-amd/components/DonutChart/Arc/index.js +0 -7
- package/lib-amd/components/DonutChart/Arc/index.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.base.d.ts +0 -54
- package/lib-amd/components/DonutChart/DonutChart.base.js +0 -241
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.d.ts +0 -7
- package/lib-amd/components/DonutChart/DonutChart.js +0 -12
- package/lib-amd/components/DonutChart/DonutChart.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +0 -2
- package/lib-amd/components/DonutChart/DonutChart.styles.js +0 -36
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.types.d.ts +0 -75
- package/lib-amd/components/DonutChart/DonutChart.types.js +0 -5
- package/lib-amd/components/DonutChart/DonutChart.types.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/Pie.d.ts +0 -15
- package/lib-amd/components/DonutChart/Pie/Pie.js +0 -67
- package/lib-amd/components/DonutChart/Pie/Pie.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +0 -2
- package/lib-amd/components/DonutChart/Pie/Pie.styles.js +0 -24
- package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +0 -96
- package/lib-amd/components/DonutChart/Pie/Pie.types.js +0 -5
- package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/index.d.ts +0 -2
- package/lib-amd/components/DonutChart/Pie/index.js +0 -7
- package/lib-amd/components/DonutChart/Pie/index.js.map +0 -1
- package/lib-amd/components/DonutChart/index.d.ts +0 -3
- package/lib-amd/components/DonutChart/index.js +0 -8
- package/lib-amd/components/DonutChart/index.js.map +0 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +0 -75
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +0 -410
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +0 -1
- package/lib-amd/components/GaugeChart/GaugeChart.d.ts +0 -7
- package/lib-amd/components/GaugeChart/GaugeChart.js +0 -11
- package/lib-amd/components/GaugeChart/GaugeChart.js.map +0 -1
- package/lib-amd/components/GaugeChart/GaugeChart.styles.d.ts +0 -2
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js +0 -122
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +0 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +0 -238
- package/lib-amd/components/GaugeChart/GaugeChart.types.js +0 -22
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +0 -1
- package/lib-amd/components/GaugeChart/index.d.ts +0 -2
- package/lib-amd/components/GaugeChart/index.js +0 -7
- package/lib-amd/components/GaugeChart/index.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -72
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +0 -425
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +0 -7
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -12
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +0 -2
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +0 -21
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +0 -111
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -5
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +0 -2
- package/lib-amd/components/GroupedVerticalBarChart/index.js +0 -7
- package/lib-amd/components/GroupedVerticalBarChart/index.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +0 -152
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +0 -538
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +0 -7
- package/lib-amd/components/HeatMapChart/HeatMapChart.js +0 -11
- package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +0 -2
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +0 -29
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +0 -122
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +0 -5
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
- package/lib-amd/components/HeatMapChart/index.d.ts +0 -2
- package/lib-amd/components/HeatMapChart/index.js +0 -7
- package/lib-amd/components/HeatMapChart/index.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +0 -47
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +0 -270
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -7
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +0 -12
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +0 -2
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +0 -69
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +0 -188
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -14
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/index.d.ts +0 -3
- package/lib-amd/components/HorizontalBarChart/index.js +0 -8
- package/lib-amd/components/HorizontalBarChart/index.js.map +0 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +0 -61
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +0 -499
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +0 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.d.ts +0 -7
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +0 -12
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +0 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.d.ts +0 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +0 -17
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +0 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +0 -112
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +0 -5
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +0 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/index.d.ts +0 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js +0 -7
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +0 -1
- package/lib-amd/components/Legends/Legends.base.d.ts +0 -43
- package/lib-amd/components/Legends/Legends.base.js +0 -308
- package/lib-amd/components/Legends/Legends.base.js.map +0 -1
- package/lib-amd/components/Legends/Legends.d.ts +0 -7
- package/lib-amd/components/Legends/Legends.js +0 -11
- package/lib-amd/components/Legends/Legends.js.map +0 -1
- package/lib-amd/components/Legends/Legends.styles.d.ts +0 -2
- package/lib-amd/components/Legends/Legends.styles.js +0 -111
- package/lib-amd/components/Legends/Legends.styles.js.map +0 -1
- package/lib-amd/components/Legends/Legends.types.d.ts +0 -210
- package/lib-amd/components/Legends/Legends.types.js +0 -5
- package/lib-amd/components/Legends/Legends.types.js.map +0 -1
- package/lib-amd/components/Legends/index.d.ts +0 -3
- package/lib-amd/components/Legends/index.js +0 -8
- package/lib-amd/components/Legends/index.js.map +0 -1
- package/lib-amd/components/Legends/shape.d.ts +0 -9
- package/lib-amd/components/Legends/shape.js +0 -27
- package/lib-amd/components/Legends/shape.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -92
- package/lib-amd/components/LineChart/LineChart.base.js +0 -861
- package/lib-amd/components/LineChart/LineChart.base.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.d.ts +0 -7
- package/lib-amd/components/LineChart/LineChart.js +0 -12
- package/lib-amd/components/LineChart/LineChart.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.styles.d.ts +0 -2
- package/lib-amd/components/LineChart/LineChart.styles.js +0 -12
- package/lib-amd/components/LineChart/LineChart.styles.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.types.d.ts +0 -98
- package/lib-amd/components/LineChart/LineChart.types.js +0 -5
- package/lib-amd/components/LineChart/LineChart.types.js.map +0 -1
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +0 -12
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +0 -97
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +0 -24
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +0 -42
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +0 -13
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +0 -40
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
- package/lib-amd/components/LineChart/index.d.ts +0 -3
- package/lib-amd/components/LineChart/index.js +0 -8
- package/lib-amd/components/LineChart/index.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/Arc.d.ts +0 -17
- package/lib-amd/components/PieChart/Arc/Arc.js +0 -85
- package/lib-amd/components/PieChart/Arc/Arc.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +0 -3
- package/lib-amd/components/PieChart/Arc/Arc.styles.js +0 -16
- package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +0 -73
- package/lib-amd/components/PieChart/Arc/Arc.types.js +0 -5
- package/lib-amd/components/PieChart/Arc/Arc.types.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/index.d.ts +0 -2
- package/lib-amd/components/PieChart/Arc/index.js +0 -7
- package/lib-amd/components/PieChart/Arc/index.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/Pie.d.ts +0 -10
- package/lib-amd/components/PieChart/Pie/Pie.js +0 -43
- package/lib-amd/components/PieChart/Pie/Pie.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +0 -2
- package/lib-amd/components/PieChart/Pie/Pie.styles.js +0 -12
- package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +0 -47
- package/lib-amd/components/PieChart/Pie/Pie.types.js +0 -5
- package/lib-amd/components/PieChart/Pie/Pie.types.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/index.d.ts +0 -2
- package/lib-amd/components/PieChart/Pie/index.js +0 -7
- package/lib-amd/components/PieChart/Pie/index.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.base.d.ts +0 -10
- package/lib-amd/components/PieChart/PieChart.base.js +0 -46
- package/lib-amd/components/PieChart/PieChart.base.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.d.ts +0 -7
- package/lib-amd/components/PieChart/PieChart.js +0 -12
- package/lib-amd/components/PieChart/PieChart.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.styles.d.ts +0 -2
- package/lib-amd/components/PieChart/PieChart.styles.js +0 -34
- package/lib-amd/components/PieChart/PieChart.styles.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.types.d.ts +0 -75
- package/lib-amd/components/PieChart/PieChart.types.js +0 -5
- package/lib-amd/components/PieChart/PieChart.types.js.map +0 -1
- package/lib-amd/components/PieChart/index.d.ts +0 -2
- package/lib-amd/components/PieChart/index.js +0 -7
- package/lib-amd/components/PieChart/index.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +0 -90
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +0 -930
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.d.ts +0 -7
- package/lib-amd/components/SankeyChart/SankeyChart.js +0 -12
- package/lib-amd/components/SankeyChart/SankeyChart.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +0 -2
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js +0 -65
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +0 -146
- package/lib-amd/components/SankeyChart/SankeyChart.types.js +0 -5
- package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +0 -1
- package/lib-amd/components/SankeyChart/index.d.ts +0 -2
- package/lib-amd/components/SankeyChart/index.js +0 -7
- package/lib-amd/components/SankeyChart/index.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.base.d.ts +0 -23
- package/lib-amd/components/Sparkline/Sparkline.base.js +0 -84
- package/lib-amd/components/Sparkline/Sparkline.base.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.d.ts +0 -7
- package/lib-amd/components/Sparkline/Sparkline.js +0 -12
- package/lib-amd/components/Sparkline/Sparkline.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +0 -2
- package/lib-amd/components/Sparkline/Sparkline.styles.js +0 -15
- package/lib-amd/components/Sparkline/Sparkline.styles.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.types.d.ts +0 -59
- package/lib-amd/components/Sparkline/Sparkline.types.js +0 -5
- package/lib-amd/components/Sparkline/Sparkline.types.js.map +0 -1
- package/lib-amd/components/Sparkline/index.d.ts +0 -2
- package/lib-amd/components/Sparkline/index.js +0 -7
- package/lib-amd/components/Sparkline/index.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +0 -70
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +0 -412
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +0 -7
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +0 -12
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +0 -2
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +0 -89
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +0 -213
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +0 -14
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +0 -63
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +0 -349
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +0 -7
- package/lib-amd/components/StackedBarChart/StackedBarChart.js +0 -12
- package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +0 -2
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +0 -107
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +0 -222
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +0 -5
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +0 -1
- package/lib-amd/components/StackedBarChart/index.d.ts +0 -5
- package/lib-amd/components/StackedBarChart/index.js +0 -10
- package/lib-amd/components/StackedBarChart/index.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.base.d.ts +0 -18
- package/lib-amd/components/TreeChart/TreeChart.base.js +0 -320
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.d.ts +0 -7
- package/lib-amd/components/TreeChart/TreeChart.js +0 -11
- package/lib-amd/components/TreeChart/TreeChart.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +0 -2
- package/lib-amd/components/TreeChart/TreeChart.styles.js +0 -34
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.types.d.ts +0 -216
- package/lib-amd/components/TreeChart/TreeChart.types.js +0 -34
- package/lib-amd/components/TreeChart/TreeChart.types.js.map +0 -1
- package/lib-amd/components/TreeChart/index.d.ts +0 -2
- package/lib-amd/components/TreeChart/index.js +0 -7
- package/lib-amd/components/TreeChart/index.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -84
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +0 -738
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +0 -7
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +0 -12
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +0 -2
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +0 -32
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +0 -145
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +0 -5
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/index.d.ts +0 -2
- package/lib-amd/components/VerticalBarChart/index.js +0 -7
- package/lib-amd/components/VerticalBarChart/index.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -92
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +0 -754
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +0 -7
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -12
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +0 -2
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +0 -22
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +0 -172
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -5
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/index.d.ts +0 -2
- package/lib-amd/components/VerticalStackedBarChart/index.js +0 -7
- package/lib-amd/components/VerticalStackedBarChart/index.js.map +0 -1
- package/lib-amd/index.d.ts +0 -21
- package/lib-amd/index.js +0 -25
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/types/IDataPoint.d.ts +0 -687
- package/lib-amd/types/IDataPoint.js +0 -5
- package/lib-amd/types/IDataPoint.js.map +0 -1
- package/lib-amd/types/IEventAnnotation.d.ts +0 -6
- package/lib-amd/types/IEventAnnotation.js +0 -5
- package/lib-amd/types/IEventAnnotation.js.map +0 -1
- package/lib-amd/types/ILegendDataItem.d.ts +0 -10
- package/lib-amd/types/ILegendDataItem.js +0 -5
- package/lib-amd/types/ILegendDataItem.js.map +0 -1
- package/lib-amd/types/index.d.ts +0 -2
- package/lib-amd/types/index.js +0 -7
- package/lib-amd/types/index.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +0 -6
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +0 -39
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +0 -3
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +0 -8
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +0 -2
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +0 -103
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +0 -105
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +0 -5
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/index.d.ts +0 -3
- package/lib-amd/utilities/ChartHoverCard/index.js +0 -8
- package/lib-amd/utilities/ChartHoverCard/index.js.map +0 -1
- package/lib-amd/utilities/FocusableTooltipText.d.ts +0 -27
- package/lib-amd/utilities/FocusableTooltipText.js +0 -54
- package/lib-amd/utilities/FocusableTooltipText.js.map +0 -1
- package/lib-amd/utilities/SVGTooltipText.d.ts +0 -95
- package/lib-amd/utilities/SVGTooltipText.js +0 -175
- package/lib-amd/utilities/SVGTooltipText.js.map +0 -1
- package/lib-amd/utilities/colors.d.ts +0 -51
- package/lib-amd/utilities/colors.js +0 -139
- package/lib-amd/utilities/colors.js.map +0 -1
- package/lib-amd/utilities/index.d.ts +0 -4
- package/lib-amd/utilities/index.js +0 -9
- package/lib-amd/utilities/index.js.map +0 -1
- package/lib-amd/utilities/locale-util.d.ts +0 -3
- package/lib-amd/utilities/locale-util.js +0 -24
- package/lib-amd/utilities/locale-util.js.map +0 -1
- package/lib-amd/utilities/test-data.d.ts +0 -27
- package/lib-amd/utilities/test-data.js +0 -214
- package/lib-amd/utilities/test-data.js.map +0 -1
- package/lib-amd/utilities/utilities.d.ts +0 -411
- package/lib-amd/utilities/utilities.js +0 -1085
- package/lib-amd/utilities/utilities.js.map +0 -1
- package/lib-amd/utilities/vbc-utils.d.ts +0 -2
- package/lib-amd/utilities/vbc-utils.js +0 -38
- package/lib-amd/utilities/vbc-utils.js.map +0 -1
- package/lib-amd/version.d.ts +0 -1
- package/lib-amd/version.js +0 -6
- package/lib-amd/version.js.map +0 -1
|
@@ -1,738 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "react", "d3-array", "d3-shape", "d3-selection", "d3-scale", "@fluentui/react/lib/Utilities", "@fluentui/react/lib/Callout", "../../index", "@fluentui/react-focus", "../../utilities/index"], function (require, exports, tslib_1, React, d3_array_1, d3_shape_1, d3_selection_1, d3_scale_1, Utilities_1, Callout_1, index_1, react_focus_1, index_2) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.VerticalBarChartBase = void 0;
|
|
5
|
-
var CircleVisbility;
|
|
6
|
-
(function (CircleVisbility) {
|
|
7
|
-
CircleVisbility["show"] = "visibility";
|
|
8
|
-
CircleVisbility["hide"] = "hidden";
|
|
9
|
-
})(CircleVisbility || (CircleVisbility = {}));
|
|
10
|
-
var getClassNames = (0, Utilities_1.classNamesFunction)();
|
|
11
|
-
var MIN_DOMAIN_MARGIN = 8;
|
|
12
|
-
var VerticalBarChartBase = exports.VerticalBarChartBase = /** @class */ (function (_super) {
|
|
13
|
-
tslib_1.__extends(VerticalBarChartBase, _super);
|
|
14
|
-
function VerticalBarChartBase(props) {
|
|
15
|
-
var _this = _super.call(this, props) || this;
|
|
16
|
-
_this._isRtl = (0, Utilities_1.getRTL)();
|
|
17
|
-
_this._getDomainNRangeValues = function (points, margins, width, chartType, isRTL, xAxisType, barWidth, tickValues, shiftX) {
|
|
18
|
-
var domainNRangeValue;
|
|
19
|
-
if (xAxisType === index_2.XAxisTypes.NumericAxis) {
|
|
20
|
-
domainNRangeValue = (0, index_2.domainRageOfVerticalNumeric)(points, margins, width, isRTL, barWidth);
|
|
21
|
-
}
|
|
22
|
-
else if (xAxisType === index_2.XAxisTypes.DateAxis) {
|
|
23
|
-
domainNRangeValue = (0, index_2.domainRangeOfDateForAreaLineVerticalBarChart)(points, margins, width, isRTL, tickValues, chartType, barWidth);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
domainNRangeValue = (0, index_2.domainRangeOfXStringAxis)(margins, width, isRTL);
|
|
27
|
-
}
|
|
28
|
-
return domainNRangeValue;
|
|
29
|
-
};
|
|
30
|
-
_this._createLine = function (
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
|
-
xScale,
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
-
yScale, containerHeight, containerWidth,
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
|
-
yScaleSecondary) {
|
|
37
|
-
var _a, _b;
|
|
38
|
-
var _c;
|
|
39
|
-
if (containerHeight === void 0) { containerHeight = 0; }
|
|
40
|
-
if (containerWidth === void 0) { containerWidth = 0; }
|
|
41
|
-
var isStringAxis = _this._xAxisType === index_2.XAxisTypes.StringAxis;
|
|
42
|
-
var xBarScale = _this._getScales(containerHeight, containerWidth).xBarScale;
|
|
43
|
-
var colorScale = _this._createColors();
|
|
44
|
-
var theme = _this.props.theme;
|
|
45
|
-
var data = (_a = _this.props, _a.data), lineLegendColor = (_b = _a.lineLegendColor, _b === void 0 ? theme.palette.yellow : _b), lineLegendText = _a.lineLegendText;
|
|
46
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
47
|
-
var lineData = [];
|
|
48
|
-
var line = [];
|
|
49
|
-
data &&
|
|
50
|
-
data.forEach(function (item, index) {
|
|
51
|
-
var _a;
|
|
52
|
-
if (item.lineData && item.lineData.y) {
|
|
53
|
-
lineData.push({
|
|
54
|
-
x: item.x,
|
|
55
|
-
y: item.lineData.y,
|
|
56
|
-
useSecondaryYScale: (_a = item.lineData.useSecondaryYScale) !== null && _a !== void 0 ? _a : false,
|
|
57
|
-
point: item,
|
|
58
|
-
index: index,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
var linePath = (0, d3_shape_1.line)()
|
|
63
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
-
.x(function (d) { return (isStringAxis ? xBarScale(d.x) + 0.5 * xBarScale.bandwidth() : xScale(d.x)); })
|
|
65
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
66
|
-
.y(function (d) { return (d.useSecondaryYScale && yScaleSecondary ? yScaleSecondary(d.y) : yScale(d.y)); });
|
|
67
|
-
var shouldHighlight = _this._legendHighlighted(lineLegendText) || _this._noLegendHighlighted() ? true : false;
|
|
68
|
-
var lineBorderWidth = ((_c = _this.props.lineOptions) === null || _c === void 0 ? void 0 : _c.lineBorderWidth)
|
|
69
|
-
? Number.parseFloat(_this.props.lineOptions.lineBorderWidth.toString())
|
|
70
|
-
: 0;
|
|
71
|
-
if (lineBorderWidth > 0) {
|
|
72
|
-
line.push(React.createElement("path", { key: (0, Utilities_1.getId)('_VBC_line_'), id: (0, Utilities_1.getId)('_VBC_line_'), opacity: shouldHighlight ? 1 : 0.1, d: linePath(lineData), fill: "transparent", strokeLinecap: "square", strokeWidth: 3 + lineBorderWidth * 2, stroke: theme.semanticColors.bodyBackground }));
|
|
73
|
-
}
|
|
74
|
-
line.push(React.createElement("path", { key: (0, Utilities_1.getId)('_VBC_line_'), id: (0, Utilities_1.getId)('_VBC_line_'), opacity: shouldHighlight ? 1 : 0.1, d: linePath(lineData), fill: "transparent", strokeLinecap: "square", strokeWidth: 3, stroke: lineLegendColor }));
|
|
75
|
-
var dots = lineData.map(function (item, index) {
|
|
76
|
-
var _a;
|
|
77
|
-
// Create an object to store line point ref so that the object can be passed by reference to the focus handler
|
|
78
|
-
var circleRef = { refElement: null };
|
|
79
|
-
return (React.createElement("circle", { key: index, id: (0, Utilities_1.getId)('_VBC_point_'), cx: isStringAxis ? xBarScale(item.x) + 0.5 * xBarScale.bandwidth() : xScale(item.x), cy: item.useSecondaryYScale && yScaleSecondary ? yScaleSecondary(item.y) : yScale(item.y), onMouseOver: _this._legendHighlighted(lineLegendText)
|
|
80
|
-
? _this._lineHover.bind(_this, item.point)
|
|
81
|
-
: _this._onBarHover.bind(_this, item.point, colorScale(item.y)), onMouseOut: _this._onBarLeave, r: _this._getCircleVisibilityAndRadius(item.x, lineLegendText).radius, stroke: lineLegendColor, fill: _this.props.theme.semanticColors.bodyBackground, strokeWidth: 3, visibility: _this._getCircleVisibilityAndRadius(item.x, lineLegendText).visibility, onClick: (_a = item.point.lineData) === null || _a === void 0 ? void 0 : _a.onClick, "data-is-focusable": _this._legendHighlighted(lineLegendText), ref: function (e) { return (circleRef.refElement = e); }, onFocus: _this._lineFocus.bind(_this, item.point, circleRef), onBlur: _this._handleChartMouseLeave }));
|
|
82
|
-
});
|
|
83
|
-
return (React.createElement(React.Fragment, null,
|
|
84
|
-
line,
|
|
85
|
-
dots));
|
|
86
|
-
};
|
|
87
|
-
_this._getCircleVisibilityAndRadius = function (xAxisPoint, legend) {
|
|
88
|
-
var _a;
|
|
89
|
-
var selectedLegend = (_a = _this.state, _a.selectedLegend), activeXdataPoint = _a.activeXdataPoint;
|
|
90
|
-
if (selectedLegend !== '') {
|
|
91
|
-
if (xAxisPoint === activeXdataPoint && selectedLegend === legend) {
|
|
92
|
-
return { visibility: CircleVisbility.show, radius: 8 };
|
|
93
|
-
}
|
|
94
|
-
else if (selectedLegend === legend) {
|
|
95
|
-
// Don't hide the circle to keep it focusable. For more information,
|
|
96
|
-
// see https://fuzzbomb.github.io/accessibility-demos/visually-hidden-focus-test.html
|
|
97
|
-
return { visibility: CircleVisbility.show, radius: 0.3 };
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
return { visibility: CircleVisbility.hide, radius: 0 };
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
return {
|
|
105
|
-
visibility: activeXdataPoint === xAxisPoint ? CircleVisbility.show : CircleVisbility.hide,
|
|
106
|
-
radius: 8,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
_this._checkForLine = function () {
|
|
111
|
-
var data = _this.props.data;
|
|
112
|
-
return data.some(function (item) { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.lineData) === null || _a === void 0 ? void 0 : _a.y) !== undefined; });
|
|
113
|
-
};
|
|
114
|
-
_this._getMargins = function (margins) {
|
|
115
|
-
_this.margins = margins;
|
|
116
|
-
};
|
|
117
|
-
_this._renderContentForBothLineAndBars = function (point) {
|
|
118
|
-
var _a;
|
|
119
|
-
var YValueHover = (_a = _this._getCalloutContentForLineAndBar(point), _a.YValueHover), hoverXValue = _a.hoverXValue;
|
|
120
|
-
var content = YValueHover.map(function (item, index) {
|
|
121
|
-
return (React.createElement(index_1.ChartHoverCard, tslib_1.__assign({ key: index, Legend: item.legend }, (index === 0 && { XValue: "".concat(hoverXValue || item.data) }), { color: item.color, YValue: item.data || item.y, culture: _this.props.culture })));
|
|
122
|
-
});
|
|
123
|
-
return React.createElement(React.Fragment, null, content);
|
|
124
|
-
};
|
|
125
|
-
_this._renderContentForOnlyBars = function (props) {
|
|
126
|
-
var _a;
|
|
127
|
-
var useSingleColor = (_a = _this.props.useSingleColor, _a === void 0 ? false : _a);
|
|
128
|
-
return (React.createElement(React.Fragment, null,
|
|
129
|
-
React.createElement(index_1.ChartHoverCard, { XValue: props.xAxisCalloutData || props.x, Legend: props.legend, YValue: props.yAxisCalloutData || props.y, color: !useSingleColor && props.color ? props.color : _this._createColors()(props.y), culture: _this.props.culture })));
|
|
130
|
-
};
|
|
131
|
-
_this._renderCallout = function (props) {
|
|
132
|
-
return props
|
|
133
|
-
? _this._isHavingLine
|
|
134
|
-
? _this._renderContentForBothLineAndBars(props)
|
|
135
|
-
: _this._renderContentForOnlyBars(props)
|
|
136
|
-
: null;
|
|
137
|
-
};
|
|
138
|
-
_this._getCustomizedCallout = function () {
|
|
139
|
-
return _this.props.onRenderCalloutPerDataPoint
|
|
140
|
-
? _this.props.onRenderCalloutPerDataPoint(_this.state.dataPointCalloutProps, _this._renderCallout)
|
|
141
|
-
: null;
|
|
142
|
-
};
|
|
143
|
-
_this._getGraphData = function (
|
|
144
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
145
|
-
xScale, yScale, containerHeight, containerWidth, xElement) {
|
|
146
|
-
return (_this._bars =
|
|
147
|
-
_this._xAxisType === index_2.XAxisTypes.NumericAxis
|
|
148
|
-
? _this._createNumericBars(containerHeight, containerWidth, xElement)
|
|
149
|
-
: _this._xAxisType === index_2.XAxisTypes.DateAxis
|
|
150
|
-
? _this._createDateBars(containerHeight, containerWidth, xElement)
|
|
151
|
-
: _this._createStringBars(containerHeight, containerWidth, xElement));
|
|
152
|
-
};
|
|
153
|
-
_this._refCallback = function (element, legendTitle) {
|
|
154
|
-
_this._refArray.push({ index: legendTitle, refElement: element });
|
|
155
|
-
};
|
|
156
|
-
_this._getCalloutContentForLineAndBar = function (point) {
|
|
157
|
-
var _a, _b, _c, _d;
|
|
158
|
-
var _e, _f, _g, _h;
|
|
159
|
-
var YValueHover = [];
|
|
160
|
-
var theme = (_a = _this.props, _a.theme), useSingleColor = (_b = _a.useSingleColor, _b === void 0 ? false : _b);
|
|
161
|
-
var data = (_c = _this.props, _c.data), lineLegendText = _c.lineLegendText, lineLegendColor = (_d = _c.lineLegendColor, _d === void 0 ? theme.palette.yellow : _d);
|
|
162
|
-
var selectedPoint = data.filter(function (xDataPoint) { return xDataPoint.x === point.x; });
|
|
163
|
-
// there might be no y value of the line for the hovered bar. so we need to check this condition
|
|
164
|
-
if (_this._isHavingLine && ((_e = selectedPoint[0].lineData) === null || _e === void 0 ? void 0 : _e.y) !== undefined) {
|
|
165
|
-
// callout data for the line
|
|
166
|
-
YValueHover.push({
|
|
167
|
-
legend: lineLegendText,
|
|
168
|
-
color: lineLegendColor,
|
|
169
|
-
y: (_f = selectedPoint[0].lineData) === null || _f === void 0 ? void 0 : _f.y,
|
|
170
|
-
data: (_g = selectedPoint[0].lineData) === null || _g === void 0 ? void 0 : _g.yAxisCalloutData,
|
|
171
|
-
yAxisCalloutData: (_h = selectedPoint[0].lineData) === null || _h === void 0 ? void 0 : _h.yAxisCalloutData,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
// callout data for the bar
|
|
175
|
-
YValueHover.push({
|
|
176
|
-
legend: selectedPoint[0].legend,
|
|
177
|
-
y: selectedPoint[0].y,
|
|
178
|
-
color: !useSingleColor
|
|
179
|
-
? selectedPoint[0].color
|
|
180
|
-
? selectedPoint[0].color
|
|
181
|
-
: _this._createColors()(selectedPoint[0].y)
|
|
182
|
-
: _this._createColors()(1),
|
|
183
|
-
data: selectedPoint[0].yAxisCalloutData,
|
|
184
|
-
yAxisCalloutData: selectedPoint[0].yAxisCalloutData,
|
|
185
|
-
});
|
|
186
|
-
var hoverXValue = point.x instanceof Date ? (0, index_2.formatDate)(point.x, _this.props.useUTC) : point.x.toString();
|
|
187
|
-
return {
|
|
188
|
-
YValueHover: YValueHover,
|
|
189
|
-
hoverXValue: point.xAxisCalloutData || hoverXValue,
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
_this._onBarLeave = function () {
|
|
193
|
-
/**/
|
|
194
|
-
};
|
|
195
|
-
_this._handleChartMouseLeave = function () {
|
|
196
|
-
_this._calloutAnchorPoint = null;
|
|
197
|
-
_this.setState({
|
|
198
|
-
isCalloutVisible: false,
|
|
199
|
-
activeXdataPoint: null,
|
|
200
|
-
YValueHover: [],
|
|
201
|
-
hoverXValue: '',
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
_this._onBarFocus = function (point, refArrayIndexNumber, color) {
|
|
205
|
-
var _a;
|
|
206
|
-
var YValueHover = (_a = _this._getCalloutContentForLineAndBar(point), _a.YValueHover), hoverXValue = _a.hoverXValue;
|
|
207
|
-
_this._refArray.forEach(function (obj, index) {
|
|
208
|
-
if (obj.index === point.legend && refArrayIndexNumber === index) {
|
|
209
|
-
_this.setState({
|
|
210
|
-
refSelected: obj.refElement,
|
|
211
|
-
/** Show the callout if highlighted bar is focused and Hide it if unhighlighted bar is focused */
|
|
212
|
-
isCalloutVisible: _this.state.selectedLegend === '' || _this.state.selectedLegend === point.legend,
|
|
213
|
-
calloutLegend: point.legend,
|
|
214
|
-
dataForHoverCard: point.y,
|
|
215
|
-
color: point.color || color,
|
|
216
|
-
xCalloutValue: point.xAxisCalloutData ||
|
|
217
|
-
(point.x instanceof Date ? (0, index_2.formatDate)(point.x, _this.props.useUTC) : point.x.toString()),
|
|
218
|
-
yCalloutValue: point.yAxisCalloutData,
|
|
219
|
-
dataPointCalloutProps: point,
|
|
220
|
-
activeXdataPoint: point.x,
|
|
221
|
-
YValueHover: YValueHover,
|
|
222
|
-
hoverXValue: hoverXValue,
|
|
223
|
-
callOutAccessibilityData: point.callOutAccessibilityData,
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
};
|
|
228
|
-
_this._lineHover = function (point, mouseEvent) {
|
|
229
|
-
mouseEvent.persist();
|
|
230
|
-
_this._lineHoverFocus(point, mouseEvent);
|
|
231
|
-
};
|
|
232
|
-
_this._lineFocus = function (point, ref) {
|
|
233
|
-
if (ref.refElement) {
|
|
234
|
-
_this._lineHoverFocus(point, ref.refElement);
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
_this._lineHoverFocus = function (point, refSelected) {
|
|
238
|
-
var _a, _b, _c;
|
|
239
|
-
var theme = _this.props.theme;
|
|
240
|
-
var lineLegendText = (_a = _this.props, _b = _a.lineLegendText, _b === void 0 ? '' : _b), lineLegendColor = (_c = _a.lineLegendColor, _c === void 0 ? theme.palette.yellow : _c);
|
|
241
|
-
_this.setState({
|
|
242
|
-
refSelected: refSelected,
|
|
243
|
-
isCalloutVisible: true,
|
|
244
|
-
calloutLegend: lineLegendText,
|
|
245
|
-
dataForHoverCard: point.lineData.y,
|
|
246
|
-
color: lineLegendColor,
|
|
247
|
-
xCalloutValue: point.xAxisCalloutData ||
|
|
248
|
-
(point.x instanceof Date ? (0, index_2.formatDate)(point.x, _this.props.useUTC) : point.x.toString()),
|
|
249
|
-
yCalloutValue: point.lineData.yAxisCalloutData,
|
|
250
|
-
dataPointCalloutProps: point,
|
|
251
|
-
activeXdataPoint: point.x,
|
|
252
|
-
});
|
|
253
|
-
};
|
|
254
|
-
_this._getScales = function (containerHeight, containerWidth) {
|
|
255
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
256
|
-
var xBarScale;
|
|
257
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
258
|
-
var yBarScale = (0, d3_scale_1.scaleLinear)()
|
|
259
|
-
.domain([0, _this._yMax])
|
|
260
|
-
.range([0, containerHeight - _this.margins.bottom - _this.margins.top]);
|
|
261
|
-
if (_this._xAxisType === index_2.XAxisTypes.NumericAxis) {
|
|
262
|
-
var xMax = (0, d3_array_1.max)(_this._points, function (point) { return point.x; });
|
|
263
|
-
var xMin = (0, d3_array_1.min)(_this._points, function (point) { return point.x; });
|
|
264
|
-
xBarScale = (0, d3_scale_1.scaleLinear)()
|
|
265
|
-
.domain(_this._isRtl ? [xMax, xMin] : [xMin, xMax])
|
|
266
|
-
.nice()
|
|
267
|
-
.range([_this.margins.left + _this._domainMargin, containerWidth - _this.margins.right - _this._domainMargin]);
|
|
268
|
-
}
|
|
269
|
-
else if (_this._xAxisType === index_2.XAxisTypes.DateAxis) {
|
|
270
|
-
var sDate = (0, d3_array_1.min)(_this._points, function (point) { return point.x; });
|
|
271
|
-
var lDate = (0, d3_array_1.max)(_this._points, function (point) { return point.x; });
|
|
272
|
-
xBarScale = _this.props.useUTC ? (0, d3_scale_1.scaleUtc)() : (0, d3_scale_1.scaleTime)();
|
|
273
|
-
xBarScale
|
|
274
|
-
.domain([sDate, lDate])
|
|
275
|
-
.range(_this._isRtl
|
|
276
|
-
? [containerWidth - _this.margins.right - _this._domainMargin, _this.margins.left + _this._domainMargin]
|
|
277
|
-
: [_this.margins.left + _this._domainMargin, containerWidth - _this.margins.right - _this._domainMargin]);
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
xBarScale = (0, d3_scale_1.scaleBand)()
|
|
281
|
-
.domain(_this._xAxisLabels)
|
|
282
|
-
.range(_this._isRtl
|
|
283
|
-
? [containerWidth - _this.margins.right - _this._domainMargin, _this.margins.left + _this._domainMargin]
|
|
284
|
-
: [_this.margins.left + _this._domainMargin, containerWidth - _this.margins.right - _this._domainMargin])
|
|
285
|
-
.paddingInner(_this._xAxisInnerPadding)
|
|
286
|
-
.paddingOuter(_this._xAxisOuterPadding);
|
|
287
|
-
}
|
|
288
|
-
return { xBarScale: xBarScale, yBarScale: yBarScale };
|
|
289
|
-
};
|
|
290
|
-
_this._closeCallout = function () {
|
|
291
|
-
_this.setState({
|
|
292
|
-
isCalloutVisible: false,
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
|
-
_this._getLegendData = function (data, palette) {
|
|
296
|
-
var _a, _b, _c;
|
|
297
|
-
var theme = (_a = _this.props, _a.theme), useSingleColor = _a.useSingleColor;
|
|
298
|
-
var lineLegendText = (_b = _this.props, _b.lineLegendText), lineLegendColor = (_c = _b.lineLegendColor, _c === void 0 ? theme.palette.yellow : _c);
|
|
299
|
-
var actions = [];
|
|
300
|
-
data.forEach(function (point, _index) {
|
|
301
|
-
var color = !useSingleColor ? point.color : _this._createColors()(1);
|
|
302
|
-
// mapping data to the format Legends component needs
|
|
303
|
-
var legend = {
|
|
304
|
-
title: point.legend,
|
|
305
|
-
color: color,
|
|
306
|
-
action: function () {
|
|
307
|
-
_this._onLegendClick(point.legend);
|
|
308
|
-
},
|
|
309
|
-
hoverAction: function () {
|
|
310
|
-
_this._handleChartMouseLeave();
|
|
311
|
-
_this._onLegendHover(point.legend);
|
|
312
|
-
},
|
|
313
|
-
onMouseOutAction: function () {
|
|
314
|
-
_this._onLegendLeave();
|
|
315
|
-
},
|
|
316
|
-
};
|
|
317
|
-
actions.push(legend);
|
|
318
|
-
});
|
|
319
|
-
if (_this._isHavingLine && lineLegendText && lineLegendColor) {
|
|
320
|
-
var lineLegend = {
|
|
321
|
-
title: lineLegendText,
|
|
322
|
-
color: lineLegendColor,
|
|
323
|
-
action: function () {
|
|
324
|
-
_this._onLegendClick(lineLegendText);
|
|
325
|
-
},
|
|
326
|
-
hoverAction: function () {
|
|
327
|
-
_this._handleChartMouseLeave();
|
|
328
|
-
_this._onLegendHover(lineLegendText);
|
|
329
|
-
},
|
|
330
|
-
onMouseOutAction: function () {
|
|
331
|
-
_this._onLegendLeave();
|
|
332
|
-
},
|
|
333
|
-
isLineLegendInBarChart: true,
|
|
334
|
-
};
|
|
335
|
-
actions.unshift(lineLegend);
|
|
336
|
-
}
|
|
337
|
-
var legends = (React.createElement(index_1.Legends, tslib_1.__assign({ legends: actions, enabledWrapLines: _this.props.enabledLegendsWrapLines, overflowProps: _this.props.legendsOverflowProps, focusZonePropsInHoverCard: _this.props.focusZonePropsForLegendsInHoverCard, overflowText: _this.props.legendsOverflowText }, _this.props.legendProps)));
|
|
338
|
-
return legends;
|
|
339
|
-
};
|
|
340
|
-
_this._getAxisData = function (yAxisData) {
|
|
341
|
-
if (yAxisData && yAxisData.yAxisDomainValues.length) {
|
|
342
|
-
var domainValue = yAxisData.yAxisDomainValues;
|
|
343
|
-
_this._yMax = Math.max(domainValue[domainValue.length - 1], _this.props.yMaxValue || 0);
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
/**
|
|
347
|
-
* This function checks if the given legend is highlighted or not.
|
|
348
|
-
* A legend can be highlighted in 2 ways:
|
|
349
|
-
* 1. selection: if the user clicks on it
|
|
350
|
-
* 2. hovering: if there is no selected legend and the user hovers over it
|
|
351
|
-
*/
|
|
352
|
-
_this._legendHighlighted = function (legendTitle) {
|
|
353
|
-
return (_this.state.selectedLegend === legendTitle ||
|
|
354
|
-
(_this.state.selectedLegend === '' && _this.state.activeLegend === legendTitle));
|
|
355
|
-
};
|
|
356
|
-
/**
|
|
357
|
-
* This function checks if none of the legends is selected or hovered.
|
|
358
|
-
*/
|
|
359
|
-
_this._noLegendHighlighted = function () {
|
|
360
|
-
return _this.state.selectedLegend === '' && _this.state.activeLegend === '';
|
|
361
|
-
};
|
|
362
|
-
_this._getAriaLabel = function (point) {
|
|
363
|
-
var _a, _b, _c;
|
|
364
|
-
var xValue = point.xAxisCalloutData
|
|
365
|
-
? point.xAxisCalloutData
|
|
366
|
-
: point.x instanceof Date
|
|
367
|
-
? (0, index_2.formatDate)(point.x, _this.props.useUTC)
|
|
368
|
-
: point.x;
|
|
369
|
-
var legend = point.legend;
|
|
370
|
-
var yValue = point.yAxisCalloutData || point.y;
|
|
371
|
-
var lineLegend = _this.props.lineLegendText || 'Line';
|
|
372
|
-
var lineYValue = ((_a = point.lineData) === null || _a === void 0 ? void 0 : _a.yAxisCalloutData) || ((_b = point.lineData) === null || _b === void 0 ? void 0 : _b.y);
|
|
373
|
-
return (((_c = point.callOutAccessibilityData) === null || _c === void 0 ? void 0 : _c.ariaLabel) ||
|
|
374
|
-
"".concat(xValue, ". ") +
|
|
375
|
-
(legend ? "".concat(legend, ", ") : '') +
|
|
376
|
-
"".concat(yValue, ".") +
|
|
377
|
-
(typeof lineYValue !== 'undefined' ? " ".concat(lineLegend, ", ").concat(lineYValue, ".") : ''));
|
|
378
|
-
};
|
|
379
|
-
_this._getDomainMargins = function (containerWidth) {
|
|
380
|
-
var _a;
|
|
381
|
-
_this._domainMargin = MIN_DOMAIN_MARGIN;
|
|
382
|
-
/** Total width available to render the bars */
|
|
383
|
-
var totalWidth = containerWidth - (_this.margins.left + MIN_DOMAIN_MARGIN) - (_this.margins.right + MIN_DOMAIN_MARGIN);
|
|
384
|
-
if (_this._xAxisType === index_2.XAxisTypes.StringAxis) {
|
|
385
|
-
if ((0, index_2.isScalePaddingDefined)(_this.props.xAxisOuterPadding, _this.props.xAxisPadding)) {
|
|
386
|
-
// Setting the domain margin for string x-axis to 0 because the xAxisOuterPadding prop is now available
|
|
387
|
-
// to adjust the space before the first bar and after the last bar.
|
|
388
|
-
_this._domainMargin = 0;
|
|
389
|
-
}
|
|
390
|
-
else if (_this.props.barWidth !== 'auto') {
|
|
391
|
-
/** Rate at which the space between the bars changes wrt the bar width */
|
|
392
|
-
var barGapRate = _this._xAxisInnerPadding / (1 - _this._xAxisInnerPadding);
|
|
393
|
-
// Update the bar width so that when CartesianChart rerenders,
|
|
394
|
-
// the following calculations don't use the previous bar width.
|
|
395
|
-
_this._barWidth = (0, index_2.getBarWidth)(_this.props.barWidth, _this.props.maxBarWidth);
|
|
396
|
-
/** Total width required to render the bars. Directly proportional to bar width */
|
|
397
|
-
var reqWidth = (_this._xAxisLabels.length + (_this._xAxisLabels.length - 1) * barGapRate) * _this._barWidth;
|
|
398
|
-
if (totalWidth >= reqWidth) {
|
|
399
|
-
// Center align the chart by setting equal left and right margins for domain
|
|
400
|
-
_this._domainMargin = MIN_DOMAIN_MARGIN + (totalWidth - reqWidth) / 2;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
var data = ((_a = _this.props.data) === null || _a === void 0 ? void 0 : _a.map(function (point) { return point.x; })) || [];
|
|
406
|
-
_this._barWidth = (0, index_2.getBarWidth)(_this.props.barWidth, _this.props.maxBarWidth, (0, index_2.calculateAppropriateBarWidth)(data, totalWidth));
|
|
407
|
-
_this._domainMargin = MIN_DOMAIN_MARGIN + _this._barWidth / 2;
|
|
408
|
-
}
|
|
409
|
-
return tslib_1.__assign(tslib_1.__assign({}, _this.margins), { left: _this.margins.left + _this._domainMargin, right: _this.margins.right + _this._domainMargin });
|
|
410
|
-
};
|
|
411
|
-
_this._getChartTitle = function () {
|
|
412
|
-
var _a;
|
|
413
|
-
var chartTitle = (_a = _this.props, _a.chartTitle), data = _a.data;
|
|
414
|
-
return ((chartTitle ? "".concat(chartTitle, ". ") : '') +
|
|
415
|
-
"Vertical bar chart with ".concat((data === null || data === void 0 ? void 0 : data.length) || 0, " bars") +
|
|
416
|
-
(_this._isHavingLine ? ' and 1 line' : '') +
|
|
417
|
-
'. ');
|
|
418
|
-
};
|
|
419
|
-
_this.state = {
|
|
420
|
-
color: '',
|
|
421
|
-
dataForHoverCard: 0,
|
|
422
|
-
isCalloutVisible: false,
|
|
423
|
-
refSelected: null,
|
|
424
|
-
selectedLegend: '',
|
|
425
|
-
activeLegend: '',
|
|
426
|
-
xCalloutValue: '',
|
|
427
|
-
yCalloutValue: '',
|
|
428
|
-
activeXdataPoint: null,
|
|
429
|
-
YValueHover: [],
|
|
430
|
-
hoverXValue: '',
|
|
431
|
-
calloutLegend: '',
|
|
432
|
-
};
|
|
433
|
-
_this._isHavingLine = _this._checkForLine();
|
|
434
|
-
_this._calloutId = (0, Utilities_1.getId)('callout');
|
|
435
|
-
_this._tooltipId = (0, Utilities_1.getId)('VCTooltipID_');
|
|
436
|
-
_this._refArray = [];
|
|
437
|
-
_this._xAxisType =
|
|
438
|
-
_this.props.data && _this.props.data.length > 0
|
|
439
|
-
? (0, index_2.getTypeOfAxis)(_this.props.data[0].x, true)
|
|
440
|
-
: index_2.XAxisTypes.StringAxis;
|
|
441
|
-
_this._emptyChartId = (0, Utilities_1.getId)('_VBC_empty');
|
|
442
|
-
_this._domainMargin = MIN_DOMAIN_MARGIN;
|
|
443
|
-
return _this;
|
|
444
|
-
}
|
|
445
|
-
VerticalBarChartBase.prototype.render = function () {
|
|
446
|
-
var _this = this;
|
|
447
|
-
this._adjustProps();
|
|
448
|
-
this._xAxisLabels = this._points.map(function (point) { return point.x; });
|
|
449
|
-
this._yMax = Math.max((0, d3_array_1.max)(this._points, function (point) { return point.y; }), this.props.yMaxValue || 0);
|
|
450
|
-
var legendBars = this._getLegendData(this._points, this.props.theme.palette);
|
|
451
|
-
this._classNames = getClassNames(this.props.styles, {
|
|
452
|
-
theme: this.props.theme,
|
|
453
|
-
legendColor: this.state.color,
|
|
454
|
-
});
|
|
455
|
-
var calloutProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, id: "toolTip".concat(this._calloutId), target: this.state.refSelected, isBeakVisible: false }, (this._isHavingLine && {
|
|
456
|
-
YValueHover: this.state.YValueHover,
|
|
457
|
-
hoverXValue: this.state.hoverXValue,
|
|
458
|
-
})), { gapSpace: 15, color: this.state.color, legend: this.state.calloutLegend, XValue: this.state.xCalloutValue, YValue: this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard, onDismiss: this._closeCallout, preventDismissOnLostFocus: true }), this.props.calloutProps), (0, index_2.getAccessibleDataObject)(this.state.callOutAccessibilityData));
|
|
459
|
-
var tickParams = {
|
|
460
|
-
tickValues: this.props.tickValues,
|
|
461
|
-
tickFormat: this.props.tickFormat,
|
|
462
|
-
};
|
|
463
|
-
return !this._isChartEmpty() ? (React.createElement(index_1.CartesianChart, tslib_1.__assign({}, this.props, { chartTitle: this._getChartTitle(), points: this._points, chartType: index_2.ChartTypes.VerticalBarChart, xAxisType: this._xAxisType, createYAxis: index_2.createNumericYAxis, calloutProps: calloutProps, tickParams: tickParams }, (this._isHavingLine && this._noLegendHighlighted() && { isCalloutForStack: true }), { legendBars: legendBars, datasetForXAxisDomain: this._xAxisLabels, barwidth: this._barWidth, focusZoneDirection: react_focus_1.FocusZoneDirection.horizontal, customizedCallout: this._getCustomizedCallout(), createStringYAxis: index_2.createStringYAxis, getmargins: this._getMargins, getMinMaxOfYAxis: index_2.findVerticalNumericMinMaxOfY, getGraphData: this._getGraphData, getDomainNRangeValues: this._getDomainNRangeValues, getAxisData: this._getAxisData, onChartMouseLeave: this._handleChartMouseLeave, getDomainMargins: this._getDomainMargins }, (this._xAxisType === index_2.XAxisTypes.StringAxis && {
|
|
464
|
-
xAxisInnerPadding: this._xAxisInnerPadding,
|
|
465
|
-
xAxisOuterPadding: this._xAxisOuterPadding,
|
|
466
|
-
}), {
|
|
467
|
-
/* eslint-disable react/jsx-no-bind */
|
|
468
|
-
// eslint-disable-next-line react/no-children-prop
|
|
469
|
-
children: function (props) {
|
|
470
|
-
return (React.createElement(React.Fragment, null,
|
|
471
|
-
React.createElement("g", null, _this._bars),
|
|
472
|
-
_this._isHavingLine && (React.createElement("g", null, _this._createLine(props.xScale, props.yScale, props.containerHeight, props.containerWidth, props.yScaleSecondary)))));
|
|
473
|
-
} }))) : (React.createElement("div", { id: this._emptyChartId, role: 'alert', style: { opacity: '0' }, "aria-label": 'Graph has no data to display' }));
|
|
474
|
-
};
|
|
475
|
-
VerticalBarChartBase.prototype._adjustProps = function () {
|
|
476
|
-
this._points = this.props.data || [];
|
|
477
|
-
this._barWidth = (0, index_2.getBarWidth)(this.props.barWidth, this.props.maxBarWidth);
|
|
478
|
-
var palette = this.props.theme.palette;
|
|
479
|
-
this._colors = this.props.colors || [palette.blueLight, palette.blue, palette.blueMid, palette.blueDark];
|
|
480
|
-
this._isHavingLine = this._checkForLine();
|
|
481
|
-
this._xAxisInnerPadding = (0, index_2.getScalePadding)(this.props.xAxisInnerPadding, this.props.xAxisPadding, 2 / 3);
|
|
482
|
-
this._xAxisOuterPadding = (0, index_2.getScalePadding)(this.props.xAxisOuterPadding, this.props.xAxisPadding, 0);
|
|
483
|
-
};
|
|
484
|
-
VerticalBarChartBase.prototype._createColors = function () {
|
|
485
|
-
var _a;
|
|
486
|
-
var _this = this;
|
|
487
|
-
var increment = this._colors.length <= 1 ? 1 : 1 / (this._colors.length - 1);
|
|
488
|
-
var useSingleColor = (_a = this.props.useSingleColor, _a === void 0 ? false : _a);
|
|
489
|
-
if (useSingleColor) {
|
|
490
|
-
return function (_p) {
|
|
491
|
-
var _a;
|
|
492
|
-
var theme = (_a = _this.props, _a.theme), colors = _a.colors;
|
|
493
|
-
return colors && colors.length > 0 ? colors[0] : theme.palette.blueLight;
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
var domainValues = [];
|
|
497
|
-
for (var i = 0; i < this._colors.length; i++) {
|
|
498
|
-
domainValues.push(increment * i * this._yMax);
|
|
499
|
-
}
|
|
500
|
-
var colorScale = (0, d3_scale_1.scaleLinear)().domain(domainValues).range(this._colors);
|
|
501
|
-
return colorScale;
|
|
502
|
-
};
|
|
503
|
-
VerticalBarChartBase.prototype._onBarHover = function (point, color, mouseEvent) {
|
|
504
|
-
var _a;
|
|
505
|
-
mouseEvent.persist();
|
|
506
|
-
var YValueHover = (_a = this._getCalloutContentForLineAndBar(point), _a.YValueHover), hoverXValue = _a.hoverXValue;
|
|
507
|
-
if (this._calloutAnchorPoint !== point) {
|
|
508
|
-
this._calloutAnchorPoint = point;
|
|
509
|
-
this.setState({
|
|
510
|
-
refSelected: mouseEvent,
|
|
511
|
-
/** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */
|
|
512
|
-
isCalloutVisible: this.state.selectedLegend === '' || this.state.selectedLegend === point.legend,
|
|
513
|
-
dataForHoverCard: point.y,
|
|
514
|
-
calloutLegend: point.legend,
|
|
515
|
-
color: point.color || color,
|
|
516
|
-
// To display callout value, if no callout value given, taking given point.x value as a string.
|
|
517
|
-
xCalloutValue: point.xAxisCalloutData ||
|
|
518
|
-
(point.x instanceof Date ? (0, index_2.formatDate)(point.x, this.props.useUTC) : point.x.toString()),
|
|
519
|
-
yCalloutValue: point.yAxisCalloutData,
|
|
520
|
-
dataPointCalloutProps: point,
|
|
521
|
-
// Hovering over a bar should highlight corresponding line points only when no legend is selected
|
|
522
|
-
activeXdataPoint: this._noLegendHighlighted() ? point.x : null,
|
|
523
|
-
YValueHover: YValueHover,
|
|
524
|
-
hoverXValue: hoverXValue,
|
|
525
|
-
callOutAccessibilityData: point.callOutAccessibilityData,
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
VerticalBarChartBase.prototype._createNumericBars = function (containerHeight, containerWidth, xElement) {
|
|
530
|
-
var _a, _b;
|
|
531
|
-
var _this = this;
|
|
532
|
-
var useSingleColor = (_a = this.props.useSingleColor, _a === void 0 ? false : _a);
|
|
533
|
-
var xBarScale = (_b = this._getScales(containerHeight, containerWidth), _b.xBarScale), yBarScale = _b.yBarScale;
|
|
534
|
-
var colorScale = this._createColors();
|
|
535
|
-
var bars = this._points.map(function (point, index) {
|
|
536
|
-
var shouldHighlight = _this._legendHighlighted(point.legend) || _this._noLegendHighlighted() ? true : false;
|
|
537
|
-
_this._classNames = getClassNames(_this.props.styles, {
|
|
538
|
-
theme: _this.props.theme,
|
|
539
|
-
legendColor: _this.state.color,
|
|
540
|
-
shouldHighlight: shouldHighlight,
|
|
541
|
-
});
|
|
542
|
-
var barHeight = Math.max(yBarScale(point.y), 0);
|
|
543
|
-
var adjustedBarHeight = 0;
|
|
544
|
-
if (barHeight <= 0) {
|
|
545
|
-
return React.createElement(React.Fragment, { key: point.x }, " ");
|
|
546
|
-
}
|
|
547
|
-
else if (barHeight <= Math.ceil(yBarScale(_this._yMax) / 100.0)) {
|
|
548
|
-
adjustedBarHeight = Math.ceil(yBarScale(_this._yMax) / 100.0);
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
adjustedBarHeight = barHeight;
|
|
552
|
-
}
|
|
553
|
-
var xPoint = xBarScale(point.x) - _this._barWidth / 2;
|
|
554
|
-
var yPoint = containerHeight - _this.margins.bottom - adjustedBarHeight;
|
|
555
|
-
return (React.createElement("g", { key: point.x },
|
|
556
|
-
React.createElement("rect", { id: (0, Utilities_1.getId)('_VBC_bar_'), x: xPoint, className: _this._classNames.opacityChangeOnHover, y: yPoint, width: _this._barWidth, "data-is-focusable": !_this.props.hideTooltip && shouldHighlight, height: adjustedBarHeight, ref: function (e) {
|
|
557
|
-
_this._refCallback(e, point.legend);
|
|
558
|
-
}, onClick: point.onClick, onMouseOver: _this._onBarHover.bind(_this, point, colorScale(point.y)), "aria-label": _this._getAriaLabel(point), role: "img", onMouseLeave: _this._onBarLeave, onFocus: _this._onBarFocus.bind(_this, point, index, colorScale(point.y)), onBlur: _this._onBarLeave, fill: point.color && !useSingleColor ? point.color : colorScale(point.y) }),
|
|
559
|
-
_this._renderBarLabel(xPoint, yPoint, point.y, point.legend)));
|
|
560
|
-
});
|
|
561
|
-
// Removing un wanted tooltip div from DOM, when prop not provided.
|
|
562
|
-
if (!this.props.showXAxisLablesTooltip) {
|
|
563
|
-
try {
|
|
564
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
565
|
-
// eslint-disable-next-line no-empty
|
|
566
|
-
}
|
|
567
|
-
catch (e) { }
|
|
568
|
-
}
|
|
569
|
-
// Used to display tooltip at x axis labels.
|
|
570
|
-
if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
|
|
571
|
-
var xAxisElement = (0, d3_selection_1.select)(xElement).call(xBarScale);
|
|
572
|
-
try {
|
|
573
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
574
|
-
// eslint-disable-next-line no-empty
|
|
575
|
-
}
|
|
576
|
-
catch (e) { }
|
|
577
|
-
var tooltipProps = {
|
|
578
|
-
tooltipCls: this._classNames.tooltip,
|
|
579
|
-
id: this._tooltipId,
|
|
580
|
-
xAxis: xAxisElement,
|
|
581
|
-
};
|
|
582
|
-
xAxisElement && (0, index_2.tooltipOfXAxislabels)(tooltipProps);
|
|
583
|
-
}
|
|
584
|
-
return bars;
|
|
585
|
-
};
|
|
586
|
-
VerticalBarChartBase.prototype._createStringBars = function (containerHeight, containerWidth, xElement) {
|
|
587
|
-
var _a;
|
|
588
|
-
var _this = this;
|
|
589
|
-
var xBarScale = (_a = this._getScales(containerHeight, containerWidth), _a.xBarScale), yBarScale = _a.yBarScale;
|
|
590
|
-
var colorScale = this._createColors();
|
|
591
|
-
var bars = this._points.map(function (point, index) {
|
|
592
|
-
var barHeight = Math.max(yBarScale(point.y), 0);
|
|
593
|
-
var adjustedBarHeight = 0;
|
|
594
|
-
if (barHeight <= 0) {
|
|
595
|
-
return React.createElement(React.Fragment, { key: point.x instanceof Date ? point.x.getTime() : point.x }, " ");
|
|
596
|
-
}
|
|
597
|
-
else if (barHeight <= Math.ceil(yBarScale(_this._yMax) / 100.0)) {
|
|
598
|
-
adjustedBarHeight = Math.ceil(yBarScale(_this._yMax) / 100.0);
|
|
599
|
-
}
|
|
600
|
-
else {
|
|
601
|
-
adjustedBarHeight = barHeight;
|
|
602
|
-
}
|
|
603
|
-
var xPoint = xBarScale(point.x);
|
|
604
|
-
var yPoint = containerHeight - _this.margins.bottom - adjustedBarHeight;
|
|
605
|
-
// Setting the bar width here is safe because there are no dependencies earlier in the code
|
|
606
|
-
// that rely on the width of bars in vertical bar charts with string x-axis.
|
|
607
|
-
_this._barWidth = (0, index_2.getBarWidth)(_this.props.barWidth, _this.props.maxBarWidth, xBarScale.bandwidth());
|
|
608
|
-
return (React.createElement("g", { key: point.x instanceof Date ? point.x.getTime() : point.x, transform: "translate(".concat(0.5 * (xBarScale.bandwidth() - _this._barWidth), ", 0)") },
|
|
609
|
-
React.createElement("rect", { id: (0, Utilities_1.getId)('_VBC_bar_'), x: xPoint, y: yPoint, width: _this._barWidth, height: adjustedBarHeight, "aria-label": _this._getAriaLabel(point), role: "img", ref: function (e) {
|
|
610
|
-
_this._refCallback(e, point.legend);
|
|
611
|
-
}, onClick: point.onClick, onMouseOver: _this._onBarHover.bind(_this, point, colorScale(point.y)), onMouseLeave: _this._onBarLeave, onBlur: _this._onBarLeave, "data-is-focusable": !_this.props.hideTooltip, onFocus: _this._onBarFocus.bind(_this, point, index, colorScale(point.y)), fill: point.color ? point.color : colorScale(point.y) }),
|
|
612
|
-
_this._renderBarLabel(xPoint, yPoint, point.y, point.legend)));
|
|
613
|
-
});
|
|
614
|
-
// Removing un wanted tooltip div from DOM, when prop not provided.
|
|
615
|
-
if (!this.props.showXAxisLablesTooltip) {
|
|
616
|
-
try {
|
|
617
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
618
|
-
// eslint-disable-next-line no-empty
|
|
619
|
-
}
|
|
620
|
-
catch (e) { }
|
|
621
|
-
}
|
|
622
|
-
// Used to display tooltip at x axis labels.
|
|
623
|
-
if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
|
|
624
|
-
var xAxisElement = (0, d3_selection_1.select)(xElement).call(xBarScale);
|
|
625
|
-
try {
|
|
626
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
627
|
-
// eslint-disable-next-line no-empty
|
|
628
|
-
}
|
|
629
|
-
catch (e) { }
|
|
630
|
-
var tooltipProps = {
|
|
631
|
-
tooltipCls: this._classNames.tooltip,
|
|
632
|
-
id: this._tooltipId,
|
|
633
|
-
xAxis: xAxisElement,
|
|
634
|
-
showTooltip: this.props.showXAxisLablesTooltip,
|
|
635
|
-
};
|
|
636
|
-
xAxisElement && (0, index_2.tooltipOfXAxislabels)(tooltipProps);
|
|
637
|
-
}
|
|
638
|
-
return bars;
|
|
639
|
-
};
|
|
640
|
-
VerticalBarChartBase.prototype._createDateBars = function (containerHeight, containerWidth, xElement) {
|
|
641
|
-
var _a, _b;
|
|
642
|
-
var _this = this;
|
|
643
|
-
var useSingleColor = (_a = this.props.useSingleColor, _a === void 0 ? false : _a);
|
|
644
|
-
var xBarScale = (_b = this._getScales(containerHeight, containerWidth), _b.xBarScale), yBarScale = _b.yBarScale;
|
|
645
|
-
var colorScale = this._createColors();
|
|
646
|
-
var bars = this._points.map(function (point, index) {
|
|
647
|
-
var shouldHighlight = _this._legendHighlighted(point.legend) || _this._noLegendHighlighted() ? true : false;
|
|
648
|
-
_this._classNames = getClassNames(_this.props.styles, {
|
|
649
|
-
theme: _this.props.theme,
|
|
650
|
-
legendColor: _this.state.color,
|
|
651
|
-
shouldHighlight: shouldHighlight,
|
|
652
|
-
});
|
|
653
|
-
var barHeight = Math.max(yBarScale(point.y), 0);
|
|
654
|
-
var adjustedBarHeight = 0;
|
|
655
|
-
if (barHeight <= 0) {
|
|
656
|
-
return React.createElement(React.Fragment, { key: point.x instanceof Date ? point.x.getTime() : point.x }, " ");
|
|
657
|
-
}
|
|
658
|
-
else if (barHeight <= Math.ceil(yBarScale(_this._yMax) / 100.0)) {
|
|
659
|
-
adjustedBarHeight = Math.ceil(yBarScale(_this._yMax) / 100.0);
|
|
660
|
-
}
|
|
661
|
-
else {
|
|
662
|
-
adjustedBarHeight = barHeight;
|
|
663
|
-
}
|
|
664
|
-
var xPoint = xBarScale(point.x) - _this._barWidth / 2;
|
|
665
|
-
var yPoint = containerHeight - _this.margins.bottom - adjustedBarHeight;
|
|
666
|
-
return (React.createElement("g", { key: point.x instanceof Date ? point.x.getTime() : point.x },
|
|
667
|
-
React.createElement("rect", { id: (0, Utilities_1.getId)('_VBC_bar_'), x: xPoint, className: _this._classNames.opacityChangeOnHover, y: yPoint, width: _this._barWidth, "data-is-focusable": !_this.props.hideTooltip && shouldHighlight, height: adjustedBarHeight, ref: function (e) {
|
|
668
|
-
_this._refCallback(e, point.legend);
|
|
669
|
-
}, onClick: point.onClick, onMouseOver: _this._onBarHover.bind(_this, point, colorScale(point.y)), "aria-label": _this._getAriaLabel(point), role: "img", onMouseLeave: _this._onBarLeave, onFocus: _this._onBarFocus.bind(_this, point, index, colorScale(point.y)), onBlur: _this._onBarLeave, fill: point.color && !useSingleColor ? point.color : colorScale(point.y) }),
|
|
670
|
-
_this._renderBarLabel(xPoint, yPoint, point.y, point.legend)));
|
|
671
|
-
});
|
|
672
|
-
// Removing un wanted tooltip div from DOM, when prop not provided.
|
|
673
|
-
if (!this.props.showXAxisLablesTooltip) {
|
|
674
|
-
try {
|
|
675
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
676
|
-
// eslint-disable-next-line no-empty
|
|
677
|
-
}
|
|
678
|
-
catch (e) { }
|
|
679
|
-
}
|
|
680
|
-
// Used to display tooltip at x axis labels.
|
|
681
|
-
if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
|
|
682
|
-
var xAxisElement = (0, d3_selection_1.select)(xElement).call(xBarScale);
|
|
683
|
-
try {
|
|
684
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
685
|
-
// eslint-disable-next-line no-empty
|
|
686
|
-
}
|
|
687
|
-
catch (e) { }
|
|
688
|
-
var tooltipProps = {
|
|
689
|
-
tooltipCls: this._classNames.tooltip,
|
|
690
|
-
id: this._tooltipId,
|
|
691
|
-
xAxis: xAxisElement,
|
|
692
|
-
};
|
|
693
|
-
xAxisElement && (0, index_2.tooltipOfXAxislabels)(tooltipProps);
|
|
694
|
-
}
|
|
695
|
-
return bars;
|
|
696
|
-
};
|
|
697
|
-
VerticalBarChartBase.prototype._onLegendClick = function (legendTitle) {
|
|
698
|
-
if (this.state.selectedLegend === legendTitle) {
|
|
699
|
-
this.setState({
|
|
700
|
-
selectedLegend: '',
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
else {
|
|
704
|
-
this.setState({
|
|
705
|
-
selectedLegend: legendTitle,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
VerticalBarChartBase.prototype._onLegendHover = function (legendTitle) {
|
|
710
|
-
this.setState({
|
|
711
|
-
activeLegend: legendTitle,
|
|
712
|
-
});
|
|
713
|
-
};
|
|
714
|
-
VerticalBarChartBase.prototype._onLegendLeave = function () {
|
|
715
|
-
this.setState({
|
|
716
|
-
activeLegend: '',
|
|
717
|
-
});
|
|
718
|
-
};
|
|
719
|
-
VerticalBarChartBase.prototype._renderBarLabel = function (xPoint, yPoint, barValue, legend) {
|
|
720
|
-
if (this.props.hideLabels ||
|
|
721
|
-
this._barWidth < 16 ||
|
|
722
|
-
!(this._legendHighlighted(legend) || this._noLegendHighlighted())) {
|
|
723
|
-
return null;
|
|
724
|
-
}
|
|
725
|
-
return (React.createElement("text", { x: xPoint + this._barWidth / 2, y: yPoint - 6, textAnchor: "middle", className: this._classNames.barLabel, "aria-hidden": true }, (0, index_2.formatValueWithSIPrefix)(barValue)));
|
|
726
|
-
};
|
|
727
|
-
VerticalBarChartBase.prototype._isChartEmpty = function () {
|
|
728
|
-
return (this._points.length === 0 ||
|
|
729
|
-
((0, d3_array_1.max)(this._points, function (point) { return point.y; }) <= 0 && !this._isHavingLine));
|
|
730
|
-
};
|
|
731
|
-
VerticalBarChartBase.defaultProps = {
|
|
732
|
-
maxBarWidth: 24,
|
|
733
|
-
useUTC: true,
|
|
734
|
-
};
|
|
735
|
-
return VerticalBarChartBase;
|
|
736
|
-
}(React.Component));
|
|
737
|
-
});
|
|
738
|
-
//# sourceMappingURL=VerticalBarChart.base.js.map
|