@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
|
@@ -2,14 +2,14 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.LineChartBase = void 0;
|
|
5
|
-
var getClassNames = Utilities_1.classNamesFunction();
|
|
5
|
+
var getClassNames = (0, Utilities_1.classNamesFunction)();
|
|
6
6
|
var PointSize;
|
|
7
7
|
(function (PointSize) {
|
|
8
8
|
PointSize[PointSize["hoverSize"] = 11] = "hoverSize";
|
|
9
9
|
PointSize[PointSize["invisibleSize"] = 1] = "invisibleSize";
|
|
10
10
|
})(PointSize || (PointSize = {}));
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
-
var bisect = d3_array_1.bisector(function (d) { return d.x; }).left;
|
|
12
|
+
var bisect = (0, d3_array_1.bisector)(function (d) { return d.x; }).left;
|
|
13
13
|
var DEFAULT_LINE_STROKE_SIZE = 4;
|
|
14
14
|
// The given shape of a icon must be 2.5 times bigger than line width (known as stroke width)
|
|
15
15
|
var PATH_MULTIPLY_SIZE = 2.5;
|
|
@@ -23,26 +23,26 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
23
23
|
var _getPointPath = function (x, y, w, index) {
|
|
24
24
|
var allPointPaths = [
|
|
25
25
|
// circle path
|
|
26
|
-
"M"
|
|
26
|
+
"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 "),
|
|
27
27
|
//square
|
|
28
|
-
"M"
|
|
28
|
+
"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"),
|
|
29
29
|
//triangle
|
|
30
|
-
"M"
|
|
30
|
+
"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"),
|
|
31
31
|
//diamond
|
|
32
|
-
"M"
|
|
32
|
+
"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"),
|
|
33
33
|
//pyramid
|
|
34
|
-
"M"
|
|
34
|
+
"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"),
|
|
35
35
|
//hexagon
|
|
36
|
-
"M"
|
|
36
|
+
"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"),
|
|
37
37
|
//pentagon
|
|
38
|
-
"M"
|
|
38
|
+
"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"),
|
|
39
39
|
//octagon
|
|
40
|
-
"M"
|
|
40
|
+
"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"),
|
|
41
41
|
];
|
|
42
42
|
return allPointPaths[index];
|
|
43
43
|
};
|
|
44
44
|
var LineChartBase = /** @class */ (function (_super) {
|
|
45
|
-
tslib_1.__extends(LineChartBase, _super);
|
|
45
|
+
(0, tslib_1.__extends)(LineChartBase, _super);
|
|
46
46
|
function LineChartBase(props) {
|
|
47
47
|
var _this_1 = _super.call(this, props) || this;
|
|
48
48
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -58,12 +58,12 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
58
58
|
var color;
|
|
59
59
|
// isInverted property is applicable to v8 themes only
|
|
60
60
|
if (typeof item.color === 'undefined') {
|
|
61
|
-
color = index_3.getNextColor(index, 0, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
61
|
+
color = (0, index_3.getNextColor)(index, 0, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
|
-
color = index_3.getColorFromToken(item.color, (_b = _this_1.props.theme) === null || _b === void 0 ? void 0 : _b.isInverted);
|
|
64
|
+
color = (0, index_3.getColorFromToken)(item.color, (_b = _this_1.props.theme) === null || _b === void 0 ? void 0 : _b.isInverted);
|
|
65
65
|
}
|
|
66
|
-
return tslib_1.__assign(tslib_1.__assign({}, item), { index: allowMultipleShapesForPoints ? index : -1, color: color });
|
|
66
|
+
return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, item), { index: allowMultipleShapesForPoints ? index : -1, color: color });
|
|
67
67
|
})
|
|
68
68
|
: [];
|
|
69
69
|
};
|
|
@@ -175,13 +175,13 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
175
175
|
else {
|
|
176
176
|
_this_1._colorFillBars = _this_1.props.colorFillBars;
|
|
177
177
|
}
|
|
178
|
-
var yMinMaxValues = index_3.getMinMaxOfYAxis(_this_1._points, index_3.ChartTypes.LineChart);
|
|
178
|
+
var yMinMaxValues = (0, index_3.getMinMaxOfYAxis)(_this_1._points, index_3.ChartTypes.LineChart);
|
|
179
179
|
var FILL_Y_PADDING = 3;
|
|
180
180
|
for (var i = 0; i < _this_1._colorFillBars.length; i++) {
|
|
181
181
|
var colorFillBar = _this_1._colorFillBars[i];
|
|
182
|
-
var colorFillBarId = Utilities_1.getId(colorFillBar.legend.replace(/\W/g, ''));
|
|
182
|
+
var colorFillBarId = (0, Utilities_1.getId)(colorFillBar.legend.replace(/\W/g, ''));
|
|
183
183
|
// isInverted property is applicable to v8 themes only
|
|
184
|
-
var color = index_3.getColorFromToken(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
184
|
+
var color = (0, index_3.getColorFromToken)(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
185
185
|
if (colorFillBar.applyPattern) {
|
|
186
186
|
// Using a pattern element because CSS was unable to render diagonal stripes for rect elements
|
|
187
187
|
colorFillBars.push(_this_1._getStripePattern(color, i));
|
|
@@ -192,7 +192,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
192
192
|
var opacity = _this_1._legendHighlighted(colorFillBar.legend) || _this_1._noLegendHighlighted() || _this_1.state.isSelectedLegend
|
|
193
193
|
? _this_1._getColorFillBarOpacity(colorFillBar)
|
|
194
194
|
: 0.1;
|
|
195
|
-
colorFillBars.push(React.createElement("rect", { fill: colorFillBar.applyPattern ? "url(#"
|
|
195
|
+
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) }));
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
return colorFillBars;
|
|
@@ -201,7 +201,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
201
201
|
// This describes a tile pattern that resembles diagonal stripes
|
|
202
202
|
// For more information: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d
|
|
203
203
|
var stripePath = 'M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8';
|
|
204
|
-
return (React.createElement("pattern", { id: _this_1._colorFillBarPatternId
|
|
204
|
+
return (React.createElement("pattern", { id: "".concat(_this_1._colorFillBarPatternId, "_").concat(id), width: 16, height: 16, key: "".concat(_this_1._colorFillBarPatternId, "_").concat(id), patternUnits: 'userSpaceOnUse' },
|
|
205
205
|
React.createElement("path", { d: stripePath, stroke: color, strokeWidth: 1.25 })));
|
|
206
206
|
};
|
|
207
207
|
_this_1._checkInGap = function (pointIndex, gaps, currentGapIndex) {
|
|
@@ -220,7 +220,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
220
220
|
var data = _this_1.props.data;
|
|
221
221
|
var lineChartData = data.lineChartData;
|
|
222
222
|
// This will get the value of the X when mouse is on the chart
|
|
223
|
-
var xOffset = _this_1._xAxisScale.invert(d3_selection_1.clientPoint(document.getElementById(_this_1._rectId), mouseEvent)[0]);
|
|
223
|
+
var xOffset = _this_1._xAxisScale.invert((0, d3_selection_1.clientPoint)(document.getElementById(_this_1._rectId), mouseEvent)[0]);
|
|
224
224
|
var i = bisect(lineChartData[linenumber].data, xOffset);
|
|
225
225
|
var d0 = lineChartData[linenumber].data[i - 1];
|
|
226
226
|
var d1 = lineChartData[linenumber].data[i];
|
|
@@ -236,7 +236,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
236
236
|
index = i - 1;
|
|
237
237
|
}
|
|
238
238
|
else {
|
|
239
|
-
axisType = index_3.getTypeOfAxis(lineChartData[linenumber].data[0].x, true);
|
|
239
|
+
axisType = (0, index_3.getTypeOfAxis)(lineChartData[linenumber].data[0].x, true);
|
|
240
240
|
var x0 = void 0;
|
|
241
241
|
var point0 = void 0;
|
|
242
242
|
var point1 = void 0;
|
|
@@ -263,7 +263,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
263
263
|
var formattedDate = xPointToHighlight instanceof Date ? xPointToHighlight.toLocaleString() : xPointToHighlight;
|
|
264
264
|
var modifiedXVal = xPointToHighlight instanceof Date ? xPointToHighlight.getTime() : xPointToHighlight;
|
|
265
265
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
266
|
-
var found = Utilities_1.find(_this_1._calloutPoints, function (element) {
|
|
266
|
+
var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) {
|
|
267
267
|
return element.x === modifiedXVal;
|
|
268
268
|
});
|
|
269
269
|
var pointToHighlight = lineChartData[linenumber].data[index];
|
|
@@ -274,19 +274,19 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
274
274
|
_this_1.state.nearestCircleToHighlight.y !== pointToHighlight.y));
|
|
275
275
|
// if no points need to be called out then don't show vertical line and callout card
|
|
276
276
|
if (found && pointToHighlightUpdated) {
|
|
277
|
-
_this_1._uniqueCallOutID = "#"
|
|
278
|
-
d3_selection_1.select("#"
|
|
279
|
-
.attr('cx', ""
|
|
280
|
-
.attr('cy', ""
|
|
277
|
+
_this_1._uniqueCallOutID = "#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber);
|
|
278
|
+
(0, d3_selection_1.select)("#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber))
|
|
279
|
+
.attr('cx', "".concat(_this_1._xAxisScale(pointToHighlight.x)))
|
|
280
|
+
.attr('cy', "".concat(_this_1._yAxisScale(pointToHighlight.y)))
|
|
281
281
|
.attr('visibility', 'visibility');
|
|
282
|
-
d3_selection_1.select("#"
|
|
283
|
-
.attr('transform', function () { return "translate("
|
|
282
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
|
|
283
|
+
.attr('transform', function () { return "translate(".concat(_this_1._xAxisScale(pointToHighlight.x), ", ").concat(_this_1._yAxisScale(pointToHighlight.y), ")"); })
|
|
284
284
|
.attr('visibility', 'visibility')
|
|
285
|
-
.attr('y2', ""
|
|
285
|
+
.attr('y2', "".concat(lineHeight - _this_1._yAxisScale(pointToHighlight.y)));
|
|
286
286
|
_this_1.setState({
|
|
287
287
|
nearestCircleToHighlight: pointToHighlight,
|
|
288
288
|
isCalloutVisible: true,
|
|
289
|
-
refSelected: "#"
|
|
289
|
+
refSelected: "#".concat(_this_1._staticHighlightCircle, "_").concat(linenumber),
|
|
290
290
|
stackCalloutProps: found,
|
|
291
291
|
YValueHover: found.values,
|
|
292
292
|
dataPointCalloutProps: found,
|
|
@@ -309,12 +309,12 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
309
309
|
_this_1._uniqueCallOutID = circleId;
|
|
310
310
|
var formattedData = x instanceof Date ? x.toLocaleDateString() : x;
|
|
311
311
|
var xVal = x instanceof Date ? x.getTime() : x;
|
|
312
|
-
var found = Utilities_1.find(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
312
|
+
var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
313
313
|
// if no points need to be called out then don't show vertical line and callout card
|
|
314
314
|
if (found) {
|
|
315
315
|
var _this_2 = _this_1;
|
|
316
|
-
d3_selection_1.select("#"
|
|
317
|
-
.attr('transform', function () { return "translate("
|
|
316
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
|
|
317
|
+
.attr('transform', function () { return "translate(".concat(_this_2._xAxisScale(x), ", 0)"); })
|
|
318
318
|
.attr('visibility', 'visibility');
|
|
319
319
|
_this_1._refArray.forEach(function (obj) {
|
|
320
320
|
if (obj.index === lineId) {
|
|
@@ -342,18 +342,18 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
342
342
|
var formattedData = x instanceof Date ? x.toLocaleDateString() : x;
|
|
343
343
|
var xVal = x instanceof Date ? x.getTime() : x;
|
|
344
344
|
var _this = _this_1;
|
|
345
|
-
var found = Utilities_1.find(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
345
|
+
var found = (0, Utilities_1.find)(_this_1._calloutPoints, function (element) { return element.x === xVal; });
|
|
346
346
|
// if no points need to be called out then don't show vertical line and callout card
|
|
347
347
|
if (found) {
|
|
348
|
-
d3_selection_1.select("#"
|
|
349
|
-
.attr('transform', function () { return "translate("
|
|
348
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine))
|
|
349
|
+
.attr('transform', function () { return "translate(".concat(_this._xAxisScale(x), ", ").concat(_this._yAxisScale(y), ")"); })
|
|
350
350
|
.attr('visibility', 'visibility')
|
|
351
|
-
.attr('y2', ""
|
|
351
|
+
.attr('y2', "".concat(lineHeight - _this._yAxisScale(y)));
|
|
352
352
|
if (_this_1._uniqueCallOutID !== circleId) {
|
|
353
353
|
_this_1._uniqueCallOutID = circleId;
|
|
354
354
|
_this_1.setState({
|
|
355
355
|
isCalloutVisible: true,
|
|
356
|
-
refSelected: "#"
|
|
356
|
+
refSelected: "#".concat(circleId),
|
|
357
357
|
hoverXValue: xAxisCalloutData ? xAxisCalloutData : '' + formattedData,
|
|
358
358
|
YValueHover: found.values,
|
|
359
359
|
stackCalloutProps: found,
|
|
@@ -386,7 +386,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
386
386
|
return {};
|
|
387
387
|
};
|
|
388
388
|
_this_1._handleMouseOut = function () {
|
|
389
|
-
d3_selection_1.select("#"
|
|
389
|
+
(0, d3_selection_1.select)("#".concat(_this_1._verticalLine)).attr('visibility', 'hidden');
|
|
390
390
|
};
|
|
391
391
|
_this_1._handleChartMouseLeave = function () {
|
|
392
392
|
_this_1._uniqueCallOutID = null;
|
|
@@ -412,7 +412,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
412
412
|
}, -1);
|
|
413
413
|
var selectedLines;
|
|
414
414
|
if (selectedLineIndex === -1) {
|
|
415
|
-
selectedLines = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedLegendPoints), [selectedLine]);
|
|
415
|
+
selectedLines = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], _this_1.state.selectedLegendPoints, true), [selectedLine], false);
|
|
416
416
|
}
|
|
417
417
|
else {
|
|
418
418
|
selectedLines = _this_1.state.selectedLegendPoints
|
|
@@ -452,7 +452,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
452
452
|
}, -1);
|
|
453
453
|
var selectedColorFillBars;
|
|
454
454
|
if (selectedColorFillBarIndex === -1) {
|
|
455
|
-
selectedColorFillBars = tslib_1.__spreadArray(tslib_1.__spreadArray([], _this_1.state.selectedColorBarLegend), [selectedColorFillBar]);
|
|
455
|
+
selectedColorFillBars = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], _this_1.state.selectedColorBarLegend, true), [selectedColorFillBar], false);
|
|
456
456
|
}
|
|
457
457
|
else {
|
|
458
458
|
selectedColorFillBars = _this_1.state.selectedColorBarLegend
|
|
@@ -514,7 +514,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
514
514
|
var xValue = point.xAxisCalloutData || formattedDate;
|
|
515
515
|
var legend = line.legend;
|
|
516
516
|
var yValue = point.yAxisCalloutData || point.y;
|
|
517
|
-
return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || xValue
|
|
517
|
+
return ((_a = point.callOutAccessibilityData) === null || _a === void 0 ? void 0 : _a.ariaLabel) || "".concat(xValue, ". ").concat(legend, ", ").concat(yValue, ".");
|
|
518
518
|
};
|
|
519
519
|
_this_1.state = {
|
|
520
520
|
hoverXValue: '',
|
|
@@ -533,15 +533,15 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
533
533
|
_this_1._refArray = [];
|
|
534
534
|
_this_1._points = _this_1._injectIndexPropertyInLineChartData(_this_1.props.data.lineChartData);
|
|
535
535
|
_this_1._colorFillBars = [];
|
|
536
|
-
_this_1._calloutPoints = index_3.calloutData(_this_1._points) || [];
|
|
537
|
-
_this_1._circleId = Utilities_1.getId('circle');
|
|
538
|
-
_this_1._lineId = Utilities_1.getId('lineID');
|
|
539
|
-
_this_1._borderId = Utilities_1.getId('borderID');
|
|
540
|
-
_this_1._verticalLine = Utilities_1.getId('verticalLine');
|
|
541
|
-
_this_1._colorFillBarPatternId = Utilities_1.getId('colorFillBarPattern');
|
|
542
|
-
_this_1._tooltipId = Utilities_1.getId('LineChartTooltipId_');
|
|
543
|
-
_this_1._rectId = Utilities_1.getId('containerRectLD');
|
|
544
|
-
_this_1._staticHighlightCircle = Utilities_1.getId('staticHighlightCircle');
|
|
536
|
+
_this_1._calloutPoints = (0, index_3.calloutData)(_this_1._points) || [];
|
|
537
|
+
_this_1._circleId = (0, Utilities_1.getId)('circle');
|
|
538
|
+
_this_1._lineId = (0, Utilities_1.getId)('lineID');
|
|
539
|
+
_this_1._borderId = (0, Utilities_1.getId)('borderID');
|
|
540
|
+
_this_1._verticalLine = (0, Utilities_1.getId)('verticalLine');
|
|
541
|
+
_this_1._colorFillBarPatternId = (0, Utilities_1.getId)('colorFillBarPattern');
|
|
542
|
+
_this_1._tooltipId = (0, Utilities_1.getId)('LineChartTooltipId_');
|
|
543
|
+
_this_1._rectId = (0, Utilities_1.getId)('containerRectLD');
|
|
544
|
+
_this_1._staticHighlightCircle = (0, Utilities_1.getId)('staticHighlightCircle');
|
|
545
545
|
props.eventAnnotationProps &&
|
|
546
546
|
props.eventAnnotationProps.labelHeight &&
|
|
547
547
|
(_this_1.eventLabelHeight = props.eventAnnotationProps.labelHeight);
|
|
@@ -555,28 +555,28 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
555
555
|
prevProps.width !== this.props.width ||
|
|
556
556
|
prevProps.data !== this.props.data) {
|
|
557
557
|
this._points = this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);
|
|
558
|
-
this._calloutPoints = index_3.calloutData(this._points) || [];
|
|
558
|
+
this._calloutPoints = (0, index_3.calloutData)(this._points) || [];
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
561
|
LineChartBase.prototype.render = function () {
|
|
562
562
|
var _this_1 = this;
|
|
563
563
|
var _a = this.props, tickValues = _a.tickValues, tickFormat = _a.tickFormat, eventAnnotationProps = _a.eventAnnotationProps, legendProps = _a.legendProps, data = _a.data;
|
|
564
564
|
this._points = this._injectIndexPropertyInLineChartData(data.lineChartData);
|
|
565
|
-
var isXAxisDateType = index_3.getXAxisType(this._points);
|
|
565
|
+
var isXAxisDateType = (0, index_3.getXAxisType)(this._points);
|
|
566
566
|
var points = this._points;
|
|
567
567
|
if (legendProps && !!legendProps.canSelectMultipleLegends) {
|
|
568
568
|
points = this.state.selectedLegendPoints.length >= 1 ? this.state.selectedLegendPoints : this._points;
|
|
569
|
-
this._calloutPoints = index_3.calloutData(points);
|
|
569
|
+
this._calloutPoints = (0, index_3.calloutData)(points);
|
|
570
570
|
}
|
|
571
571
|
var legendBars = this._createLegends(this._points);
|
|
572
|
-
var calloutProps = tslib_1.__assign({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: Callout_1.DirectionalHint.topAutoEdge, YValueHover: this.state.YValueHover, hoverXValue: this.state.hoverXValue, id: "toolTip"
|
|
572
|
+
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
|
|
573
573
|
? this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps)
|
|
574
574
|
: undefined, 'data-is-focusable': true, xAxisCalloutAccessibilityData: this.state.xAxisCalloutAccessibilityData }, this.props.calloutProps);
|
|
575
575
|
var tickParams = {
|
|
576
576
|
tickValues: tickValues,
|
|
577
577
|
tickFormat: tickFormat,
|
|
578
578
|
};
|
|
579
|
-
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,
|
|
579
|
+
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,
|
|
580
580
|
/* eslint-disable react/jsx-no-bind */
|
|
581
581
|
// eslint-disable-next-line react/no-children-prop
|
|
582
582
|
children: function (props) {
|
|
@@ -589,7 +589,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
589
589
|
React.createElement("g", null,
|
|
590
590
|
_this_1._renderedColorFillBars,
|
|
591
591
|
_this_1.lines),
|
|
592
|
-
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 }))))));
|
|
592
|
+
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 }))))));
|
|
593
593
|
} })));
|
|
594
594
|
};
|
|
595
595
|
LineChartBase.prototype._createLegends = function (data) {
|
|
@@ -599,7 +599,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
599
599
|
var legendDataItems = data.map(function (point) {
|
|
600
600
|
var color = point.color;
|
|
601
601
|
// mapping data to the format Legends component needs
|
|
602
|
-
var legend = tslib_1.__assign(tslib_1.__assign({ title: point.legend, color: color, action: function () {
|
|
602
|
+
var legend = (0, tslib_1.__assign)((0, tslib_1.__assign)({ title: point.legend, color: color, action: function () {
|
|
603
603
|
if (isLegendMultiSelectEnabled) {
|
|
604
604
|
_this_1._handleMultipleLineLegendSelectionAction(point);
|
|
605
605
|
}
|
|
@@ -623,7 +623,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
623
623
|
var _a;
|
|
624
624
|
var title = colorFillBar.legend;
|
|
625
625
|
// isInverted property is applicable to v8 themes only
|
|
626
|
-
var color = index_3.getColorFromToken(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
626
|
+
var color = (0, index_3.getColorFromToken)(colorFillBar.color, (_a = _this_1.props.theme) === null || _a === void 0 ? void 0 : _a.isInverted);
|
|
627
627
|
var legend = {
|
|
628
628
|
title: title,
|
|
629
629
|
color: color,
|
|
@@ -648,7 +648,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
648
648
|
return legend;
|
|
649
649
|
})
|
|
650
650
|
: [];
|
|
651
|
-
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)));
|
|
651
|
+
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)));
|
|
652
652
|
return legends;
|
|
653
653
|
};
|
|
654
654
|
LineChartBase.prototype._createLines = function (xElement, containerHeight) {
|
|
@@ -672,8 +672,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
672
672
|
var verticaLineHeight = containerHeight - this_1.margins.bottom + 6;
|
|
673
673
|
if (this_1._points[i].data.length === 1) {
|
|
674
674
|
var _0 = this_1._points[i].data[0], x1_1 = _0.x, y1 = _0.y, xAxisCalloutData_1 = _0.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _0.xAxisCalloutAccessibilityData;
|
|
675
|
-
var circleId_1 = this_1._circleId
|
|
676
|
-
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) {
|
|
675
|
+
var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
|
|
676
|
+
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) {
|
|
677
677
|
_this_1._refCallback(e, circleId_1);
|
|
678
678
|
}, 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))));
|
|
679
679
|
}
|
|
@@ -681,14 +681,14 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
681
681
|
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 : [];
|
|
682
682
|
// Use path rendering technique for larger datasets to optimize performance.
|
|
683
683
|
if (this_1.props.optimizeLargeData && this_1._points[i].data.length > 1) {
|
|
684
|
-
var line = d3_shape_1.line()
|
|
684
|
+
var line = (0, d3_shape_1.line)()
|
|
685
685
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
686
686
|
.x(function (d) { return _this_1._xAxisScale(d[0]); })
|
|
687
687
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
688
688
|
.y(function (d) { return _this_1._yAxisScale(d[1]); })
|
|
689
689
|
.curve(d3_shape_1.curveLinear);
|
|
690
|
-
var lineId = this_1._lineId
|
|
691
|
-
var borderId = this_1._borderId
|
|
690
|
+
var lineId = "".concat(this_1._lineId, "_").concat(i);
|
|
691
|
+
var borderId = "".concat(this_1._borderId, "_").concat(i);
|
|
692
692
|
var strokeWidth = ((_c = this_1._points[i].lineOptions) === null || _c === void 0 ? void 0 : _c.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
|
|
693
693
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
694
694
|
var lineData = [];
|
|
@@ -707,36 +707,36 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
707
707
|
if (lineBorderWidth > 0) {
|
|
708
708
|
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 }));
|
|
709
709
|
}
|
|
710
|
-
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
|
|
710
|
+
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.") })));
|
|
711
711
|
}
|
|
712
712
|
else {
|
|
713
|
-
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
|
|
713
|
+
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.") }));
|
|
714
714
|
}
|
|
715
715
|
var isPointHighlighted = this_1.state.activeLine !== null && this_1.state.activeLine === i;
|
|
716
|
-
pointsForLine.push(React.createElement("circle", { id: this_1._staticHighlightCircle
|
|
716
|
+
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 }));
|
|
717
717
|
}
|
|
718
718
|
else if (!this_1.props.optimizeLargeData) {
|
|
719
719
|
var _loop_2 = function (j) {
|
|
720
720
|
var gapResult = this_1._checkInGap(j, gaps, gapIndex);
|
|
721
721
|
var isInGap = gapResult.isInGap;
|
|
722
722
|
gapIndex = gapResult.gapIndex;
|
|
723
|
-
var lineId = this_1._lineId
|
|
724
|
-
var borderId = this_1._borderId
|
|
725
|
-
var circleId = this_1._circleId
|
|
723
|
+
var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
|
|
724
|
+
var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
|
|
725
|
+
var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
|
|
726
726
|
var _1 = this_1._points[i].data[j - 1], x1 = _1.x, y1 = _1.y, xAxisCalloutData = _1.xAxisCalloutData, xAxisCalloutAccessibilityData = _1.xAxisCalloutAccessibilityData;
|
|
727
727
|
var _2 = this_1._points[i].data[j], x2 = _2.x, y2 = _2.y;
|
|
728
728
|
var path = this_1._getPath(this_1._xAxisScale(x1), this_1._yAxisScale(y1), circleId, j, false, this_1._points[i].index);
|
|
729
729
|
var strokeWidth = ((_m = this_1._points[i].lineOptions) === null || _m === void 0 ? void 0 : _m.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
|
|
730
730
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
731
731
|
var currentPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== circleId;
|
|
732
|
-
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) })));
|
|
732
|
+
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) })));
|
|
733
733
|
if (j + 1 === this_1._points[i].data.length) {
|
|
734
734
|
// If this is last point of the line segment.
|
|
735
|
-
var lastCircleId_1 = ""
|
|
735
|
+
var lastCircleId_1 = "".concat(circleId).concat(j, "L");
|
|
736
736
|
var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
|
|
737
737
|
path = this_1._getPath(this_1._xAxisScale(x2), this_1._yAxisScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
|
|
738
738
|
var _3 = this_1._points[i].data[j], lastCirlceXCallout_1 = _3.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _3.xAxisCalloutAccessibilityData;
|
|
739
|
-
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 () {
|
|
739
|
+
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 () {
|
|
740
740
|
return _this_1._handleFocus(lineId, x2, lastCirlceXCallout_1, lastCircleId_1, lastCirlceXCalloutAccessibilityData_1);
|
|
741
741
|
}, 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) })));
|
|
742
742
|
/* eslint-enable react/jsx-no-bind */
|
|
@@ -750,7 +750,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
750
750
|
if (lineBorderWidth > 0) {
|
|
751
751
|
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 }));
|
|
752
752
|
}
|
|
753
|
-
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) {
|
|
753
|
+
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) {
|
|
754
754
|
_this_1._refCallback(e, lineId);
|
|
755
755
|
}, 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))));
|
|
756
756
|
}
|
|
@@ -765,7 +765,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
765
765
|
_loop_2(j);
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
|
-
lines.push.apply(lines, tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], bordersForLine), linesForLine), pointsForLine));
|
|
768
|
+
lines.push.apply(lines, (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], bordersForLine, false), linesForLine, false), pointsForLine, false));
|
|
769
769
|
};
|
|
770
770
|
var this_1 = this;
|
|
771
771
|
for (var i = this._points.length - 1; i >= 0; i--) {
|
|
@@ -784,7 +784,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
784
784
|
}
|
|
785
785
|
// Used to display tooltip at x axis labels.
|
|
786
786
|
if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
|
|
787
|
-
var xAxisElement = d3_selection_1.select(xElement).call(this._xAxisScale);
|
|
787
|
+
var xAxisElement = (0, d3_selection_1.select)(xElement).call(this._xAxisScale);
|
|
788
788
|
try {
|
|
789
789
|
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
790
790
|
// eslint-disable-next-line no-empty
|
|
@@ -795,7 +795,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
795
795
|
id: this._tooltipId,
|
|
796
796
|
xAxis: xAxisElement,
|
|
797
797
|
};
|
|
798
|
-
xAxisElement && index_3.tooltipOfXAxislabels(tooltipProps);
|
|
798
|
+
xAxisElement && (0, index_3.tooltipOfXAxislabels)(tooltipProps);
|
|
799
799
|
}
|
|
800
800
|
return lines;
|
|
801
801
|
};
|