@fluentui/react-charting 5.16.34 → 5.16.35
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 +40 -1
- package/CHANGELOG.md +15 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/AreaChart/AreaChart.base.js +13 -13
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +9 -9
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js +2 -2
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.js +1 -1
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.js +1 -1
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js +1 -1
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -4
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js +13 -13
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +5 -5
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -6
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/Legends/Legends.base.js +4 -4
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/components/Legends/Legends.styles.js +3 -3
- package/lib/components/Legends/Legends.styles.js.map +1 -1
- package/lib/components/Legends/shape.js +10 -10
- package/lib/components/Legends/shape.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +41 -41
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.js +1 -1
- package/lib/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.js +2 -2
- package/lib/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js +6 -6
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.base.js +1 -1
- package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +4 -4
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.styles.js +2 -2
- package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.base.js +8 -8
- package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +7 -7
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +17 -17
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib/utilities/utilities.js +10 -10
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/AreaChart.js +1 -1
- package/lib-amd/AreaChart.js.map +1 -1
- package/lib-amd/CartesianChart.js +1 -1
- package/lib-amd/CartesianChart.js.map +1 -1
- package/lib-amd/DonutChart.js +1 -1
- package/lib-amd/DonutChart.js.map +1 -1
- package/lib-amd/GroupedVerticalBarChart.js +1 -1
- package/lib-amd/GroupedVerticalBarChart.js.map +1 -1
- package/lib-amd/HeatMapChart.js +1 -1
- package/lib-amd/HeatMapChart.js.map +1 -1
- package/lib-amd/HorizontalBarChart.js +1 -1
- package/lib-amd/HorizontalBarChart.js.map +1 -1
- package/lib-amd/HorizontalBarChartWithAxis.js +1 -1
- package/lib-amd/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-amd/Legends.js +1 -1
- package/lib-amd/Legends.js.map +1 -1
- package/lib-amd/LineChart.js +1 -1
- package/lib-amd/LineChart.js.map +1 -1
- package/lib-amd/PieChart.js +1 -1
- package/lib-amd/PieChart.js.map +1 -1
- package/lib-amd/SankeyChart.js +1 -1
- package/lib-amd/SankeyChart.js.map +1 -1
- package/lib-amd/Sparkline.js +1 -1
- package/lib-amd/Sparkline.js.map +1 -1
- package/lib-amd/StackedBarChart.js +1 -1
- package/lib-amd/StackedBarChart.js.map +1 -1
- package/lib-amd/TreeChart.js +1 -1
- package/lib-amd/TreeChart.js.map +1 -1
- package/lib-amd/VerticalBarChart.js +1 -1
- package/lib-amd/VerticalBarChart.js.map +1 -1
- package/lib-amd/VerticalStackedBarChart.js +1 -1
- package/lib-amd/VerticalStackedBarChart.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +42 -42
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.js +1 -1
- package/lib-amd/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.styles.js +1 -1
- package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-amd/components/AreaChart/index.js +2 -2
- package/lib-amd/components/AreaChart/index.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +41 -41
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.js +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +6 -6
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-amd/components/CommonComponents/index.js +2 -2
- package/lib-amd/components/CommonComponents/index.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.js +6 -6
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/index.js +2 -2
- package/lib-amd/components/DonutChart/Arc/index.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.js +10 -10
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.js +1 -1
- package/lib-amd/components/DonutChart/DonutChart.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.js +1 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-amd/components/DonutChart/Pie/Pie.js +4 -4
- package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-amd/components/DonutChart/Pie/index.js +2 -2
- package/lib-amd/components/DonutChart/Pie/index.js.map +1 -1
- package/lib-amd/components/DonutChart/index.js +3 -3
- package/lib-amd/components/DonutChart/index.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/index.js +2 -2
- package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +25 -25
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.js +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib-amd/components/HeatMapChart/index.js +2 -2
- package/lib-amd/components/HeatMapChart/index.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/index.js +3 -3
- package/lib-amd/components/HorizontalBarChart/index.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js +2 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib-amd/components/Legends/Legends.base.js +16 -16
- package/lib-amd/components/Legends/Legends.base.js.map +1 -1
- package/lib-amd/components/Legends/Legends.js +1 -1
- package/lib-amd/components/Legends/Legends.js.map +1 -1
- package/lib-amd/components/Legends/Legends.styles.js +8 -8
- package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
- package/lib-amd/components/Legends/index.js +3 -3
- package/lib-amd/components/Legends/index.js.map +1 -1
- package/lib-amd/components/Legends/shape.js +11 -11
- package/lib-amd/components/Legends/shape.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +78 -78
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.js +1 -1
- package/lib-amd/components/LineChart/LineChart.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.styles.js +1 -1
- package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +3 -3
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib-amd/components/LineChart/index.js +3 -3
- package/lib-amd/components/LineChart/index.js.map +1 -1
- package/lib-amd/components/PieChart/Arc/Arc.js +5 -5
- package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/PieChart/Arc/index.js +2 -2
- package/lib-amd/components/PieChart/Arc/index.js.map +1 -1
- package/lib-amd/components/PieChart/Pie/Pie.js +3 -3
- package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-amd/components/PieChart/Pie/index.js +2 -2
- package/lib-amd/components/PieChart/Pie/index.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.base.js +2 -2
- package/lib-amd/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.js +1 -1
- package/lib-amd/components/PieChart/PieChart.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.styles.js +1 -1
- package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib-amd/components/PieChart/index.js +2 -2
- package/lib-amd/components/PieChart/index.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +27 -27
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.js +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-amd/components/SankeyChart/index.js +2 -2
- package/lib-amd/components/SankeyChart/index.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.base.js +9 -9
- package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.js +1 -1
- package/lib-amd/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-amd/components/Sparkline/index.js +2 -2
- package/lib-amd/components/Sparkline/index.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +11 -11
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +3 -3
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib-amd/components/StackedBarChart/index.js +5 -5
- package/lib-amd/components/StackedBarChart/index.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.base.js +20 -20
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.js +1 -1
- package/lib-amd/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.styles.js +4 -4
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-amd/components/TreeChart/index.js +2 -2
- package/lib-amd/components/TreeChart/index.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +33 -33
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/index.js +2 -2
- package/lib-amd/components/VerticalBarChart/index.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +36 -36
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/index.js +2 -2
- package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib-amd/index.js +19 -19
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types/index.js +2 -2
- package/lib-amd/types/index.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/index.js +3 -3
- package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib-amd/utilities/FocusableTooltipText.js +3 -3
- package/lib-amd/utilities/FocusableTooltipText.js.map +1 -1
- package/lib-amd/utilities/index.js +3 -3
- package/lib-amd/utilities/index.js.map +1 -1
- package/lib-amd/utilities/utilities.js +77 -77
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/AreaChart.js +1 -1
- package/lib-commonjs/AreaChart.js.map +1 -1
- package/lib-commonjs/CartesianChart.js +1 -1
- package/lib-commonjs/CartesianChart.js.map +1 -1
- package/lib-commonjs/DonutChart.js +1 -1
- package/lib-commonjs/DonutChart.js.map +1 -1
- package/lib-commonjs/GroupedVerticalBarChart.js +1 -1
- package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/HeatMapChart.js +1 -1
- package/lib-commonjs/HeatMapChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChart.js +1 -1
- package/lib-commonjs/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChartWithAxis.js +1 -1
- package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/Legends.js +1 -1
- package/lib-commonjs/Legends.js.map +1 -1
- package/lib-commonjs/LineChart.js +1 -1
- package/lib-commonjs/LineChart.js.map +1 -1
- package/lib-commonjs/PieChart.js +1 -1
- package/lib-commonjs/PieChart.js.map +1 -1
- package/lib-commonjs/SankeyChart.js +1 -1
- package/lib-commonjs/SankeyChart.js.map +1 -1
- package/lib-commonjs/Sparkline.js +1 -1
- package/lib-commonjs/Sparkline.js.map +1 -1
- package/lib-commonjs/StackedBarChart.js +1 -1
- package/lib-commonjs/StackedBarChart.js.map +1 -1
- package/lib-commonjs/TreeChart.js +1 -1
- package/lib-commonjs/TreeChart.js.map +1 -1
- package/lib-commonjs/VerticalBarChart.js +1 -1
- package/lib-commonjs/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/VerticalStackedBarChart.js +1 -1
- package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +42 -42
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-commonjs/components/AreaChart/index.js +2 -2
- package/lib-commonjs/components/AreaChart/index.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +41 -41
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +6 -6
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/index.js +2 -2
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +6 -6
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/index.js +2 -2
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +10 -10
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -4
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/index.js +2 -2
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/index.js +3 -3
- package/lib-commonjs/components/DonutChart/index.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js +2 -2
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +25 -25
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/index.js +2 -2
- package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/index.js +3 -3
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +2 -2
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.base.js +16 -16
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.js +1 -1
- package/lib-commonjs/components/Legends/Legends.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.styles.js +8 -8
- package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
- package/lib-commonjs/components/Legends/index.js +3 -3
- package/lib-commonjs/components/Legends/index.js.map +1 -1
- package/lib-commonjs/components/Legends/shape.js +11 -11
- package/lib-commonjs/components/Legends/shape.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +78 -78
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.styles.js +1 -1
- package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +3 -3
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib-commonjs/components/LineChart/index.js +3 -3
- package/lib-commonjs/components/LineChart/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js +5 -5
- package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/index.js +2 -2
- package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.js +3 -3
- package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/index.js +2 -2
- package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.base.js +2 -2
- package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.styles.js +1 -1
- package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/index.js +2 -2
- package/lib-commonjs/components/PieChart/index.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +27 -27
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/index.js +2 -2
- package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.base.js +9 -9
- package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-commonjs/components/Sparkline/index.js +2 -2
- package/lib-commonjs/components/Sparkline/index.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +11 -11
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +3 -3
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/index.js +5 -5
- package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.base.js +20 -20
- package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js +4 -4
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-commonjs/components/TreeChart/index.js +2 -2
- package/lib-commonjs/components/TreeChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +33 -33
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/index.js +2 -2
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +36 -36
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/index.js +2 -2
- package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib-commonjs/index.js +19 -19
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/index.js +2 -2
- package/lib-commonjs/types/index.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/index.js +3 -3
- package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib-commonjs/utilities/FocusableTooltipText.js +3 -3
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/index.js +3 -3
- package/lib-commonjs/utilities/index.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js +77 -77
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +7 -7
|
@@ -12,14 +12,14 @@ var index_2 = require("../../index");
|
|
|
12
12
|
var Callout_1 = require("@fluentui/react/lib/Callout");
|
|
13
13
|
var EventAnnotation_1 = require("./eventAnnotation/EventAnnotation");
|
|
14
14
|
var index_3 = require("../../utilities/index");
|
|
15
|
-
var getClassNames = Utilities_1.classNamesFunction();
|
|
15
|
+
var getClassNames = (0, Utilities_1.classNamesFunction)();
|
|
16
16
|
var PointSize;
|
|
17
17
|
(function (PointSize) {
|
|
18
18
|
PointSize[PointSize["hoverSize"] = 11] = "hoverSize";
|
|
19
19
|
PointSize[PointSize["invisibleSize"] = 1] = "invisibleSize";
|
|
20
20
|
})(PointSize || (PointSize = {}));
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
|
-
var bisect = d3_array_1.bisector(function (d) { return d.x; }).left;
|
|
22
|
+
var bisect = (0, d3_array_1.bisector)(function (d) { return d.x; }).left;
|
|
23
23
|
var DEFAULT_LINE_STROKE_SIZE = 4;
|
|
24
24
|
// The given shape of a icon must be 2.5 times bigger than line width (known as stroke width)
|
|
25
25
|
var PATH_MULTIPLY_SIZE = 2.5;
|
|
@@ -33,26 +33,26 @@ var PATH_MULTIPLY_SIZE = 2.5;
|
|
|
33
33
|
var _getPointPath = function (x, y, w, index) {
|
|
34
34
|
var allPointPaths = [
|
|
35
35
|
// circle path
|
|
36
|
-
"M"
|
|
36
|
+
"M".concat(x - w / 2, " ").concat(y, "\n A").concat(w / 2, " ").concat(w / 2, " 0 1 0 ").concat(x + w / 2, " ").concat(y, "\n M").concat(x - w / 2, " ").concat(y, "\n A ").concat(w / 2, " ").concat(w / 2, " 0 1 1 ").concat(x + w / 2, " ").concat(y, "\n "),
|
|
37
37
|
//square
|
|
38
|
-
"M"
|
|
38
|
+
"M".concat(x - w / 2, " ").concat(y - w / 2, "\n L").concat(x + w / 2, " ").concat(y - w / 2, "\n L").concat(x + w / 2, " ").concat(y + w / 2, "\n L").concat(x - w / 2, " ").concat(y + w / 2, "\n Z"),
|
|
39
39
|
//triangle
|
|
40
|
-
"M"
|
|
40
|
+
"M".concat(x - w / 2, " ").concat(y - 0.2886 * w, "\n H ").concat(x + w / 2, "\n L").concat(x, " ").concat(y + 0.5774 * w, " Z"),
|
|
41
41
|
//diamond
|
|
42
|
-
"M"
|
|
42
|
+
"M".concat(x, " ").concat(y - w / 2, "\n L").concat(x + w / 2, " ").concat(y, "\n L").concat(x, " ").concat(y + w / 2, "\n L").concat(x - w / 2, " ").concat(y, "\n Z"),
|
|
43
43
|
//pyramid
|
|
44
|
-
"M"
|
|
44
|
+
"M".concat(x, " ").concat(y - 0.5774 * w, "\n L").concat(x + w / 2, " ").concat(y + 0.2886 * w, "\n L").concat(x - w / 2, " ").concat(y + 0.2886 * w, " Z"),
|
|
45
45
|
//hexagon
|
|
46
|
-
"M"
|
|
46
|
+
"M".concat(x - 0.5 * w, " ").concat(y - 0.866 * w, "\n L").concat(x + 0.5 * w, " ").concat(y - 0.866 * w, "\n L").concat(x + w, " ").concat(y, "\n L").concat(x + 0.5 * w, " ").concat(y + 0.866 * w, "\n L").concat(x - 0.5 * w, " ").concat(y + 0.866 * w, "\n L").concat(x - w, " ").concat(y, "\n Z"),
|
|
47
47
|
//pentagon
|
|
48
|
-
"M"
|
|
48
|
+
"M".concat(x, " ").concat(y - 0.851 * w, "\n L").concat(x + 0.6884 * w, " ").concat(y - 0.2633 * w, "\n L").concat(x + 0.5001 * w, " ").concat(y + 0.6884 * w, "\n L").concat(x - 0.5001 * w, " ").concat(y + 0.6884 * w, "\n L").concat(x - 0.6884 * w, " ").concat(y - 0.2633 * w, "\n Z"),
|
|
49
49
|
//octagon
|
|
50
|
-
"M"
|
|
50
|
+
"M".concat(x - 0.5001 * w, " ").concat(y - 1.207 * w, "\n L").concat(x + 0.5001 * w, " ").concat(y - 1.207 * w, "\n L").concat(x + 1.207 * w, " ").concat(y - 0.5001 * w, "\n L").concat(x + 1.207 * w, " ").concat(y + 0.5001 * w, "\n L").concat(x + 0.5001 * w, " ").concat(y + 1.207 * w, "\n L").concat(x - 0.5001 * w, " ").concat(y + 1.207 * w, "\n L").concat(x - 1.207 * w, " ").concat(y + 0.5001 * w, "\n L").concat(x - 1.207 * w, " ").concat(y - 0.5001 * w, "\n Z"),
|
|
51
51
|
];
|
|
52
52
|
return allPointPaths[index];
|
|
53
53
|
};
|
|
54
54
|
var LineChartBase = /** @class */ (function (_super) {
|
|
55
|
-
tslib_1.__extends(LineChartBase, _super);
|
|
55
|
+
(0, tslib_1.__extends)(LineChartBase, _super);
|
|
56
56
|
function LineChartBase(props) {
|
|
57
57
|
var _this_1 = _super.call(this, props) || this;
|
|
58
58
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -68,12 +68,12 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
68
68
|
var color;
|
|
69
69
|
// isInverted property is applicable to v8 themes only
|
|
70
70
|
if (typeof item.color === 'undefined') {
|
|
71
|
-
color = index_3.getNextColor(index, 0, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
71
|
+
color = (0, index_3.getNextColor)(index, 0, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
|
-
color = index_3.getColorFromToken(item.color, (_b = _this_1.props.theme) === null || _b === void 0 ? void 0 : _b.isInverted);
|
|
74
|
+
color = (0, index_3.getColorFromToken)(item.color, (_b = _this_1.props.theme) === null || _b === void 0 ? void 0 : _b.isInverted);
|
|
75
75
|
}
|
|
76
|
-
return tslib_1.__assign(tslib_1.__assign({}, item), { index: allowMultipleShapesForPoints ? index : -1, color: color });
|
|
76
|
+
return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, item), { index: allowMultipleShapesForPoints ? index : -1, color: color });
|
|
77
77
|
})
|
|
78
78
|
: [];
|
|
79
79
|
};
|
|
@@ -185,13 +185,13 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
185
185
|
else {
|
|
186
186
|
_this_1._colorFillBars = _this_1.props.colorFillBars;
|
|
187
187
|
}
|
|
188
|
-
var yMinMaxValues = index_3.getMinMaxOfYAxis(_this_1._points, index_3.ChartTypes.LineChart);
|
|
188
|
+
var yMinMaxValues = (0, index_3.getMinMaxOfYAxis)(_this_1._points, index_3.ChartTypes.LineChart);
|
|
189
189
|
var FILL_Y_PADDING = 3;
|
|
190
190
|
for (var i = 0; i < _this_1._colorFillBars.length; i++) {
|
|
191
191
|
var colorFillBar = _this_1._colorFillBars[i];
|
|
192
|
-
var colorFillBarId = Utilities_1.getId(colorFillBar.legend.replace(/\W/g, ''));
|
|
192
|
+
var colorFillBarId = (0, Utilities_1.getId)(colorFillBar.legend.replace(/\W/g, ''));
|
|
193
193
|
// isInverted property is applicable to v8 themes only
|
|
194
|
-
var color = index_3.getColorFromToken(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
194
|
+
var color = (0, index_3.getColorFromToken)(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
195
195
|
if (colorFillBar.applyPattern) {
|
|
196
196
|
// Using a pattern element because CSS was unable to render diagonal stripes for rect elements
|
|
197
197
|
colorFillBars.push(_this_1._getStripePattern(color, i));
|
|
@@ -202,7 +202,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
202
202
|
var opacity = _this_1._legendHighlighted(colorFillBar.legend) || _this_1._noLegendHighlighted() || _this_1.state.isSelectedLegend
|
|
203
203
|
? _this_1._getColorFillBarOpacity(colorFillBar)
|
|
204
204
|
: 0.1;
|
|
205
|
-
colorFillBars.push(React.createElement("rect", { fill: colorFillBar.applyPattern ? "url(#"
|
|
205
|
+
colorFillBars.push(React.createElement("rect", { fill: colorFillBar.applyPattern ? "url(#".concat(_this_1._colorFillBarPatternId, "_").concat(i, ")") : color, fillOpacity: opacity, x: _this_1._xAxisScale(startX), y: _this_1._yAxisScale(yMinMaxValues.endValue) - FILL_Y_PADDING, width: Math.abs(_this_1._xAxisScale(endX) - _this_1._xAxisScale(startX)), height: _this_1._yAxisScale(_this_1.props.yMinValue || 0) - _this_1._yAxisScale(yMinMaxValues.endValue) + FILL_Y_PADDING, key: "".concat(colorFillBarId).concat(j) }));
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
return colorFillBars;
|
|
@@ -211,7 +211,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
211
211
|
// This describes a tile pattern that resembles diagonal stripes
|
|
212
212
|
// For more information: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d
|
|
213
213
|
var stripePath = 'M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8';
|
|
214
|
-
return (React.createElement("pattern", { id: _this_1._colorFillBarPatternId
|
|
214
|
+
return (React.createElement("pattern", { id: "".concat(_this_1._colorFillBarPatternId, "_").concat(id), width: 16, height: 16, key: "".concat(_this_1._colorFillBarPatternId, "_").concat(id), patternUnits: 'userSpaceOnUse' },
|
|
215
215
|
React.createElement("path", { d: stripePath, stroke: color, strokeWidth: 1.25 })));
|
|
216
216
|
};
|
|
217
217
|
_this_1._checkInGap = function (pointIndex, gaps, currentGapIndex) {
|
|
@@ -230,7 +230,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
230
230
|
var data = _this_1.props.data;
|
|
231
231
|
var lineChartData = data.lineChartData;
|
|
232
232
|
// This will get the value of the X when mouse is on the chart
|
|
233
|
-
var xOffset = _this_1._xAxisScale.invert(d3_selection_1.clientPoint(document.getElementById(_this_1._rectId), mouseEvent)[0]);
|
|
233
|
+
var xOffset = _this_1._xAxisScale.invert((0, d3_selection_1.clientPoint)(document.getElementById(_this_1._rectId), mouseEvent)[0]);
|
|
234
234
|
var i = bisect(lineChartData[linenumber].data, xOffset);
|
|
235
235
|
var d0 = lineChartData[linenumber].data[i - 1];
|
|
236
236
|
var d1 = lineChartData[linenumber].data[i];
|
|
@@ -246,7 +246,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
246
246
|
index = i - 1;
|
|
247
247
|
}
|
|
248
248
|
else {
|
|
249
|
-
axisType = index_3.getTypeOfAxis(lineChartData[linenumber].data[0].x, true);
|
|
249
|
+
axisType = (0, index_3.getTypeOfAxis)(lineChartData[linenumber].data[0].x, true);
|
|
250
250
|
var x0 = void 0;
|
|
251
251
|
var point0 = void 0;
|
|
252
252
|
var point1 = void 0;
|
|
@@ -273,7 +273,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
273
273
|
var formattedDate = xPointToHighlight instanceof Date ? xPointToHighlight.toLocaleString() : xPointToHighlight;
|
|
274
274
|
var modifiedXVal = xPointToHighlight instanceof Date ? xPointToHighlight.getTime() : xPointToHighlight;
|
|
275
275
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
276
|
-
var found = Utilities_1.find(_this_1._calloutPoints, function (element) {
|
|
276
|
+
var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) {
|
|
277
277
|
return element.x === modifiedXVal;
|
|
278
278
|
});
|
|
279
279
|
var pointToHighlight = lineChartData[linenumber].data[index];
|
|
@@ -284,19 +284,19 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
284
284
|
_this_1.state.nearestCircleToHighlight.y !== pointToHighlight.y));
|
|
285
285
|
// if no points need to be called out then don't show vertical line and callout card
|
|
286
286
|
if (found && pointToHighlightUpdated) {
|
|
287
|
-
_this_1._uniqueCallOutID = "#"
|
|
288
|
-
d3_selection_1.select("#"
|
|
289
|
-
.attr('cx', ""
|
|
290
|
-
.attr('cy', ""
|
|
287
|
+
_this_1._uniqueCallOutID = "#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber);
|
|
288
|
+
(0, d3_selection_1.select)("#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber))
|
|
289
|
+
.attr('cx', "".concat(_this_1._xAxisScale(pointToHighlight.x)))
|
|
290
|
+
.attr('cy', "".concat(_this_1._yAxisScale(pointToHighlight.y)))
|
|
291
291
|
.attr('visibility', 'visibility');
|
|
292
|
-
d3_selection_1.select("#"
|
|
293
|
-
.attr('transform', function () { return "translate("
|
|
292
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
|
|
293
|
+
.attr('transform', function () { return "translate(".concat(_this_1._xAxisScale(pointToHighlight.x), ", ").concat(_this_1._yAxisScale(pointToHighlight.y), ")"); })
|
|
294
294
|
.attr('visibility', 'visibility')
|
|
295
|
-
.attr('y2', ""
|
|
295
|
+
.attr('y2', "".concat(lineHeight - _this_1._yAxisScale(pointToHighlight.y)));
|
|
296
296
|
_this_1.setState({
|
|
297
297
|
nearestCircleToHighlight: pointToHighlight,
|
|
298
298
|
isCalloutVisible: true,
|
|
299
|
-
refSelected: "#"
|
|
299
|
+
refSelected: "#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber),
|
|
300
300
|
stackCalloutProps: found,
|
|
301
301
|
YValueHover: found.values,
|
|
302
302
|
dataPointCalloutProps: found,
|
|
@@ -319,12 +319,12 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
319
319
|
_this_1._uniqueCallOutID = circleId;
|
|
320
320
|
var formattedData = x instanceof Date ? x.toLocaleDateString() : x;
|
|
321
321
|
var xVal = x instanceof Date ? x.getTime() : x;
|
|
322
|
-
var found = Utilities_1.find(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
322
|
+
var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
323
323
|
// if no points need to be called out then don't show vertical line and callout card
|
|
324
324
|
if (found) {
|
|
325
325
|
var _this_2 = _this_1;
|
|
326
|
-
d3_selection_1.select("#"
|
|
327
|
-
.attr('transform', function () { return "translate("
|
|
326
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
|
|
327
|
+
.attr('transform', function () { return "translate(".concat(_this_2._xAxisScale(x), ", 0)"); })
|
|
328
328
|
.attr('visibility', 'visibility');
|
|
329
329
|
_this_1._refArray.forEach(function (obj) {
|
|
330
330
|
if (obj.index === lineId) {
|
|
@@ -352,18 +352,18 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
352
352
|
var formattedData = x instanceof Date ? x.toLocaleDateString() : x;
|
|
353
353
|
var xVal = x instanceof Date ? x.getTime() : x;
|
|
354
354
|
var _this = _this_1;
|
|
355
|
-
var found = Utilities_1.find(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
355
|
+
var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
356
356
|
// if no points need to be called out then don't show vertical line and callout card
|
|
357
357
|
if (found) {
|
|
358
|
-
d3_selection_1.select("#"
|
|
359
|
-
.attr('transform', function () { return "translate("
|
|
358
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
|
|
359
|
+
.attr('transform', function () { return "translate(".concat(_this._xAxisScale(x), ", ").concat(_this._yAxisScale(y), ")"); })
|
|
360
360
|
.attr('visibility', 'visibility')
|
|
361
|
-
.attr('y2', ""
|
|
361
|
+
.attr('y2', "".concat(lineHeight - _this._yAxisScale(y)));
|
|
362
362
|
if (_this_1._uniqueCallOutID !== circleId) {
|
|
363
363
|
_this_1._uniqueCallOutID = circleId;
|
|
364
364
|
_this_1.setState({
|
|
365
365
|
isCalloutVisible: true,
|
|
366
|
-
refSelected: "#"
|
|
366
|
+
refSelected: "#".concat(circleId),
|
|
367
367
|
hoverXValue: xAxisCalloutData ? xAxisCalloutData : '' + formattedData,
|
|
368
368
|
YValueHover: found.values,
|
|
369
369
|
stackCalloutProps: found,
|
|
@@ -396,7 +396,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
396
396
|
return {};
|
|
397
397
|
};
|
|
398
398
|
_this_1._handleMouseOut = function () {
|
|
399
|
-
d3_selection_1.select("#"
|
|
399
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine)).attr('visibility', 'hidden');
|
|
400
400
|
};
|
|
401
401
|
_this_1._handleChartMouseLeave = function () {
|
|
402
402
|
_this_1._uniqueCallOutID = null;
|
|
@@ -422,7 +422,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
422
422
|
}, -1);
|
|
423
423
|
var selectedLines;
|
|
424
424
|
if (selectedLineIndex === -1) {
|
|
425
|
-
selectedLines = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedLegendPoints), [selectedLine]);
|
|
425
|
+
selectedLines = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], _this_1.state.selectedLegendPoints, true), [selectedLine], false);
|
|
426
426
|
}
|
|
427
427
|
else {
|
|
428
428
|
selectedLines = _this_1.state.selectedLegendPoints
|
|
@@ -462,7 +462,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
462
462
|
}, -1);
|
|
463
463
|
var selectedColorFillBars;
|
|
464
464
|
if (selectedColorFillBarIndex === -1) {
|
|
465
|
-
selectedColorFillBars = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedColorBarLegend), [selectedColorFillBar]);
|
|
465
|
+
selectedColorFillBars = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], _this_1.state.selectedColorBarLegend, true), [selectedColorFillBar], false);
|
|
466
466
|
}
|
|
467
467
|
else {
|
|
468
468
|
selectedColorFillBars = _this_1.state.selectedColorBarLegend
|
|
@@ -524,7 +524,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
524
524
|
var xValue = point.xAxisCalloutData || formattedDate;
|
|
525
525
|
var legend = line.legend;
|
|
526
526
|
var yValue = point.yAxisCalloutData || point.y;
|
|
527
|
-
return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || xValue
|
|
527
|
+
return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || "".concat(xValue, ". ").concat(legend, ", ").concat(yValue, ".");
|
|
528
528
|
};
|
|
529
529
|
_this_1.state = {
|
|
530
530
|
hoverXValue: '',
|
|
@@ -543,15 +543,15 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
543
543
|
_this_1._refArray = [];
|
|
544
544
|
_this_1._points = _this_1._injectIndexPropertyInLineChartData(_this_1.props.data.lineChartData);
|
|
545
545
|
_this_1._colorFillBars = [];
|
|
546
|
-
_this_1._calloutPoints = index_3.calloutData(_this_1._points) || [];
|
|
547
|
-
_this_1._circleId = Utilities_1.getId('circle');
|
|
548
|
-
_this_1._lineId = Utilities_1.getId('lineID');
|
|
549
|
-
_this_1._borderId = Utilities_1.getId('borderID');
|
|
550
|
-
_this_1._verticalLine = Utilities_1.getId('verticalLine');
|
|
551
|
-
_this_1._colorFillBarPatternId = Utilities_1.getId('colorFillBarPattern');
|
|
552
|
-
_this_1._tooltipId = Utilities_1.getId('LineChartTooltipId_');
|
|
553
|
-
_this_1._rectId = Utilities_1.getId('containerRectLD');
|
|
554
|
-
_this_1._staticHighlightCircle = Utilities_1.getId('staticHighlightCircle');
|
|
546
|
+
_this_1._calloutPoints = (0, index_3.calloutData)(_this_1._points) || [];
|
|
547
|
+
_this_1._circleId = (0, Utilities_1.getId)('circle');
|
|
548
|
+
_this_1._lineId = (0, Utilities_1.getId)('lineID');
|
|
549
|
+
_this_1._borderId = (0, Utilities_1.getId)('borderID');
|
|
550
|
+
_this_1._verticalLine = (0, Utilities_1.getId)('verticalLine');
|
|
551
|
+
_this_1._colorFillBarPatternId = (0, Utilities_1.getId)('colorFillBarPattern');
|
|
552
|
+
_this_1._tooltipId = (0, Utilities_1.getId)('LineChartTooltipId_');
|
|
553
|
+
_this_1._rectId = (0, Utilities_1.getId)('containerRectLD');
|
|
554
|
+
_this_1._staticHighlightCircle = (0, Utilities_1.getId)('staticHighlightCircle');
|
|
555
555
|
props.eventAnnotationProps &&
|
|
556
556
|
props.eventAnnotationProps.labelHeight &&
|
|
557
557
|
(_this_1.eventLabelHeight = props.eventAnnotationProps.labelHeight);
|
|
@@ -565,28 +565,28 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
565
565
|
prevProps.width !== this.props.width ||
|
|
566
566
|
prevProps.data !== this.props.data) {
|
|
567
567
|
this._points = this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);
|
|
568
|
-
this._calloutPoints = index_3.calloutData(this._points) || [];
|
|
568
|
+
this._calloutPoints = (0, index_3.calloutData)(this._points) || [];
|
|
569
569
|
}
|
|
570
570
|
};
|
|
571
571
|
LineChartBase.prototype.render = function () {
|
|
572
572
|
var _this_1 = this;
|
|
573
573
|
var _a = this.props, tickValues = _a.tickValues, tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
|
|
574
574
|
this._points = this._injectIndexPropertyInLineChartData(data.lineChartData);
|
|
575
|
-
var isXAxisDateType = index_3.getXAxisType(this._points);
|
|
575
|
+
var isXAxisDateType = (0, index_3.getXAxisType)(this._points);
|
|
576
576
|
var points = this._points;
|
|
577
577
|
if (legendProps && !!legendProps.canSelectMultipleLegends) {
|
|
578
578
|
points = this.state.selectedLegendPoints.length >= 1 ? this.state.selectedLegendPoints : this._points;
|
|
579
|
-
this._calloutPoints = index_3.calloutData(points);
|
|
579
|
+
this._calloutPoints = (0, index_3.calloutData)(points);
|
|
580
580
|
}
|
|
581
581
|
var legendBars = this._createLegends(this._points);
|
|
582
|
-
var calloutProps = tslib_1.__assign({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, id: "toolTip"
|
|
582
|
+
var calloutProps = (0, tslib_1.__assign)({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, id: "toolTip".concat(this._uniqueCallOutID), target: this.state.refSelected, isBeakVisible: false, gapSpace: 15, onDismiss: this._closeCallout, preventDismissOnEvent: function () { return true; }, hidden: !(!this.props.hideTooltip && this.state.isCalloutVisible), descriptionMessage: this.props.getCalloutDescriptionMessage && this.state.stackCalloutProps
|
|
583
583
|
? this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps)
|
|
584
584
|
: undefined, 'data-is-focusable': true, xAxisCalloutAccessibilityData: this.state.xAxisCalloutAccessibilityData }, this.props.calloutProps);
|
|
585
585
|
var tickParams = {
|
|
586
586
|
tickValues: tickValues,
|
|
587
587
|
tickFormat: tickFormat,
|
|
588
588
|
};
|
|
589
|
-
return (React.createElement(index_2.CartesianChart, tslib_1.__assign({}, this.props, { chartTitle: data.chartTitle, points: points, chartType: index_3.ChartTypes.LineChart, isCalloutForStack: true, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, getmargins: this._getMargins, getGraphData: this._initializeLineChartData, xAxisType: isXAxisDateType ? index_3.XAxisTypes.DateAxis : index_3.XAxisTypes.NumericAxis, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave,
|
|
589
|
+
return (React.createElement(index_2.CartesianChart, (0, tslib_1.__assign)({}, this.props, { chartTitle: data.chartTitle, points: points, chartType: index_3.ChartTypes.LineChart, isCalloutForStack: true, calloutProps: calloutProps, tickParams: tickParams, legendBars: legendBars, getmargins: this._getMargins, getGraphData: this._initializeLineChartData, xAxisType: isXAxisDateType ? index_3.XAxisTypes.DateAxis : index_3.XAxisTypes.NumericAxis, customizedCallout: this._getCustomizedCallout(), onChartMouseLeave: this._handleChartMouseLeave,
|
|
590
590
|
/* eslint-disable react/jsx-no-bind */
|
|
591
591
|
// eslint-disable-next-line react/no-children-prop
|
|
592
592
|
children: function (props) {
|
|
@@ -599,7 +599,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
599
599
|
React.createElement("g", null,
|
|
600
600
|
_this_1._renderedColorFillBars,
|
|
601
601
|
_this_1.lines),
|
|
602
|
-
eventAnnotationProps && (React.createElement(EventAnnotation_1.EventsAnnotation, tslib_1.__assign({}, eventAnnotationProps, { scale: props.xScale, chartYTop: _this_1.margins.top + _this_1.eventLabelHeight, chartYBottom: props.containerHeight - 35 }))))));
|
|
602
|
+
eventAnnotationProps && (React.createElement(EventAnnotation_1.EventsAnnotation, (0, tslib_1.__assign)({}, eventAnnotationProps, { scale: props.xScale, chartYTop: _this_1.margins.top + _this_1.eventLabelHeight, chartYBottom: props.containerHeight - 35 }))))));
|
|
603
603
|
} })));
|
|
604
604
|
};
|
|
605
605
|
LineChartBase.prototype._createLegends = function (data) {
|
|
@@ -609,7 +609,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
609
609
|
var legendDataItems = data.map(function (point) {
|
|
610
610
|
var color = point.color;
|
|
611
611
|
// mapping data to the format Legends component needs
|
|
612
|
-
var legend = tslib_1.__assign(tslib_1.__assign({ title: point.legend, color: color, action: function () {
|
|
612
|
+
var legend = (0, tslib_1.__assign)((0, tslib_1.__assign)({ title: point.legend, color: color, action: function () {
|
|
613
613
|
if (isLegendMultiSelectEnabled) {
|
|
614
614
|
_this_1._handleMultipleLineLegendSelectionAction(point);
|
|
615
615
|
}
|
|
@@ -633,7 +633,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
633
633
|
var _a;
|
|
634
634
|
var title = colorFillBar.legend;
|
|
635
635
|
// isInverted property is applicable to v8 themes only
|
|
636
|
-
var color = index_3.getColorFromToken(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
636
|
+
var color = (0, index_3.getColorFromToken)(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
637
637
|
var legend = {
|
|
638
638
|
title: title,
|
|
639
639
|
color: color,
|
|
@@ -658,7 +658,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
658
658
|
return legend;
|
|
659
659
|
})
|
|
660
660
|
: [];
|
|
661
|
-
var legends = (React.createElement(index_1.Legends, tslib_1.__assign({ legends: tslib_1.__spreadArray(tslib_1.__spreadArray([], legendDataItems), colorFillBarsLegendDataItems), enabledWrapLines: this.props.enabledLegendsWrapLines, overflowProps: this.props.legendsOverflowProps, focusZonePropsInHoverCard: this.props.focusZonePropsForLegendsInHoverCard, overflowText: this.props.legendsOverflowText }, (isLegendMultiSelectEnabled && { onLegendHoverCardLeave: this._onHoverCardHide }), this.props.legendProps)));
|
|
661
|
+
var legends = (React.createElement(index_1.Legends, (0, tslib_1.__assign)({ legends: (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], legendDataItems, true), colorFillBarsLegendDataItems, true), enabledWrapLines: this.props.enabledLegendsWrapLines, overflowProps: this.props.legendsOverflowProps, focusZonePropsInHoverCard: this.props.focusZonePropsForLegendsInHoverCard, overflowText: this.props.legendsOverflowText }, (isLegendMultiSelectEnabled && { onLegendHoverCardLeave: this._onHoverCardHide }), this.props.legendProps)));
|
|
662
662
|
return legends;
|
|
663
663
|
};
|
|
664
664
|
LineChartBase.prototype._createLines = function (xElement, containerHeight) {
|
|
@@ -682,8 +682,8 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
682
682
|
var verticaLineHeight = containerHeight - this_1.margins.bottom + 6;
|
|
683
683
|
if (this_1._points[i].data.length === 1) {
|
|
684
684
|
var _0 = this_1._points[i].data[0], x1_1 = _0.x, y1 = _0.y, xAxisCalloutData_1 = _0.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _0.xAxisCalloutAccessibilityData;
|
|
685
|
-
var circleId_1 = this_1._circleId
|
|
686
|
-
pointsForLine.push(React.createElement("circle", tslib_1.__assign({ id: circleId_1, key: circleId_1, r: activePoint === circleId_1 ? 5.5 : 3.5, cx: this_1._xAxisScale(x1_1), cy: this_1._yAxisScale(y1), fill: activePoint === circleId_1 ? theme.palette.white : lineColor, onMouseOver: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, strokeWidth: activePoint === circleId_1 ? DEFAULT_LINE_STROKE_SIZE : 0, stroke: activePoint === circleId_1 ? lineColor : '', role: "img", "aria-label": this_1._getAriaLabel(i, 0), "data-is-focusable": true, ref: function (e) {
|
|
685
|
+
var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
|
|
686
|
+
pointsForLine.push(React.createElement("circle", (0, tslib_1.__assign)({ id: circleId_1, key: circleId_1, r: activePoint === circleId_1 ? 5.5 : 3.5, cx: this_1._xAxisScale(x1_1), cy: this_1._yAxisScale(y1), fill: activePoint === circleId_1 ? theme.palette.white : lineColor, onMouseOver: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x1_1, y1, verticaLineHeight, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, strokeWidth: activePoint === circleId_1 ? DEFAULT_LINE_STROKE_SIZE : 0, stroke: activePoint === circleId_1 ? lineColor : '', role: "img", "aria-label": this_1._getAriaLabel(i, 0), "data-is-focusable": true, ref: function (e) {
|
|
687
687
|
_this_1._refCallback(e, circleId_1);
|
|
688
688
|
}, onFocus: function () { return _this_1._handleFocus(circleId_1, x1_1, xAxisCalloutData_1, circleId_1, xAxisCalloutAccessibilityData_1); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[0].onDataPointClick))));
|
|
689
689
|
}
|
|
@@ -691,14 +691,14 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
691
691
|
var gaps = (_b = (_a = this_1._points[i].gaps) === null || _a === void 0 ? void 0 : _a.sort(function (a, b) { return a.startIndex - b.startIndex; })) !== null && _b !== void 0 ? _b : [];
|
|
692
692
|
// Use path rendering technique for larger datasets to optimize performance.
|
|
693
693
|
if (this_1.props.optimizeLargeData && this_1._points[i].data.length > 1) {
|
|
694
|
-
var line = d3_shape_1.line()
|
|
694
|
+
var line = (0, d3_shape_1.line)()
|
|
695
695
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
696
696
|
.x(function (d) { return _this_1._xAxisScale(d[0]); })
|
|
697
697
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
698
698
|
.y(function (d) { return _this_1._yAxisScale(d[1]); })
|
|
699
699
|
.curve(d3_shape_1.curveLinear);
|
|
700
|
-
var lineId = this_1._lineId
|
|
701
|
-
var borderId = this_1._borderId
|
|
700
|
+
var lineId = "".concat(this_1._lineId, "_").concat(i);
|
|
701
|
+
var borderId = "".concat(this_1._borderId, "_").concat(i);
|
|
702
702
|
var strokeWidth = ((_c = this_1._points[i].lineOptions) === null || _c === void 0 ? void 0 : _c.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
|
|
703
703
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
704
704
|
var lineData = [];
|
|
@@ -717,36 +717,36 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
717
717
|
if (lineBorderWidth > 0) {
|
|
718
718
|
bordersForLine.push(React.createElement("path", { id: borderId, key: borderId, d: line(lineData), fill: "transparent", strokeLinecap: (_f = (_e = this_1._points[i].lineOptions) === null || _e === void 0 ? void 0 : _e.strokeLinecap) !== null && _f !== void 0 ? _f : 'round', strokeWidth: Number.parseFloat(strokeWidth.toString()) + lineBorderWidth, stroke: ((_g = this_1._points[i].lineOptions) === null || _g === void 0 ? void 0 : _g.lineBorderColor) || theme.palette.white, opacity: 1 }));
|
|
719
719
|
}
|
|
720
|
-
linesForLine.push(React.createElement("path", tslib_1.__assign({ id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": true, stroke: lineColor, strokeWidth: strokeWidth, strokeLinecap: (_j = (_h = this_1._points[i].lineOptions) === null || _h === void 0 ? void 0 : _h.strokeLinecap) !== null && _j !== void 0 ? _j : 'round', onMouseMove: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOver: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOut: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].onLineClick), { opacity: 1, role: "img", "aria-label": legendVal
|
|
720
|
+
linesForLine.push(React.createElement("path", (0, tslib_1.__assign)({ id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": true, stroke: lineColor, strokeWidth: strokeWidth, strokeLinecap: (_j = (_h = this_1._points[i].lineOptions) === null || _h === void 0 ? void 0 : _h.strokeLinecap) !== null && _j !== void 0 ? _j : 'round', onMouseMove: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOver: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOut: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].onLineClick), { opacity: 1, role: "img", "aria-label": "".concat(legendVal, ", series ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") })));
|
|
721
721
|
}
|
|
722
722
|
else {
|
|
723
|
-
linesForLine.push(React.createElement("path", { id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": true, stroke: lineColor, strokeWidth: strokeWidth, strokeLinecap: (_l = (_k = this_1._points[i].lineOptions) === null || _k === void 0 ? void 0 : _k.strokeLinecap) !== null && _l !== void 0 ? _l : 'round', opacity: 0.1, role: "img", "aria-label": legendVal
|
|
723
|
+
linesForLine.push(React.createElement("path", { id: lineId, key: lineId, d: line(lineData), fill: "transparent", "data-is-focusable": true, stroke: lineColor, strokeWidth: strokeWidth, strokeLinecap: (_l = (_k = this_1._points[i].lineOptions) === null || _k === void 0 ? void 0 : _k.strokeLinecap) !== null && _l !== void 0 ? _l : 'round', opacity: 0.1, role: "img", "aria-label": "".concat(legendVal, ", series ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") }));
|
|
724
724
|
}
|
|
725
725
|
var isPointHighlighted = this_1.state.activeLine !== null && this_1.state.activeLine === i;
|
|
726
|
-
pointsForLine.push(React.createElement("circle", { id: this_1._staticHighlightCircle
|
|
726
|
+
pointsForLine.push(React.createElement("circle", { id: "".concat(this_1._staticHighlightCircle, "_").concat(i), key: "".concat(this_1._staticHighlightCircle, "_").concat(i), r: 5.5, cx: 0, cy: 0, fill: theme.palette.white, strokeWidth: DEFAULT_LINE_STROKE_SIZE, stroke: lineColor, visibility: isPointHighlighted ? 'visibility' : 'hidden', onMouseMove: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOver: this_1._onMouseOverLargeDataset.bind(this_1, i, verticaLineHeight), onMouseOut: this_1._handleMouseOut }));
|
|
727
727
|
}
|
|
728
728
|
else if (!this_1.props.optimizeLargeData) {
|
|
729
729
|
var _loop_2 = function (j) {
|
|
730
730
|
var gapResult = this_1._checkInGap(j, gaps, gapIndex);
|
|
731
731
|
var isInGap = gapResult.isInGap;
|
|
732
732
|
gapIndex = gapResult.gapIndex;
|
|
733
|
-
var lineId = this_1._lineId
|
|
734
|
-
var borderId = this_1._borderId
|
|
735
|
-
var circleId = this_1._circleId
|
|
733
|
+
var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
|
|
734
|
+
var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
|
|
735
|
+
var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
|
|
736
736
|
var _1 = this_1._points[i].data[j - 1], x1 = _1.x, y1 = _1.y, xAxisCalloutData = _1.xAxisCalloutData, xAxisCalloutAccessibilityData = _1.xAxisCalloutAccessibilityData;
|
|
737
737
|
var _2 = this_1._points[i].data[j], x2 = _2.x, y2 = _2.y;
|
|
738
738
|
var path = this_1._getPath(this_1._xAxisScale(x1), this_1._yAxisScale(y1), circleId, j, false, this_1._points[i].index);
|
|
739
739
|
var strokeWidth = ((_m = this_1._points[i].lineOptions) === null || _m === void 0 ? void 0 : _m.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
|
|
740
740
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
741
741
|
var currentPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== circleId;
|
|
742
|
-
pointsForLine.push(React.createElement("path", tslib_1.__assign({ id: circleId, key: circleId, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseOut: this_1._handleMouseOut, onFocus: function () { return _this_1._handleFocus(lineId, x1, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j - 1].onDataPointClick), { opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, circleId, j, false), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": this_1._getAriaLabel(i, j - 1) })));
|
|
742
|
+
pointsForLine.push(React.createElement("path", (0, tslib_1.__assign)({ id: circleId, key: circleId, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseOut: this_1._handleMouseOut, onFocus: function () { return _this_1._handleFocus(lineId, x1, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData); }, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j - 1].onDataPointClick), { opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, circleId, j, false), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": this_1._getAriaLabel(i, j - 1) })));
|
|
743
743
|
if (j + 1 === this_1._points[i].data.length) {
|
|
744
744
|
// If this is last point of the line segment.
|
|
745
|
-
var lastCircleId_1 = ""
|
|
745
|
+
var lastCircleId_1 = "".concat(circleId).concat(j, "L");
|
|
746
746
|
var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
|
|
747
747
|
path = this_1._getPath(this_1._xAxisScale(x2), this_1._yAxisScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
|
|
748
748
|
var _3 = this_1._points[i].data[j], lastCirlceXCallout_1 = _3.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _3.xAxisCalloutAccessibilityData;
|
|
749
|
-
pointsForLine.push(React.createElement("path", tslib_1.__assign({ id: lastCircleId_1, key: lastCircleId_1, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, onFocus: function () {
|
|
749
|
+
pointsForLine.push(React.createElement("path", (0, tslib_1.__assign)({ id: lastCircleId_1, key: lastCircleId_1, d: path, "data-is-focusable": true, onMouseOver: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseMove: this_1._handleHover.bind(this_1, x2, y2, verticaLineHeight, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1), onMouseOut: this_1._handleMouseOut, onFocus: function () {
|
|
750
750
|
return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
|
|
751
751
|
}, onBlur: this_1._handleMouseOut }, this_1._getClickHandler(this_1._points[i].data[j].onDataPointClick), { opacity: isLegendSelected && !lastPointHidden ? 1 : 0.01, fill: this_1._getPointFill(lineColor, lastCircleId_1, j, true), stroke: lineColor, strokeWidth: strokeWidth, role: "img", "aria-label": this_1._getAriaLabel(i, j) })));
|
|
752
752
|
/* eslint-enable react/jsx-no-bind */
|
|
@@ -760,7 +760,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
760
760
|
if (lineBorderWidth > 0) {
|
|
761
761
|
bordersForLine.push(React.createElement("line", { id: borderId, key: borderId, x1: this_1._xAxisScale(x1), y1: this_1._yAxisScale(y1), x2: this_1._xAxisScale(x2), y2: this_1._yAxisScale(y2), strokeLinecap: (_q = (_p = this_1._points[i].lineOptions) === null || _p === void 0 ? void 0 : _p.strokeLinecap) !== null && _q !== void 0 ? _q : 'round', strokeWidth: Number.parseFloat(strokeWidth.toString()) + lineBorderWidth, stroke: ((_r = this_1._points[i].lineOptions) === null || _r === void 0 ? void 0 : _r.lineBorderColor) || theme.palette.white, opacity: 1 }));
|
|
762
762
|
}
|
|
763
|
-
linesForLine.push(React.createElement("line", tslib_1.__assign({ id: lineId, key: lineId, x1: this_1._xAxisScale(x1), y1: this_1._yAxisScale(y1), x2: this_1._xAxisScale(x2), y2: this_1._yAxisScale(y2), strokeWidth: strokeWidth, ref: function (e) {
|
|
763
|
+
linesForLine.push(React.createElement("line", (0, tslib_1.__assign)({ id: lineId, key: lineId, x1: this_1._xAxisScale(x1), y1: this_1._yAxisScale(y1), x2: this_1._xAxisScale(x2), y2: this_1._yAxisScale(y2), strokeWidth: strokeWidth, ref: function (e) {
|
|
764
764
|
_this_1._refCallback(e, lineId);
|
|
765
765
|
}, onMouseOver: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseMove: this_1._handleHover.bind(this_1, x1, y1, verticaLineHeight, xAxisCalloutData, circleId, xAxisCalloutAccessibilityData), onMouseOut: this_1._handleMouseOut, stroke: lineColor, strokeLinecap: (_t = (_s = this_1._points[i].lineOptions) === null || _s === void 0 ? void 0 : _s.strokeLinecap) !== null && _t !== void 0 ? _t : 'round', strokeDasharray: (_u = this_1._points[i].lineOptions) === null || _u === void 0 ? void 0 : _u.strokeDasharray, strokeDashoffset: (_v = this_1._points[i].lineOptions) === null || _v === void 0 ? void 0 : _v.strokeDashoffset, opacity: 1 }, this_1._getClickHandler(this_1._points[i].onLineClick))));
|
|
766
766
|
}
|
|
@@ -775,7 +775,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
775
775
|
_loop_2(j);
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
lines.push.apply(lines, tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], bordersForLine), linesForLine), pointsForLine));
|
|
778
|
+
lines.push.apply(lines, (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], bordersForLine, false), linesForLine, false), pointsForLine, false));
|
|
779
779
|
};
|
|
780
780
|
var this_1 = this;
|
|
781
781
|
for (var i = this._points.length - 1; i >= 0; i--) {
|
|
@@ -794,7 +794,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
794
794
|
}
|
|
795
795
|
// Used to display tooltip at x axis labels.
|
|
796
796
|
if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
|
|
797
|
-
var xAxisElement = d3_selection_1.select(xElement).call(this._xAxisScale);
|
|
797
|
+
var xAxisElement = (0, d3_selection_1.select)(xElement).call(this._xAxisScale);
|
|
798
798
|
try {
|
|
799
799
|
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
800
800
|
// eslint-disable-next-line no-empty
|
|
@@ -805,7 +805,7 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
805
805
|
id: this._tooltipId,
|
|
806
806
|
xAxis: xAxisElement,
|
|
807
807
|
};
|
|
808
|
-
xAxisElement && index_3.tooltipOfXAxislabels(tooltipProps);
|
|
808
|
+
xAxisElement && (0, index_3.tooltipOfXAxislabels)(tooltipProps);
|
|
809
809
|
}
|
|
810
810
|
return lines;
|
|
811
811
|
};
|