@fluentui/react-charting 5.16.21 → 5.16.23
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 +55 -1
- package/CHANGELOG.md +24 -2
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +4 -5
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +5 -6
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +4 -5
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/utilities/FocusableTooltipText.d.ts +27 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js +57 -0
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -0
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +6 -6
- package/dist/react-charting.js +0 -1
- package/dist/react-charting.min.js +0 -1
- package/lib/AreaChart.d.ts +0 -1
- package/lib/AreaChart.js +0 -2
- package/lib/AreaChart.js.map +0 -1
- package/lib/CartesianChart.d.ts +0 -1
- package/lib/CartesianChart.js +0 -2
- package/lib/CartesianChart.js.map +0 -1
- package/lib/DonutChart.d.ts +0 -1
- package/lib/DonutChart.js +0 -2
- package/lib/DonutChart.js.map +0 -1
- package/lib/GroupedVerticalBarChart.d.ts +0 -1
- package/lib/GroupedVerticalBarChart.js +0 -2
- package/lib/GroupedVerticalBarChart.js.map +0 -1
- package/lib/HeatMapChart.d.ts +0 -1
- package/lib/HeatMapChart.js +0 -2
- package/lib/HeatMapChart.js.map +0 -1
- package/lib/HorizontalBarChart.d.ts +0 -1
- package/lib/HorizontalBarChart.js +0 -2
- package/lib/HorizontalBarChart.js.map +0 -1
- package/lib/Legends.d.ts +0 -1
- package/lib/Legends.js +0 -2
- package/lib/Legends.js.map +0 -1
- package/lib/LineChart.d.ts +0 -1
- package/lib/LineChart.js +0 -2
- package/lib/LineChart.js.map +0 -1
- package/lib/PieChart.d.ts +0 -1
- package/lib/PieChart.js +0 -2
- package/lib/PieChart.js.map +0 -1
- package/lib/SankeyChart.d.ts +0 -1
- package/lib/SankeyChart.js +0 -2
- package/lib/SankeyChart.js.map +0 -1
- package/lib/Sparkline.d.ts +0 -1
- package/lib/Sparkline.js +0 -2
- package/lib/Sparkline.js.map +0 -1
- package/lib/StackedBarChart.d.ts +0 -1
- package/lib/StackedBarChart.js +0 -2
- package/lib/StackedBarChart.js.map +0 -1
- package/lib/Styling.d.ts +0 -2
- package/lib/Styling.js +0 -8
- package/lib/Styling.js.map +0 -1
- package/lib/TreeChart.d.ts +0 -1
- package/lib/TreeChart.js +0 -2
- package/lib/TreeChart.js.map +0 -1
- package/lib/Utilities.d.ts +0 -2
- package/lib/Utilities.js +0 -20
- package/lib/Utilities.js.map +0 -1
- package/lib/VerticalBarChart.d.ts +0 -1
- package/lib/VerticalBarChart.js +0 -2
- package/lib/VerticalBarChart.js.map +0 -1
- package/lib/VerticalStackedBarChart.d.ts +0 -1
- package/lib/VerticalStackedBarChart.js +0 -2
- package/lib/VerticalStackedBarChart.js.map +0 -1
- package/lib/components/AreaChart/AreaChart.base.d.ts +0 -92
- package/lib/components/AreaChart/AreaChart.base.js +0 -562
- package/lib/components/AreaChart/AreaChart.base.js.map +0 -1
- package/lib/components/AreaChart/AreaChart.d.ts +0 -3
- package/lib/components/AreaChart/AreaChart.js +0 -6
- package/lib/components/AreaChart/AreaChart.js.map +0 -1
- package/lib/components/AreaChart/AreaChart.styles.d.ts +0 -2
- package/lib/components/AreaChart/AreaChart.styles.js +0 -7
- package/lib/components/AreaChart/AreaChart.styles.js.map +0 -1
- package/lib/components/AreaChart/AreaChart.types.d.ts +0 -37
- package/lib/components/AreaChart/AreaChart.types.js +0 -2
- package/lib/components/AreaChart/AreaChart.types.js.map +0 -1
- package/lib/components/AreaChart/index.d.ts +0 -2
- package/lib/components/AreaChart/index.js +0 -3
- package/lib/components/AreaChart/index.js.map +0 -1
- package/lib/components/CommonComponents/CartesianChart.base.d.ts +0 -43
- package/lib/components/CommonComponents/CartesianChart.base.js +0 -331
- package/lib/components/CommonComponents/CartesianChart.base.js.map +0 -1
- package/lib/components/CommonComponents/CartesianChart.d.ts +0 -3
- package/lib/components/CommonComponents/CartesianChart.js +0 -5
- package/lib/components/CommonComponents/CartesianChart.js.map +0 -1
- package/lib/components/CommonComponents/CartesianChart.styles.d.ts +0 -2
- package/lib/components/CommonComponents/CartesianChart.styles.js +0 -163
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +0 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +0 -428
- package/lib/components/CommonComponents/CartesianChart.types.js +0 -2
- package/lib/components/CommonComponents/CartesianChart.types.js.map +0 -1
- package/lib/components/CommonComponents/index.d.ts +0 -2
- package/lib/components/CommonComponents/index.js +0 -3
- package/lib/components/CommonComponents/index.js.map +0 -1
- package/lib/components/DonutChart/Arc/Arc.d.ts +0 -21
- package/lib/components/DonutChart/Arc/Arc.js +0 -86
- package/lib/components/DonutChart/Arc/Arc.js.map +0 -1
- package/lib/components/DonutChart/Arc/Arc.styles.d.ts +0 -2
- package/lib/components/DonutChart/Arc/Arc.styles.js +0 -28
- package/lib/components/DonutChart/Arc/Arc.styles.js.map +0 -1
- package/lib/components/DonutChart/Arc/Arc.types.d.ts +0 -124
- package/lib/components/DonutChart/Arc/Arc.types.js +0 -2
- package/lib/components/DonutChart/Arc/Arc.types.js.map +0 -1
- package/lib/components/DonutChart/Arc/index.d.ts +0 -2
- package/lib/components/DonutChart/Arc/index.js +0 -3
- package/lib/components/DonutChart/Arc/index.js.map +0 -1
- package/lib/components/DonutChart/DonutChart.base.d.ts +0 -50
- package/lib/components/DonutChart/DonutChart.base.js +0 -211
- package/lib/components/DonutChart/DonutChart.base.js.map +0 -1
- package/lib/components/DonutChart/DonutChart.d.ts +0 -3
- package/lib/components/DonutChart/DonutChart.js +0 -6
- package/lib/components/DonutChart/DonutChart.js.map +0 -1
- package/lib/components/DonutChart/DonutChart.styles.d.ts +0 -2
- package/lib/components/DonutChart/DonutChart.styles.js +0 -30
- package/lib/components/DonutChart/DonutChart.styles.js.map +0 -1
- package/lib/components/DonutChart/DonutChart.types.d.ts +0 -63
- package/lib/components/DonutChart/DonutChart.types.js +0 -2
- package/lib/components/DonutChart/DonutChart.types.js.map +0 -1
- package/lib/components/DonutChart/Pie/Pie.d.ts +0 -15
- package/lib/components/DonutChart/Pie/Pie.js +0 -71
- package/lib/components/DonutChart/Pie/Pie.js.map +0 -1
- package/lib/components/DonutChart/Pie/Pie.styles.d.ts +0 -2
- package/lib/components/DonutChart/Pie/Pie.styles.js +0 -19
- package/lib/components/DonutChart/Pie/Pie.styles.js.map +0 -1
- package/lib/components/DonutChart/Pie/Pie.types.d.ts +0 -96
- package/lib/components/DonutChart/Pie/Pie.types.js +0 -2
- package/lib/components/DonutChart/Pie/Pie.types.js.map +0 -1
- package/lib/components/DonutChart/Pie/index.d.ts +0 -2
- package/lib/components/DonutChart/Pie/index.js +0 -3
- package/lib/components/DonutChart/Pie/index.js.map +0 -1
- package/lib/components/DonutChart/index.d.ts +0 -3
- package/lib/components/DonutChart/index.js +0 -4
- package/lib/components/DonutChart/index.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -62
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +0 -381
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +0 -3
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -6
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +0 -2
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +0 -17
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +0 -83
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -2
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
- package/lib/components/GroupedVerticalBarChart/index.d.ts +0 -2
- package/lib/components/GroupedVerticalBarChart/index.js +0 -3
- package/lib/components/GroupedVerticalBarChart/index.js.map +0 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +0 -147
- package/lib/components/HeatMapChart/HeatMapChart.base.js +0 -498
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +0 -1
- package/lib/components/HeatMapChart/HeatMapChart.d.ts +0 -3
- package/lib/components/HeatMapChart/HeatMapChart.js +0 -5
- package/lib/components/HeatMapChart/HeatMapChart.js.map +0 -1
- package/lib/components/HeatMapChart/HeatMapChart.styles.d.ts +0 -2
- package/lib/components/HeatMapChart/HeatMapChart.styles.js +0 -24
- package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +0 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +0 -110
- package/lib/components/HeatMapChart/HeatMapChart.types.js +0 -2
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
- package/lib/components/HeatMapChart/index.d.ts +0 -2
- package/lib/components/HeatMapChart/index.js +0 -3
- package/lib/components/HeatMapChart/index.js.map +0 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +0 -36
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +0 -238
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +0 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -3
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js +0 -6
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +0 -2
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js +0 -69
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +0 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +0 -172
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -6
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
- package/lib/components/HorizontalBarChart/index.d.ts +0 -3
- package/lib/components/HorizontalBarChart/index.js +0 -4
- package/lib/components/HorizontalBarChart/index.js.map +0 -1
- package/lib/components/Legends/Legends.base.d.ts +0 -44
- package/lib/components/Legends/Legends.base.js +0 -293
- package/lib/components/Legends/Legends.base.js.map +0 -1
- package/lib/components/Legends/Legends.d.ts +0 -3
- package/lib/components/Legends/Legends.js +0 -5
- package/lib/components/Legends/Legends.js.map +0 -1
- package/lib/components/Legends/Legends.styles.d.ts +0 -2
- package/lib/components/Legends/Legends.styles.js +0 -103
- package/lib/components/Legends/Legends.styles.js.map +0 -1
- package/lib/components/Legends/Legends.types.d.ts +0 -169
- package/lib/components/Legends/Legends.types.js +0 -2
- package/lib/components/Legends/Legends.types.js.map +0 -1
- package/lib/components/Legends/index.d.ts +0 -3
- package/lib/components/Legends/index.js +0 -4
- package/lib/components/Legends/index.js.map +0 -1
- package/lib/components/Legends/shape.d.ts +0 -9
- package/lib/components/Legends/shape.js +0 -24
- package/lib/components/Legends/shape.js.map +0 -1
- package/lib/components/LineChart/LineChart.base.d.ts +0 -84
- package/lib/components/LineChart/LineChart.base.js +0 -815
- package/lib/components/LineChart/LineChart.base.js.map +0 -1
- package/lib/components/LineChart/LineChart.d.ts +0 -3
- package/lib/components/LineChart/LineChart.js +0 -6
- package/lib/components/LineChart/LineChart.js.map +0 -1
- package/lib/components/LineChart/LineChart.styles.d.ts +0 -2
- package/lib/components/LineChart/LineChart.styles.js +0 -7
- package/lib/components/LineChart/LineChart.styles.js.map +0 -1
- package/lib/components/LineChart/LineChart.types.d.ts +0 -72
- package/lib/components/LineChart/LineChart.types.js +0 -2
- package/lib/components/LineChart/LineChart.types.js.map +0 -1
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.d.ts +0 -10
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +0 -93
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
- package/lib/components/LineChart/eventAnnotation/LabelLink.d.ts +0 -22
- package/lib/components/LineChart/eventAnnotation/LabelLink.js +0 -37
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
- package/lib/components/LineChart/eventAnnotation/Textbox.d.ts +0 -13
- package/lib/components/LineChart/eventAnnotation/Textbox.js +0 -37
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
- package/lib/components/LineChart/index.d.ts +0 -3
- package/lib/components/LineChart/index.js +0 -4
- package/lib/components/LineChart/index.js.map +0 -1
- package/lib/components/PieChart/Arc/Arc.d.ts +0 -12
- package/lib/components/PieChart/Arc/Arc.js +0 -57
- package/lib/components/PieChart/Arc/Arc.js.map +0 -1
- package/lib/components/PieChart/Arc/Arc.styles.d.ts +0 -2
- package/lib/components/PieChart/Arc/Arc.styles.js +0 -8
- package/lib/components/PieChart/Arc/Arc.styles.js.map +0 -1
- package/lib/components/PieChart/Arc/Arc.types.d.ts +0 -60
- package/lib/components/PieChart/Arc/Arc.types.js +0 -2
- package/lib/components/PieChart/Arc/Arc.types.js.map +0 -1
- package/lib/components/PieChart/Arc/index.d.ts +0 -2
- package/lib/components/PieChart/Arc/index.js +0 -3
- package/lib/components/PieChart/Arc/index.js.map +0 -1
- package/lib/components/PieChart/Pie/Pie.d.ts +0 -10
- package/lib/components/PieChart/Pie/Pie.js +0 -35
- package/lib/components/PieChart/Pie/Pie.js.map +0 -1
- package/lib/components/PieChart/Pie/Pie.styles.d.ts +0 -2
- package/lib/components/PieChart/Pie/Pie.styles.js +0 -6
- package/lib/components/PieChart/Pie/Pie.styles.js.map +0 -1
- package/lib/components/PieChart/Pie/Pie.types.d.ts +0 -46
- package/lib/components/PieChart/Pie/Pie.types.js +0 -2
- package/lib/components/PieChart/Pie/Pie.types.js.map +0 -1
- package/lib/components/PieChart/Pie/index.d.ts +0 -2
- package/lib/components/PieChart/Pie/index.js +0 -3
- package/lib/components/PieChart/Pie/index.js.map +0 -1
- package/lib/components/PieChart/PieChart.base.d.ts +0 -7
- package/lib/components/PieChart/PieChart.base.js +0 -34
- package/lib/components/PieChart/PieChart.base.js.map +0 -1
- package/lib/components/PieChart/PieChart.d.ts +0 -3
- package/lib/components/PieChart/PieChart.js +0 -6
- package/lib/components/PieChart/PieChart.js.map +0 -1
- package/lib/components/PieChart/PieChart.styles.d.ts +0 -2
- package/lib/components/PieChart/PieChart.styles.js +0 -29
- package/lib/components/PieChart/PieChart.styles.js.map +0 -1
- package/lib/components/PieChart/PieChart.types.d.ts +0 -63
- package/lib/components/PieChart/PieChart.types.js +0 -2
- package/lib/components/PieChart/PieChart.types.js.map +0 -1
- package/lib/components/PieChart/index.d.ts +0 -2
- package/lib/components/PieChart/index.js +0 -3
- package/lib/components/PieChart/index.js.map +0 -1
- package/lib/components/SankeyChart/SankeyChart.base.d.ts +0 -95
- package/lib/components/SankeyChart/SankeyChart.base.js +0 -674
- package/lib/components/SankeyChart/SankeyChart.base.js.map +0 -1
- package/lib/components/SankeyChart/SankeyChart.d.ts +0 -3
- package/lib/components/SankeyChart/SankeyChart.js +0 -6
- package/lib/components/SankeyChart/SankeyChart.js.map +0 -1
- package/lib/components/SankeyChart/SankeyChart.styles.d.ts +0 -2
- package/lib/components/SankeyChart/SankeyChart.styles.js +0 -58
- package/lib/components/SankeyChart/SankeyChart.styles.js.map +0 -1
- package/lib/components/SankeyChart/SankeyChart.types.d.ts +0 -83
- package/lib/components/SankeyChart/SankeyChart.types.js +0 -2
- package/lib/components/SankeyChart/SankeyChart.types.js.map +0 -1
- package/lib/components/SankeyChart/index.d.ts +0 -2
- package/lib/components/SankeyChart/index.js +0 -3
- package/lib/components/SankeyChart/index.js.map +0 -1
- package/lib/components/Sparkline/Sparkline.base.d.ts +0 -20
- package/lib/components/Sparkline/Sparkline.base.js +0 -76
- package/lib/components/Sparkline/Sparkline.base.js.map +0 -1
- package/lib/components/Sparkline/Sparkline.d.ts +0 -3
- package/lib/components/Sparkline/Sparkline.js +0 -6
- package/lib/components/Sparkline/Sparkline.js.map +0 -1
- package/lib/components/Sparkline/Sparkline.styles.d.ts +0 -2
- package/lib/components/Sparkline/Sparkline.styles.js +0 -10
- package/lib/components/Sparkline/Sparkline.styles.js.map +0 -1
- package/lib/components/Sparkline/Sparkline.types.d.ts +0 -51
- package/lib/components/Sparkline/Sparkline.types.js +0 -2
- package/lib/components/Sparkline/Sparkline.types.js.map +0 -1
- package/lib/components/Sparkline/index.d.ts +0 -2
- package/lib/components/Sparkline/index.js +0 -3
- package/lib/components/Sparkline/index.js.map +0 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +0 -56
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +0 -357
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +0 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +0 -3
- package/lib/components/StackedBarChart/MultiStackedBarChart.js +0 -6
- package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +0 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +0 -2
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js +0 -90
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +0 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +0 -198
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +0 -6
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +0 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +0 -51
- package/lib/components/StackedBarChart/StackedBarChart.base.js +0 -312
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +0 -1
- package/lib/components/StackedBarChart/StackedBarChart.d.ts +0 -3
- package/lib/components/StackedBarChart/StackedBarChart.js +0 -6
- package/lib/components/StackedBarChart/StackedBarChart.js.map +0 -1
- package/lib/components/StackedBarChart/StackedBarChart.styles.d.ts +0 -2
- package/lib/components/StackedBarChart/StackedBarChart.styles.js +0 -104
- package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +0 -1
- package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +0 -210
- package/lib/components/StackedBarChart/StackedBarChart.types.js +0 -2
- package/lib/components/StackedBarChart/StackedBarChart.types.js.map +0 -1
- package/lib/components/StackedBarChart/index.d.ts +0 -5
- package/lib/components/StackedBarChart/index.js +0 -6
- package/lib/components/StackedBarChart/index.js.map +0 -1
- package/lib/components/TreeChart/TreeChart.base.d.ts +0 -18
- package/lib/components/TreeChart/TreeChart.base.js +0 -316
- package/lib/components/TreeChart/TreeChart.base.js.map +0 -1
- package/lib/components/TreeChart/TreeChart.d.ts +0 -3
- package/lib/components/TreeChart/TreeChart.js +0 -5
- package/lib/components/TreeChart/TreeChart.js.map +0 -1
- package/lib/components/TreeChart/TreeChart.styles.d.ts +0 -2
- package/lib/components/TreeChart/TreeChart.styles.js +0 -29
- package/lib/components/TreeChart/TreeChart.styles.js.map +0 -1
- package/lib/components/TreeChart/TreeChart.types.d.ts +0 -197
- package/lib/components/TreeChart/TreeChart.types.js +0 -23
- package/lib/components/TreeChart/TreeChart.types.js.map +0 -1
- package/lib/components/TreeChart/index.d.ts +0 -2
- package/lib/components/TreeChart/index.js +0 -3
- package/lib/components/TreeChart/index.js.map +0 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -74
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +0 -536
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +0 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +0 -3
- package/lib/components/VerticalBarChart/VerticalBarChart.js +0 -6
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.d.ts +0 -2
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +0 -28
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +0 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +0 -114
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js +0 -2
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
- package/lib/components/VerticalBarChart/index.d.ts +0 -2
- package/lib/components/VerticalBarChart/index.js +0 -3
- package/lib/components/VerticalBarChart/index.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -85
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +0 -666
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +0 -3
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -6
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +0 -2
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +0 -18
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +0 -142
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -2
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
- package/lib/components/VerticalStackedBarChart/index.d.ts +0 -2
- package/lib/components/VerticalStackedBarChart/index.js +0 -3
- package/lib/components/VerticalStackedBarChart/index.js.map +0 -1
- package/lib/index.d.ts +0 -19
- package/lib/index.js +0 -20
- package/lib/index.js.map +0 -1
- package/lib/types/IDataPoint.d.ts +0 -545
- package/lib/types/IDataPoint.js +0 -2
- package/lib/types/IDataPoint.js.map +0 -1
- package/lib/types/IEventAnnotation.d.ts +0 -6
- package/lib/types/IEventAnnotation.js +0 -2
- package/lib/types/IEventAnnotation.js.map +0 -1
- package/lib/types/ILegendDataItem.d.ts +0 -10
- package/lib/types/ILegendDataItem.js +0 -2
- package/lib/types/ILegendDataItem.js.map +0 -1
- package/lib/types/index.d.ts +0 -2
- package/lib/types/index.js +0 -3
- package/lib/types/index.js.map +0 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +0 -6
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +0 -38
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +0 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.d.ts +0 -3
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js +0 -6
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +0 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +0 -2
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +0 -82
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +0 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +0 -105
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js +0 -2
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +0 -1
- package/lib/utilities/ChartHoverCard/index.d.ts +0 -3
- package/lib/utilities/ChartHoverCard/index.js +0 -4
- package/lib/utilities/ChartHoverCard/index.js.map +0 -1
- package/lib/utilities/colors.d.ts +0 -51
- package/lib/utilities/colors.js +0 -132
- package/lib/utilities/colors.js.map +0 -1
- package/lib/utilities/index.d.ts +0 -3
- package/lib/utilities/index.js +0 -4
- package/lib/utilities/index.js.map +0 -1
- package/lib/utilities/utilities.d.ts +0 -377
- package/lib/utilities/utilities.js +0 -864
- package/lib/utilities/utilities.js.map +0 -1
- package/lib/version.d.ts +0 -1
- package/lib/version.js +0 -5
- package/lib/version.js.map +0 -1
- package/lib-amd/AreaChart.d.ts +0 -1
- package/lib-amd/AreaChart.js +0 -6
- package/lib-amd/AreaChart.js.map +0 -1
- package/lib-amd/CartesianChart.d.ts +0 -1
- package/lib-amd/CartesianChart.js +0 -6
- package/lib-amd/CartesianChart.js.map +0 -1
- package/lib-amd/DonutChart.d.ts +0 -1
- package/lib-amd/DonutChart.js +0 -6
- package/lib-amd/DonutChart.js.map +0 -1
- package/lib-amd/GroupedVerticalBarChart.d.ts +0 -1
- package/lib-amd/GroupedVerticalBarChart.js +0 -6
- package/lib-amd/GroupedVerticalBarChart.js.map +0 -1
- package/lib-amd/HeatMapChart.d.ts +0 -1
- package/lib-amd/HeatMapChart.js +0 -6
- package/lib-amd/HeatMapChart.js.map +0 -1
- package/lib-amd/HorizontalBarChart.d.ts +0 -1
- package/lib-amd/HorizontalBarChart.js +0 -6
- package/lib-amd/HorizontalBarChart.js.map +0 -1
- package/lib-amd/Legends.d.ts +0 -1
- package/lib-amd/Legends.js +0 -6
- package/lib-amd/Legends.js.map +0 -1
- package/lib-amd/LineChart.d.ts +0 -1
- package/lib-amd/LineChart.js +0 -6
- package/lib-amd/LineChart.js.map +0 -1
- package/lib-amd/PieChart.d.ts +0 -1
- package/lib-amd/PieChart.js +0 -6
- package/lib-amd/PieChart.js.map +0 -1
- package/lib-amd/SankeyChart.d.ts +0 -1
- package/lib-amd/SankeyChart.js +0 -6
- package/lib-amd/SankeyChart.js.map +0 -1
- package/lib-amd/Sparkline.d.ts +0 -1
- package/lib-amd/Sparkline.js +0 -6
- package/lib-amd/Sparkline.js.map +0 -1
- package/lib-amd/StackedBarChart.d.ts +0 -1
- package/lib-amd/StackedBarChart.js +0 -6
- package/lib-amd/StackedBarChart.js.map +0 -1
- package/lib-amd/Styling.d.ts +0 -2
- package/lib-amd/Styling.js +0 -75
- package/lib-amd/Styling.js.map +0 -1
- package/lib-amd/TreeChart.d.ts +0 -1
- package/lib-amd/TreeChart.js +0 -6
- package/lib-amd/TreeChart.js.map +0 -1
- package/lib-amd/Utilities.d.ts +0 -2
- package/lib-amd/Utilities.js +0 -183
- package/lib-amd/Utilities.js.map +0 -1
- package/lib-amd/VerticalBarChart.d.ts +0 -1
- package/lib-amd/VerticalBarChart.js +0 -6
- package/lib-amd/VerticalBarChart.js.map +0 -1
- package/lib-amd/VerticalStackedBarChart.d.ts +0 -1
- package/lib-amd/VerticalStackedBarChart.js +0 -6
- package/lib-amd/VerticalStackedBarChart.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +0 -92
- package/lib-amd/components/AreaChart/AreaChart.base.js +0 -555
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.d.ts +0 -3
- package/lib-amd/components/AreaChart/AreaChart.js +0 -8
- package/lib-amd/components/AreaChart/AreaChart.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +0 -2
- package/lib-amd/components/AreaChart/AreaChart.styles.js +0 -12
- package/lib-amd/components/AreaChart/AreaChart.styles.js.map +0 -1
- package/lib-amd/components/AreaChart/AreaChart.types.d.ts +0 -37
- package/lib-amd/components/AreaChart/AreaChart.types.js +0 -5
- package/lib-amd/components/AreaChart/AreaChart.types.js.map +0 -1
- package/lib-amd/components/AreaChart/index.d.ts +0 -2
- package/lib-amd/components/AreaChart/index.js +0 -7
- package/lib-amd/components/AreaChart/index.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +0 -43
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +0 -329
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.d.ts +0 -3
- package/lib-amd/components/CommonComponents/CartesianChart.js +0 -7
- package/lib-amd/components/CommonComponents/CartesianChart.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +0 -2
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +0 -166
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +0 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +0 -428
- package/lib-amd/components/CommonComponents/CartesianChart.types.js +0 -5
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +0 -1
- package/lib-amd/components/CommonComponents/index.d.ts +0 -2
- package/lib-amd/components/CommonComponents/index.js +0 -7
- package/lib-amd/components/CommonComponents/index.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/Arc.d.ts +0 -21
- package/lib-amd/components/DonutChart/Arc/Arc.js +0 -85
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +0 -2
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js +0 -33
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +0 -124
- package/lib-amd/components/DonutChart/Arc/Arc.types.js +0 -5
- package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +0 -1
- package/lib-amd/components/DonutChart/Arc/index.d.ts +0 -2
- package/lib-amd/components/DonutChart/Arc/index.js +0 -7
- package/lib-amd/components/DonutChart/Arc/index.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.base.d.ts +0 -50
- package/lib-amd/components/DonutChart/DonutChart.base.js +0 -208
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.d.ts +0 -3
- package/lib-amd/components/DonutChart/DonutChart.js +0 -8
- package/lib-amd/components/DonutChart/DonutChart.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +0 -2
- package/lib-amd/components/DonutChart/DonutChart.styles.js +0 -36
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +0 -1
- package/lib-amd/components/DonutChart/DonutChart.types.d.ts +0 -63
- package/lib-amd/components/DonutChart/DonutChart.types.js +0 -5
- package/lib-amd/components/DonutChart/DonutChart.types.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/Pie.d.ts +0 -15
- package/lib-amd/components/DonutChart/Pie/Pie.js +0 -69
- package/lib-amd/components/DonutChart/Pie/Pie.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +0 -2
- package/lib-amd/components/DonutChart/Pie/Pie.styles.js +0 -24
- package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +0 -96
- package/lib-amd/components/DonutChart/Pie/Pie.types.js +0 -5
- package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +0 -1
- package/lib-amd/components/DonutChart/Pie/index.d.ts +0 -2
- package/lib-amd/components/DonutChart/Pie/index.js +0 -7
- package/lib-amd/components/DonutChart/Pie/index.js.map +0 -1
- package/lib-amd/components/DonutChart/index.d.ts +0 -3
- package/lib-amd/components/DonutChart/index.js +0 -8
- package/lib-amd/components/DonutChart/index.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +0 -62
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +0 -375
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +0 -3
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +0 -8
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +0 -2
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +0 -21
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +0 -83
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +0 -5
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +0 -1
- package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +0 -2
- package/lib-amd/components/GroupedVerticalBarChart/index.js +0 -7
- package/lib-amd/components/GroupedVerticalBarChart/index.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +0 -147
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +0 -492
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +0 -3
- package/lib-amd/components/HeatMapChart/HeatMapChart.js +0 -7
- package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +0 -2
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +0 -29
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +0 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +0 -110
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +0 -5
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +0 -1
- package/lib-amd/components/HeatMapChart/index.d.ts +0 -2
- package/lib-amd/components/HeatMapChart/index.js +0 -7
- package/lib-amd/components/HeatMapChart/index.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +0 -36
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +0 -234
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +0 -3
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +0 -8
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +0 -2
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +0 -72
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +0 -172
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +0 -11
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +0 -1
- package/lib-amd/components/HorizontalBarChart/index.d.ts +0 -3
- package/lib-amd/components/HorizontalBarChart/index.js +0 -8
- package/lib-amd/components/HorizontalBarChart/index.js.map +0 -1
- package/lib-amd/components/Legends/Legends.base.d.ts +0 -44
- package/lib-amd/components/Legends/Legends.base.js +0 -290
- package/lib-amd/components/Legends/Legends.base.js.map +0 -1
- package/lib-amd/components/Legends/Legends.d.ts +0 -3
- package/lib-amd/components/Legends/Legends.js +0 -7
- package/lib-amd/components/Legends/Legends.js.map +0 -1
- package/lib-amd/components/Legends/Legends.styles.d.ts +0 -2
- package/lib-amd/components/Legends/Legends.styles.js +0 -107
- package/lib-amd/components/Legends/Legends.styles.js.map +0 -1
- package/lib-amd/components/Legends/Legends.types.d.ts +0 -169
- package/lib-amd/components/Legends/Legends.types.js +0 -5
- package/lib-amd/components/Legends/Legends.types.js.map +0 -1
- package/lib-amd/components/Legends/index.d.ts +0 -3
- package/lib-amd/components/Legends/index.js +0 -8
- package/lib-amd/components/Legends/index.js.map +0 -1
- package/lib-amd/components/Legends/shape.d.ts +0 -9
- package/lib-amd/components/Legends/shape.js +0 -27
- package/lib-amd/components/Legends/shape.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -84
- package/lib-amd/components/LineChart/LineChart.base.js +0 -809
- package/lib-amd/components/LineChart/LineChart.base.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.d.ts +0 -3
- package/lib-amd/components/LineChart/LineChart.js +0 -8
- package/lib-amd/components/LineChart/LineChart.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.styles.d.ts +0 -2
- package/lib-amd/components/LineChart/LineChart.styles.js +0 -12
- package/lib-amd/components/LineChart/LineChart.styles.js.map +0 -1
- package/lib-amd/components/LineChart/LineChart.types.d.ts +0 -72
- package/lib-amd/components/LineChart/LineChart.types.js +0 -5
- package/lib-amd/components/LineChart/LineChart.types.js.map +0 -1
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +0 -10
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +0 -95
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +0 -1
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +0 -22
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +0 -40
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +0 -1
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +0 -13
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +0 -40
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +0 -1
- package/lib-amd/components/LineChart/index.d.ts +0 -3
- package/lib-amd/components/LineChart/index.js +0 -8
- package/lib-amd/components/LineChart/index.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/Arc.d.ts +0 -12
- package/lib-amd/components/PieChart/Arc/Arc.js +0 -56
- package/lib-amd/components/PieChart/Arc/Arc.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +0 -2
- package/lib-amd/components/PieChart/Arc/Arc.styles.js +0 -13
- package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +0 -60
- package/lib-amd/components/PieChart/Arc/Arc.types.js +0 -5
- package/lib-amd/components/PieChart/Arc/Arc.types.js.map +0 -1
- package/lib-amd/components/PieChart/Arc/index.d.ts +0 -2
- package/lib-amd/components/PieChart/Arc/index.js +0 -7
- package/lib-amd/components/PieChart/Arc/index.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/Pie.d.ts +0 -10
- package/lib-amd/components/PieChart/Pie/Pie.js +0 -35
- package/lib-amd/components/PieChart/Pie/Pie.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +0 -2
- package/lib-amd/components/PieChart/Pie/Pie.styles.js +0 -12
- package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +0 -46
- package/lib-amd/components/PieChart/Pie/Pie.types.js +0 -5
- package/lib-amd/components/PieChart/Pie/Pie.types.js.map +0 -1
- package/lib-amd/components/PieChart/Pie/index.d.ts +0 -2
- package/lib-amd/components/PieChart/Pie/index.js +0 -7
- package/lib-amd/components/PieChart/Pie/index.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.base.d.ts +0 -7
- package/lib-amd/components/PieChart/PieChart.base.js +0 -35
- package/lib-amd/components/PieChart/PieChart.base.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.d.ts +0 -3
- package/lib-amd/components/PieChart/PieChart.js +0 -8
- package/lib-amd/components/PieChart/PieChart.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.styles.d.ts +0 -2
- package/lib-amd/components/PieChart/PieChart.styles.js +0 -34
- package/lib-amd/components/PieChart/PieChart.styles.js.map +0 -1
- package/lib-amd/components/PieChart/PieChart.types.d.ts +0 -63
- package/lib-amd/components/PieChart/PieChart.types.js +0 -5
- package/lib-amd/components/PieChart/PieChart.types.js.map +0 -1
- package/lib-amd/components/PieChart/index.d.ts +0 -2
- package/lib-amd/components/PieChart/index.js +0 -7
- package/lib-amd/components/PieChart/index.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +0 -95
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +0 -669
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.d.ts +0 -3
- package/lib-amd/components/SankeyChart/SankeyChart.js +0 -8
- package/lib-amd/components/SankeyChart/SankeyChart.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +0 -2
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js +0 -62
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +0 -1
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +0 -83
- package/lib-amd/components/SankeyChart/SankeyChart.types.js +0 -5
- package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +0 -1
- package/lib-amd/components/SankeyChart/index.d.ts +0 -2
- package/lib-amd/components/SankeyChart/index.js +0 -7
- package/lib-amd/components/SankeyChart/index.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.base.d.ts +0 -20
- package/lib-amd/components/Sparkline/Sparkline.base.js +0 -74
- package/lib-amd/components/Sparkline/Sparkline.base.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.d.ts +0 -3
- package/lib-amd/components/Sparkline/Sparkline.js +0 -8
- package/lib-amd/components/Sparkline/Sparkline.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +0 -2
- package/lib-amd/components/Sparkline/Sparkline.styles.js +0 -15
- package/lib-amd/components/Sparkline/Sparkline.styles.js.map +0 -1
- package/lib-amd/components/Sparkline/Sparkline.types.d.ts +0 -51
- package/lib-amd/components/Sparkline/Sparkline.types.js +0 -5
- package/lib-amd/components/Sparkline/Sparkline.types.js.map +0 -1
- package/lib-amd/components/Sparkline/index.d.ts +0 -2
- package/lib-amd/components/Sparkline/index.js +0 -7
- package/lib-amd/components/Sparkline/index.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +0 -56
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +0 -352
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +0 -3
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +0 -8
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +0 -2
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +0 -93
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +0 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +0 -198
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +0 -11
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +0 -51
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +0 -309
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +0 -3
- package/lib-amd/components/StackedBarChart/StackedBarChart.js +0 -8
- package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +0 -2
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +0 -108
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +0 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +0 -210
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +0 -5
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +0 -1
- package/lib-amd/components/StackedBarChart/index.d.ts +0 -5
- package/lib-amd/components/StackedBarChart/index.js +0 -10
- package/lib-amd/components/StackedBarChart/index.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.base.d.ts +0 -18
- package/lib-amd/components/TreeChart/TreeChart.base.js +0 -314
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.d.ts +0 -3
- package/lib-amd/components/TreeChart/TreeChart.js +0 -7
- package/lib-amd/components/TreeChart/TreeChart.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +0 -2
- package/lib-amd/components/TreeChart/TreeChart.styles.js +0 -34
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +0 -1
- package/lib-amd/components/TreeChart/TreeChart.types.d.ts +0 -197
- package/lib-amd/components/TreeChart/TreeChart.types.js +0 -28
- package/lib-amd/components/TreeChart/TreeChart.types.js.map +0 -1
- package/lib-amd/components/TreeChart/index.d.ts +0 -2
- package/lib-amd/components/TreeChart/index.js +0 -7
- package/lib-amd/components/TreeChart/index.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +0 -74
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +0 -529
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +0 -3
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +0 -8
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +0 -2
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +0 -32
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +0 -114
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +0 -5
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +0 -1
- package/lib-amd/components/VerticalBarChart/index.d.ts +0 -2
- package/lib-amd/components/VerticalBarChart/index.js +0 -7
- package/lib-amd/components/VerticalBarChart/index.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +0 -85
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +0 -659
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +0 -3
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +0 -8
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +0 -2
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +0 -22
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +0 -142
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +0 -5
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +0 -1
- package/lib-amd/components/VerticalStackedBarChart/index.d.ts +0 -2
- package/lib-amd/components/VerticalStackedBarChart/index.js +0 -7
- package/lib-amd/components/VerticalStackedBarChart/index.js.map +0 -1
- package/lib-amd/index.d.ts +0 -19
- package/lib-amd/index.js +0 -23
- package/lib-amd/index.js.map +0 -1
- package/lib-amd/types/IDataPoint.d.ts +0 -545
- package/lib-amd/types/IDataPoint.js +0 -5
- package/lib-amd/types/IDataPoint.js.map +0 -1
- package/lib-amd/types/IEventAnnotation.d.ts +0 -6
- package/lib-amd/types/IEventAnnotation.js +0 -5
- package/lib-amd/types/IEventAnnotation.js.map +0 -1
- package/lib-amd/types/ILegendDataItem.d.ts +0 -10
- package/lib-amd/types/ILegendDataItem.js +0 -5
- package/lib-amd/types/ILegendDataItem.js.map +0 -1
- package/lib-amd/types/index.d.ts +0 -2
- package/lib-amd/types/index.js +0 -7
- package/lib-amd/types/index.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +0 -6
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +0 -39
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +0 -3
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +0 -8
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +0 -2
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +0 -87
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +0 -105
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +0 -5
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +0 -1
- package/lib-amd/utilities/ChartHoverCard/index.d.ts +0 -3
- package/lib-amd/utilities/ChartHoverCard/index.js +0 -8
- package/lib-amd/utilities/ChartHoverCard/index.js.map +0 -1
- package/lib-amd/utilities/colors.d.ts +0 -51
- package/lib-amd/utilities/colors.js +0 -139
- package/lib-amd/utilities/colors.js.map +0 -1
- package/lib-amd/utilities/index.d.ts +0 -3
- package/lib-amd/utilities/index.js +0 -8
- package/lib-amd/utilities/index.js.map +0 -1
- package/lib-amd/utilities/utilities.d.ts +0 -377
- package/lib-amd/utilities/utilities.js +0 -888
- package/lib-amd/utilities/utilities.js.map +0 -1
- package/lib-amd/version.d.ts +0 -1
- package/lib-amd/version.js +0 -6
- package/lib-amd/version.js.map +0 -1
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export var NodesComposition;
|
|
2
|
-
(function (NodesComposition) {
|
|
3
|
-
/**
|
|
4
|
-
* NodeComposition enum val for long: number = 1
|
|
5
|
-
*/
|
|
6
|
-
NodesComposition[NodesComposition["long"] = 1] = "long";
|
|
7
|
-
/**
|
|
8
|
-
* NodeComposition enum val for compact: number = 0
|
|
9
|
-
*/
|
|
10
|
-
NodesComposition[NodesComposition["compact"] = 0] = "compact";
|
|
11
|
-
})(NodesComposition || (NodesComposition = {}));
|
|
12
|
-
export var TreeTraverse;
|
|
13
|
-
(function (TreeTraverse) {
|
|
14
|
-
/**
|
|
15
|
-
* TreeTraverse enum val for preOrder: number = 1
|
|
16
|
-
*/
|
|
17
|
-
TreeTraverse[TreeTraverse["preOrder"] = 1] = "preOrder";
|
|
18
|
-
/**
|
|
19
|
-
* TreeTraverse enum val for levelOrder: number = 0
|
|
20
|
-
*/
|
|
21
|
-
TreeTraverse[TreeTraverse["levelOrder"] = 0] = "levelOrder";
|
|
22
|
-
})(TreeTraverse || (TreeTraverse = {}));
|
|
23
|
-
//# sourceMappingURL=TreeChart.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TreeChart.types.js","sourceRoot":"../src/","sources":["components/TreeChart/TreeChart.types.ts"],"names":[],"mappings":"AA8BA,MAAM,CAAN,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B;;OAEG;IACH,uDAAQ,CAAA;IACR;;OAEG;IACH,6DAAW,CAAA;AACb,CAAC,EATW,gBAAgB,KAAhB,gBAAgB,QAS3B;AAED,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB;;OAEG;IACH,uDAAY,CAAA;IACZ;;OAEG;IACH,2DAAc,CAAA;AAChB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB","sourcesContent":["import { IStyle, ITheme } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\n\nexport interface ITreeChartDataPoint {\n /**\n * Node main text\n */\n name: string;\n /**\n * Subtext value (optional)\n */\n subname?: string;\n /**\n * Bodytext value (optional)\n */\n bodytext?: string;\n /**\n * Metric text value (optional)\n */\n metric?: string;\n /**\n * Color of the rectangular box\n */\n fill: string;\n /**\n * Recursive datastructure for child node object\n */\n children?: Array<ITreeChartDataPoint>;\n}\n\nexport enum NodesComposition {\n /**\n * NodeComposition enum val for long: number = 1\n */\n long = 1,\n /**\n * NodeComposition enum val for compact: number = 0\n */\n compact = 0,\n}\n\nexport enum TreeTraverse {\n /**\n * TreeTraverse enum val for preOrder: number = 1\n */\n preOrder = 1,\n /**\n * TreeTraverse enum val for levelOrder: number = 0\n */\n levelOrder = 0,\n}\n\nexport interface ITreeProps {\n /**\n * An object of chart data points for the Tree chart\n */\n treeData: ITreeChartDataPoint;\n /**\n * compostion for three layer chart, long: composition = 1; compact: composition = 0\n */\n composition?: NodesComposition.long | NodesComposition.compact;\n /**\n * Node Width Size for the Tree Layout\n * * @default 75\n */\n layoutWidth?: number;\n /**\n * traversal order for tree chart, preOrder = 1, levelOrder = 0\n */\n treeTraversal?: TreeTraverse.preOrder | TreeTraverse.levelOrder;\n /**\n * Width of SVG tree chart\n * * @default 1500\n */\n width?: number;\n /**\n * Height of SVG tree chart\n * * @default 700\n */\n height?: number;\n /**\n * Margin for the SVG tree chart\n */\n marign?: { left: number; right: number; top: number; bottom: number };\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ITreeStyleProps, ITreeStyles>;\n /**\n * Additional CSS class(es) to apply to the TreeChart.\n */\n className?: string;\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n}\nexport interface ITreeState {\n /**\n * Width of SVG tree chart\n * * @default 1500\n */\n _width: number;\n /**\n * Height of SVG tree chart\n * * @default 700\n */\n _height: number;\n /**\n * Layout Width of SVG tree chart\n * * @default 75\n */\n _layoutWidth?: number;\n}\n\nexport interface ITreeDataStructure {\n /**\n * Node id of each node\n */\n id: number;\n /**\n * Children node object\n */\n children: Array<ITreeDataStructure>;\n /**\n * Node main text\n */\n dataName: string;\n /**\n * Subtext value (optional)\n */\n subName?: string;\n /**\n * Bodytext value (optional)\n */\n bodyText?: string;\n /**\n * Metric text value (optional)\n */\n metricName?: string;\n /**\n * Color of the rectangular box\n */\n fill: string;\n /**\n * X-coordindate of node\n */\n x: number;\n /**\n * Y-coordindate of node\n */\n y: number;\n /**\n * Node id of each node's parent\n */\n parentID: number;\n}\n\nexport interface ITreeStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n /**\n * Additional CSS class(es) to apply to the TreeChart.\n */\n className?: string;\n}\nexport interface ITreeStyles {\n /**\n * Style for the root element.\n */\n root: IStyle;\n /**\n * Style for the Link/Path element.\n */\n link: IStyle;\n /**\n * Style for rectangular Node\n */\n rectNode: IStyle;\n /**\n * Style for the node main Text\n */\n rectText: IStyle;\n /**\n * Style for the node sub Text\n */\n rectSubText: IStyle;\n /**\n * Style for the node body Text\n */\n rectBodyText: IStyle;\n /**\n * Style for the node metric value Text\n */\n rectMetricText: IStyle;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/TreeChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './TreeChart';\nexport * from './TreeChart.types';\n"]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IAccessibilityProps, IBasestate, IVerticalBarChartProps, IVerticalBarChartDataPoint, IYValueHover } from '../../index';
|
|
3
|
-
export interface IVerticalBarChartState extends IBasestate {
|
|
4
|
-
dataPointCalloutProps?: IVerticalBarChartDataPoint;
|
|
5
|
-
/**
|
|
6
|
-
* data point of x, where rectangle is hovered or focused
|
|
7
|
-
*/
|
|
8
|
-
activeXdataPoint: number | string | null;
|
|
9
|
-
YValueHover: IYValueHover[];
|
|
10
|
-
hoverXValue?: string | number | null;
|
|
11
|
-
callOutAccessibilityData?: IAccessibilityProps;
|
|
12
|
-
calloutLegend: string;
|
|
13
|
-
emptyChart?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class VerticalBarChartBase extends React.Component<IVerticalBarChartProps, IVerticalBarChartState> {
|
|
16
|
-
private _points;
|
|
17
|
-
private _barWidth;
|
|
18
|
-
private _colors;
|
|
19
|
-
private _classNames;
|
|
20
|
-
private _refArray;
|
|
21
|
-
private _calloutId;
|
|
22
|
-
private margins;
|
|
23
|
-
private _isRtl;
|
|
24
|
-
private _bars;
|
|
25
|
-
private _xAxisLabels;
|
|
26
|
-
private _yMax;
|
|
27
|
-
private _isHavingLine;
|
|
28
|
-
private _tooltipId;
|
|
29
|
-
private _xAxisType;
|
|
30
|
-
private _calloutAnchorPoint;
|
|
31
|
-
private _domainMargin;
|
|
32
|
-
constructor(props: IVerticalBarChartProps);
|
|
33
|
-
componentDidMount(): void;
|
|
34
|
-
render(): JSX.Element;
|
|
35
|
-
private _createLine;
|
|
36
|
-
private _checkForLine;
|
|
37
|
-
private _adjustProps;
|
|
38
|
-
private _getMargins;
|
|
39
|
-
private _renderContentForBothLineAndBars;
|
|
40
|
-
private _renderContentForOnlyBars;
|
|
41
|
-
private _renderCallout;
|
|
42
|
-
private _getCustomizedCallout;
|
|
43
|
-
private _getGraphData;
|
|
44
|
-
private _createColors;
|
|
45
|
-
private _refCallback;
|
|
46
|
-
private _getCalloutContentForLineAndBar;
|
|
47
|
-
private _onBarHover;
|
|
48
|
-
private _onBarLeave;
|
|
49
|
-
private _handleChartMouseLeave;
|
|
50
|
-
private _onBarFocus;
|
|
51
|
-
private _getScales;
|
|
52
|
-
private _createNumericBars;
|
|
53
|
-
private _createStringBars;
|
|
54
|
-
private _closeCallout;
|
|
55
|
-
private _onLegendClick;
|
|
56
|
-
private _onLegendHover;
|
|
57
|
-
private _onLegendLeave;
|
|
58
|
-
private _getLegendData;
|
|
59
|
-
private _getAxisData;
|
|
60
|
-
/**
|
|
61
|
-
* This function checks if the given legend is highlighted or not.
|
|
62
|
-
* A legend can be highlighted in 2 ways:
|
|
63
|
-
* 1. selection: if the user clicks on it
|
|
64
|
-
* 2. hovering: if there is no selected legend and the user hovers over it
|
|
65
|
-
*/
|
|
66
|
-
private _legendHighlighted;
|
|
67
|
-
/**
|
|
68
|
-
* This function checks if none of the legends is selected or hovered.
|
|
69
|
-
*/
|
|
70
|
-
private _noLegendHighlighted;
|
|
71
|
-
private _getAriaLabel;
|
|
72
|
-
private _renderBarLabel;
|
|
73
|
-
private _getDomainMargins;
|
|
74
|
-
}
|
|
@@ -1,536 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { max as d3Max, min as d3Min } from 'd3-array';
|
|
4
|
-
import { line as d3Line } from 'd3-shape';
|
|
5
|
-
import { select as d3Select } from 'd3-selection';
|
|
6
|
-
import { scaleLinear as d3ScaleLinear, scaleBand as d3ScaleBand } from 'd3-scale';
|
|
7
|
-
import { classNamesFunction, getId, getRTL } from '@fluentui/react/lib/Utilities';
|
|
8
|
-
import { DirectionalHint } from '@fluentui/react/lib/Callout';
|
|
9
|
-
import { CartesianChart, ChartHoverCard, Legends, } from '../../index';
|
|
10
|
-
import { FocusZoneDirection } from '@fluentui/react-focus';
|
|
11
|
-
import { ChartTypes, getAccessibleDataObject, XAxisTypes, getTypeOfAxis, tooltipOfXAxislabels, } from '../../utilities/index';
|
|
12
|
-
import { formatPrefix as d3FormatPrefix } from 'd3-format';
|
|
13
|
-
var CircleVisbility;
|
|
14
|
-
(function (CircleVisbility) {
|
|
15
|
-
CircleVisbility["show"] = "visibility";
|
|
16
|
-
CircleVisbility["hide"] = "hidden";
|
|
17
|
-
})(CircleVisbility || (CircleVisbility = {}));
|
|
18
|
-
var getClassNames = classNamesFunction();
|
|
19
|
-
var MIN_DOMAIN_MARGIN = 8;
|
|
20
|
-
var VerticalBarChartBase = /** @class */ (function (_super) {
|
|
21
|
-
__extends(VerticalBarChartBase, _super);
|
|
22
|
-
function VerticalBarChartBase(props) {
|
|
23
|
-
var _this = _super.call(this, props) || this;
|
|
24
|
-
_this._isRtl = getRTL();
|
|
25
|
-
_this._createLine = function (
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
-
xScale,
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
|
-
yScale, containerHeight, containerWidth) {
|
|
30
|
-
var _a;
|
|
31
|
-
if (containerHeight === void 0) { containerHeight = 0; }
|
|
32
|
-
if (containerWidth === void 0) { containerWidth = 0; }
|
|
33
|
-
var isNumericAxis = _this._xAxisType === XAxisTypes.NumericAxis;
|
|
34
|
-
var xBarScale = _this._getScales(containerHeight, containerWidth, isNumericAxis).xBarScale;
|
|
35
|
-
var colorScale = _this._createColors();
|
|
36
|
-
var theme = _this.props.theme;
|
|
37
|
-
var _b = _this.props, data = _b.data, _c = _b.lineLegendColor, lineLegendColor = _c === void 0 ? theme.palette.yellow : _c, lineLegendText = _b.lineLegendText;
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
|
-
var lineData = [];
|
|
40
|
-
var line = [];
|
|
41
|
-
data &&
|
|
42
|
-
data.forEach(function (item, index) {
|
|
43
|
-
if (item.lineData && item.lineData.y) {
|
|
44
|
-
lineData.push({ x: item.x, y: item.lineData.y, point: item, index: index });
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
var linePath = d3Line()
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
|
-
.x(function (d) { return (!isNumericAxis ? xBarScale(d.x) + 0.5 * xBarScale.bandwidth() : xScale(d.x)); })
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
|
-
.y(function (d) { return yScale(d.y); });
|
|
52
|
-
var shouldHighlight = _this._legendHighlighted(lineLegendText) || _this._noLegendHighlighted() ? true : false;
|
|
53
|
-
var lineBorderWidth = ((_a = _this.props.lineOptions) === null || _a === void 0 ? void 0 : _a.lineBorderWidth)
|
|
54
|
-
? Number.parseFloat(_this.props.lineOptions.lineBorderWidth.toString())
|
|
55
|
-
: 0;
|
|
56
|
-
if (lineBorderWidth > 0) {
|
|
57
|
-
line.push(React.createElement("path", { opacity: shouldHighlight ? 1 : 0.1, d: linePath(lineData), fill: "transparent", strokeLinecap: "square", strokeWidth: 3 + lineBorderWidth * 2, stroke: theme.palette.white }));
|
|
58
|
-
}
|
|
59
|
-
line.push(React.createElement("path", { opacity: shouldHighlight ? 1 : 0.1, d: linePath(lineData), fill: "transparent", strokeLinecap: "square", strokeWidth: 3, stroke: lineLegendColor }));
|
|
60
|
-
var dots = lineData.map(function (item, index) {
|
|
61
|
-
var _a;
|
|
62
|
-
return (React.createElement("circle", { key: index, cx: !isNumericAxis ? xBarScale(item.x) + 0.5 * xBarScale.bandwidth() : xScale(item.x), cy: yScale(item.y), onMouseOver: _this._onBarHover.bind(_this, item.point, colorScale(item.y)), onMouseOut: _this._onBarLeave, r: 8, stroke: lineLegendColor, fill: _this.props.theme.palette.white, strokeWidth: 3, visibility: _this.state.activeXdataPoint === item.x ? CircleVisbility.show : CircleVisbility.hide, onClick: (_a = item.point.lineData) === null || _a === void 0 ? void 0 : _a.onClick }));
|
|
63
|
-
});
|
|
64
|
-
return (React.createElement(React.Fragment, null,
|
|
65
|
-
line,
|
|
66
|
-
dots));
|
|
67
|
-
};
|
|
68
|
-
_this._checkForLine = function () {
|
|
69
|
-
var data = _this.props.data;
|
|
70
|
-
return data.some(function (item) { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.lineData) === null || _a === void 0 ? void 0 : _a.y) !== undefined; });
|
|
71
|
-
};
|
|
72
|
-
_this._getMargins = function (margins) {
|
|
73
|
-
_this.margins = margins;
|
|
74
|
-
};
|
|
75
|
-
_this._renderContentForBothLineAndBars = function (point) {
|
|
76
|
-
var _a = _this._getCalloutContentForLineAndBar(point), YValueHover = _a.YValueHover, hoverXValue = _a.hoverXValue;
|
|
77
|
-
var content = YValueHover.map(function (item, index) {
|
|
78
|
-
return (React.createElement(ChartHoverCard, __assign({ key: index, Legend: item.legend }, (index === 0 && { XValue: "" + (hoverXValue || item.data) }), { color: item.color, YValue: item.data || item.y, culture: _this.props.culture })));
|
|
79
|
-
});
|
|
80
|
-
return React.createElement(React.Fragment, null, content);
|
|
81
|
-
};
|
|
82
|
-
_this._renderContentForOnlyBars = function (props) {
|
|
83
|
-
var _a = _this.props.useSingleColor, useSingleColor = _a === void 0 ? false : _a;
|
|
84
|
-
return (React.createElement(React.Fragment, null,
|
|
85
|
-
React.createElement(ChartHoverCard, { XValue: props.xAxisCalloutData || props.x, Legend: props.legend, YValue: props.yAxisCalloutData || props.y, color: !useSingleColor && props.color ? props.color : _this._createColors()(props.y), culture: _this.props.culture })));
|
|
86
|
-
};
|
|
87
|
-
_this._renderCallout = function (props) {
|
|
88
|
-
return props
|
|
89
|
-
? _this._isHavingLine
|
|
90
|
-
? _this._renderContentForBothLineAndBars(props)
|
|
91
|
-
: _this._renderContentForOnlyBars(props)
|
|
92
|
-
: null;
|
|
93
|
-
};
|
|
94
|
-
_this._getCustomizedCallout = function () {
|
|
95
|
-
return _this.props.onRenderCalloutPerDataPoint
|
|
96
|
-
? _this.props.onRenderCalloutPerDataPoint(_this.state.dataPointCalloutProps, _this._renderCallout)
|
|
97
|
-
: null;
|
|
98
|
-
};
|
|
99
|
-
_this._getGraphData = function (xScale, yScale, containerHeight, containerWidth, xElement) {
|
|
100
|
-
return (_this._bars =
|
|
101
|
-
_this._xAxisType === XAxisTypes.NumericAxis
|
|
102
|
-
? _this._createNumericBars(containerHeight, containerWidth, xElement)
|
|
103
|
-
: _this._createStringBars(containerHeight, containerWidth, xElement));
|
|
104
|
-
};
|
|
105
|
-
_this._refCallback = function (element, legendTitle) {
|
|
106
|
-
_this._refArray.push({ index: legendTitle, refElement: element });
|
|
107
|
-
};
|
|
108
|
-
_this._getCalloutContentForLineAndBar = function (point) {
|
|
109
|
-
var _a, _b, _c, _d;
|
|
110
|
-
var YValueHover = [];
|
|
111
|
-
var _e = _this.props, theme = _e.theme, _f = _e.useSingleColor, useSingleColor = _f === void 0 ? false : _f;
|
|
112
|
-
var _g = _this.props, data = _g.data, lineLegendText = _g.lineLegendText, _h = _g.lineLegendColor, lineLegendColor = _h === void 0 ? theme.palette.yellow : _h;
|
|
113
|
-
var selectedPoint = data.filter(function (xDataPoint) { return xDataPoint.x === point.x; });
|
|
114
|
-
// there might be no y value of the line for the hovered bar. so we need to check this condition
|
|
115
|
-
if (_this._isHavingLine && ((_a = selectedPoint[0].lineData) === null || _a === void 0 ? void 0 : _a.y) !== undefined) {
|
|
116
|
-
// callout data for the line
|
|
117
|
-
YValueHover.push({
|
|
118
|
-
legend: lineLegendText,
|
|
119
|
-
color: lineLegendColor,
|
|
120
|
-
y: (_b = selectedPoint[0].lineData) === null || _b === void 0 ? void 0 : _b.y,
|
|
121
|
-
data: (_c = selectedPoint[0].lineData) === null || _c === void 0 ? void 0 : _c.yAxisCalloutData,
|
|
122
|
-
yAxisCalloutData: (_d = selectedPoint[0].lineData) === null || _d === void 0 ? void 0 : _d.yAxisCalloutData,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
// callout data for the bar
|
|
126
|
-
YValueHover.push({
|
|
127
|
-
legend: selectedPoint[0].legend,
|
|
128
|
-
y: selectedPoint[0].y,
|
|
129
|
-
color: !useSingleColor
|
|
130
|
-
? selectedPoint[0].color
|
|
131
|
-
? selectedPoint[0].color
|
|
132
|
-
: _this._createColors()(selectedPoint[0].y)
|
|
133
|
-
: _this._createColors()(1),
|
|
134
|
-
data: selectedPoint[0].yAxisCalloutData,
|
|
135
|
-
yAxisCalloutData: selectedPoint[0].yAxisCalloutData,
|
|
136
|
-
});
|
|
137
|
-
return { YValueHover: YValueHover, hoverXValue: point.xAxisCalloutData || point.x.toString() };
|
|
138
|
-
};
|
|
139
|
-
_this._onBarLeave = function () {
|
|
140
|
-
/**/
|
|
141
|
-
};
|
|
142
|
-
_this._handleChartMouseLeave = function () {
|
|
143
|
-
_this._calloutAnchorPoint = null;
|
|
144
|
-
_this.setState({
|
|
145
|
-
isCalloutVisible: false,
|
|
146
|
-
activeXdataPoint: null,
|
|
147
|
-
YValueHover: [],
|
|
148
|
-
hoverXValue: '',
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
_this._onBarFocus = function (point, refArrayIndexNumber, color) {
|
|
152
|
-
var _a = _this._getCalloutContentForLineAndBar(point), YValueHover = _a.YValueHover, hoverXValue = _a.hoverXValue;
|
|
153
|
-
_this._refArray.forEach(function (obj, index) {
|
|
154
|
-
if (obj.index === point.legend && refArrayIndexNumber === index) {
|
|
155
|
-
_this.setState({
|
|
156
|
-
refSelected: obj.refElement,
|
|
157
|
-
/** Show the callout if highlighted bar is focused and Hide it if unhighlighted bar is focused */
|
|
158
|
-
isCalloutVisible: _this.state.selectedLegend === '' || _this.state.selectedLegend === point.legend,
|
|
159
|
-
calloutLegend: point.legend,
|
|
160
|
-
dataForHoverCard: point.y,
|
|
161
|
-
color: point.color || color,
|
|
162
|
-
xCalloutValue: point.xAxisCalloutData || point.x.toString(),
|
|
163
|
-
yCalloutValue: point.yAxisCalloutData,
|
|
164
|
-
dataPointCalloutProps: point,
|
|
165
|
-
activeXdataPoint: point.x,
|
|
166
|
-
YValueHover: YValueHover,
|
|
167
|
-
hoverXValue: hoverXValue,
|
|
168
|
-
callOutAccessibilityData: point.callOutAccessibilityData,
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
_this._getScales = function (containerHeight, containerWidth, isNumericScale) {
|
|
174
|
-
if (isNumericScale) {
|
|
175
|
-
var xMax = d3Max(_this._points, function (point) { return point.x; });
|
|
176
|
-
var xMin = d3Min(_this._points, function (point) { return point.x; });
|
|
177
|
-
var xBarScale = d3ScaleLinear()
|
|
178
|
-
.domain(_this._isRtl ? [xMax, xMin] : [xMin, xMax])
|
|
179
|
-
.nice()
|
|
180
|
-
.range([
|
|
181
|
-
_this.margins.left + _this._domainMargin,
|
|
182
|
-
containerWidth - _this.margins.right - _this._barWidth - _this._domainMargin,
|
|
183
|
-
]);
|
|
184
|
-
var yBarScale = d3ScaleLinear()
|
|
185
|
-
.domain([0, _this._yMax])
|
|
186
|
-
.range([0, containerHeight - _this.margins.bottom - _this.margins.top]);
|
|
187
|
-
return { xBarScale: xBarScale, yBarScale: yBarScale };
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
var xBarScale = d3ScaleBand()
|
|
191
|
-
.domain(_this._xAxisLabels)
|
|
192
|
-
.range([_this.margins.left + _this._domainMargin, containerWidth - _this.margins.right - _this._domainMargin])
|
|
193
|
-
.paddingInner(2 / 3);
|
|
194
|
-
var yBarScale = d3ScaleLinear()
|
|
195
|
-
.domain([0, _this._yMax])
|
|
196
|
-
.range([0, containerHeight - _this.margins.bottom - _this.margins.top]);
|
|
197
|
-
return { xBarScale: xBarScale, yBarScale: yBarScale };
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
_this._closeCallout = function () {
|
|
201
|
-
_this.setState({
|
|
202
|
-
isCalloutVisible: false,
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
_this._getLegendData = function (data, palette) {
|
|
206
|
-
var _a = _this.props, theme = _a.theme, useSingleColor = _a.useSingleColor;
|
|
207
|
-
var _b = _this.props, lineLegendText = _b.lineLegendText, _c = _b.lineLegendColor, lineLegendColor = _c === void 0 ? theme.palette.yellow : _c;
|
|
208
|
-
var actions = [];
|
|
209
|
-
data.forEach(function (point, _index) {
|
|
210
|
-
var color = !useSingleColor ? point.color : _this._createColors()(1);
|
|
211
|
-
// mapping data to the format Legends component needs
|
|
212
|
-
var legend = {
|
|
213
|
-
title: point.legend,
|
|
214
|
-
color: color,
|
|
215
|
-
action: function () {
|
|
216
|
-
_this._onLegendClick(point.legend);
|
|
217
|
-
},
|
|
218
|
-
hoverAction: function () {
|
|
219
|
-
_this._handleChartMouseLeave();
|
|
220
|
-
_this._onLegendHover(point.legend);
|
|
221
|
-
},
|
|
222
|
-
onMouseOutAction: function () {
|
|
223
|
-
_this._onLegendLeave();
|
|
224
|
-
},
|
|
225
|
-
};
|
|
226
|
-
actions.push(legend);
|
|
227
|
-
});
|
|
228
|
-
if (_this._isHavingLine && lineLegendText && lineLegendColor) {
|
|
229
|
-
var lineLegend = {
|
|
230
|
-
title: lineLegendText,
|
|
231
|
-
color: lineLegendColor,
|
|
232
|
-
action: function () {
|
|
233
|
-
_this._onLegendClick(lineLegendText);
|
|
234
|
-
},
|
|
235
|
-
hoverAction: function () {
|
|
236
|
-
_this._handleChartMouseLeave();
|
|
237
|
-
_this._onLegendHover(lineLegendText);
|
|
238
|
-
},
|
|
239
|
-
onMouseOutAction: function () {
|
|
240
|
-
_this._onLegendLeave();
|
|
241
|
-
},
|
|
242
|
-
isLineLegendInBarChart: true,
|
|
243
|
-
};
|
|
244
|
-
actions.unshift(lineLegend);
|
|
245
|
-
}
|
|
246
|
-
var legends = (React.createElement(Legends, __assign({ legends: actions, enabledWrapLines: _this.props.enabledLegendsWrapLines, overflowProps: _this.props.legendsOverflowProps, focusZonePropsInHoverCard: _this.props.focusZonePropsForLegendsInHoverCard, overflowText: _this.props.legendsOverflowText }, _this.props.legendProps)));
|
|
247
|
-
return legends;
|
|
248
|
-
};
|
|
249
|
-
_this._getAxisData = function (yAxisData) {
|
|
250
|
-
if (yAxisData && yAxisData.yAxisDomainValues.length) {
|
|
251
|
-
var domainValue = yAxisData.yAxisDomainValues;
|
|
252
|
-
_this._yMax = Math.max(domainValue[domainValue.length - 1], _this.props.yMaxValue || 0);
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* This function checks if the given legend is highlighted or not.
|
|
257
|
-
* A legend can be highlighted in 2 ways:
|
|
258
|
-
* 1. selection: if the user clicks on it
|
|
259
|
-
* 2. hovering: if there is no selected legend and the user hovers over it
|
|
260
|
-
*/
|
|
261
|
-
_this._legendHighlighted = function (legendTitle) {
|
|
262
|
-
return (_this.state.selectedLegend === legendTitle ||
|
|
263
|
-
(_this.state.selectedLegend === '' && _this.state.activeLegend === legendTitle));
|
|
264
|
-
};
|
|
265
|
-
/**
|
|
266
|
-
* This function checks if none of the legends is selected or hovered.
|
|
267
|
-
*/
|
|
268
|
-
_this._noLegendHighlighted = function () {
|
|
269
|
-
return _this.state.selectedLegend === '' && _this.state.activeLegend === '';
|
|
270
|
-
};
|
|
271
|
-
_this._getAriaLabel = function (point) {
|
|
272
|
-
var _a, _b, _c;
|
|
273
|
-
var xValue = point.xAxisCalloutData || point.x;
|
|
274
|
-
var legend = point.legend;
|
|
275
|
-
var yValue = point.yAxisCalloutData || point.y;
|
|
276
|
-
var lineLegend = _this.props.lineLegendText || 'Line';
|
|
277
|
-
var lineYValue = ((_a = point.lineData) === null || _a === void 0 ? void 0 : _a.yAxisCalloutData) || ((_b = point.lineData) === null || _b === void 0 ? void 0 : _b.y);
|
|
278
|
-
return (((_c = point.callOutAccessibilityData) === null || _c === void 0 ? void 0 : _c.ariaLabel) ||
|
|
279
|
-
xValue + ". " +
|
|
280
|
-
(legend ? legend + ", " : '') +
|
|
281
|
-
(yValue + ".") +
|
|
282
|
-
(typeof lineYValue !== 'undefined' ? " " + lineLegend + ", " + lineYValue + "." : ''));
|
|
283
|
-
};
|
|
284
|
-
_this._getDomainMargins = function (containerWidth) {
|
|
285
|
-
if (_this._xAxisType !== XAxisTypes.NumericAxis) {
|
|
286
|
-
/** Total width available to render the bars */
|
|
287
|
-
var totalWidth = containerWidth - (_this.margins.left + MIN_DOMAIN_MARGIN) - (_this.margins.right + MIN_DOMAIN_MARGIN);
|
|
288
|
-
var barWidth = Math.min(_this.props.barWidth || 16, 24);
|
|
289
|
-
/** Total width required to render the bars. Directly proportional to bar width */
|
|
290
|
-
var reqWidth = (3 * _this._xAxisLabels.length - 2) * barWidth;
|
|
291
|
-
_this._domainMargin = MIN_DOMAIN_MARGIN;
|
|
292
|
-
if (totalWidth >= reqWidth) {
|
|
293
|
-
// Center align the chart by setting equal left and right margins for domain
|
|
294
|
-
_this._domainMargin += (totalWidth - reqWidth) / 2;
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
/** Maximum possible bar width to maintain 2:1 spacing */
|
|
298
|
-
var maxBandwidth = totalWidth / (3 * _this._xAxisLabels.length - 2);
|
|
299
|
-
barWidth = maxBandwidth;
|
|
300
|
-
}
|
|
301
|
-
_this._barWidth = barWidth;
|
|
302
|
-
}
|
|
303
|
-
return __assign(__assign({}, _this.margins), { left: _this.margins.left + _this._domainMargin, right: _this.margins.right + _this._domainMargin });
|
|
304
|
-
};
|
|
305
|
-
_this.state = {
|
|
306
|
-
color: '',
|
|
307
|
-
dataForHoverCard: 0,
|
|
308
|
-
isCalloutVisible: false,
|
|
309
|
-
refSelected: null,
|
|
310
|
-
selectedLegend: '',
|
|
311
|
-
activeLegend: '',
|
|
312
|
-
xCalloutValue: '',
|
|
313
|
-
yCalloutValue: '',
|
|
314
|
-
activeXdataPoint: null,
|
|
315
|
-
YValueHover: [],
|
|
316
|
-
hoverXValue: '',
|
|
317
|
-
calloutLegend: '',
|
|
318
|
-
emptyChart: false,
|
|
319
|
-
};
|
|
320
|
-
_this._isHavingLine = _this._checkForLine();
|
|
321
|
-
_this._calloutId = getId('callout');
|
|
322
|
-
_this._tooltipId = getId('VCTooltipID_');
|
|
323
|
-
_this._refArray = [];
|
|
324
|
-
_this._xAxisType =
|
|
325
|
-
_this.props.data && _this.props.data.length > 0
|
|
326
|
-
? getTypeOfAxis(_this.props.data[0].x, true)
|
|
327
|
-
: XAxisTypes.StringAxis;
|
|
328
|
-
_this._domainMargin = MIN_DOMAIN_MARGIN;
|
|
329
|
-
return _this;
|
|
330
|
-
}
|
|
331
|
-
VerticalBarChartBase.prototype.componentDidMount = function () {
|
|
332
|
-
var isChartEmpty = this.state.emptyChart ||
|
|
333
|
-
this._points.length === 0 ||
|
|
334
|
-
(d3Max(this._points, function (point) { return point.y; }) <= 0 && !this._isHavingLine);
|
|
335
|
-
if (this.state.emptyChart !== isChartEmpty) {
|
|
336
|
-
this.setState({ emptyChart: isChartEmpty });
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
VerticalBarChartBase.prototype.render = function () {
|
|
340
|
-
var _this = this;
|
|
341
|
-
this._adjustProps();
|
|
342
|
-
this._xAxisLabels = this._points.map(function (point) { return point.x; });
|
|
343
|
-
this._yMax = Math.max(d3Max(this._points, function (point) { return point.y; }), this.props.yMaxValue || 0);
|
|
344
|
-
var legendBars = this._getLegendData(this._points, this.props.theme.palette);
|
|
345
|
-
this._classNames = getClassNames(this.props.styles, {
|
|
346
|
-
theme: this.props.theme,
|
|
347
|
-
legendColor: this.state.color,
|
|
348
|
-
});
|
|
349
|
-
var calloutProps = __assign(__assign(__assign(__assign({ isCalloutVisible: this.state.isCalloutVisible, directionalHint: DirectionalHint.topAutoEdge, id: "toolTip" + this._calloutId, target: this.state.refSelected, isBeakVisible: false }, (this._isHavingLine && {
|
|
350
|
-
YValueHover: this.state.YValueHover,
|
|
351
|
-
hoverXValue: this.state.hoverXValue,
|
|
352
|
-
})), { gapSpace: 15, color: this.state.color, legend: this.state.calloutLegend, XValue: this.state.xCalloutValue, YValue: this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard, onDismiss: this._closeCallout, preventDismissOnLostFocus: true }), this.props.calloutProps), getAccessibleDataObject(this.state.callOutAccessibilityData));
|
|
353
|
-
var tickParams = {
|
|
354
|
-
tickValues: this.props.tickValues,
|
|
355
|
-
tickFormat: this.props.tickFormat,
|
|
356
|
-
};
|
|
357
|
-
return !this.state.emptyChart ? (React.createElement(CartesianChart, __assign({}, this.props, { points: this._points, chartType: ChartTypes.VerticalBarChart, xAxisType: this._xAxisType, calloutProps: calloutProps, tickParams: tickParams }, (this._isHavingLine && { isCalloutForStack: true }), { legendBars: legendBars, datasetForXAxisDomain: this._xAxisLabels, barwidth: this._barWidth, focusZoneDirection: FocusZoneDirection.horizontal, customizedCallout: this._getCustomizedCallout(), getmargins: this._getMargins, getGraphData: this._getGraphData, getAxisData: this._getAxisData, onChartMouseLeave: this._handleChartMouseLeave, getDomainMargins: this._getDomainMargins }, (this._xAxisType !== XAxisTypes.NumericAxis && { xAxisInnerPadding: 2 / 3, xAxisOuterPadding: 0 }), {
|
|
358
|
-
/* eslint-disable react/jsx-no-bind */
|
|
359
|
-
// eslint-disable-next-line react/no-children-prop
|
|
360
|
-
children: function (props) {
|
|
361
|
-
return (React.createElement(React.Fragment, null,
|
|
362
|
-
React.createElement("g", null, _this._bars),
|
|
363
|
-
_this._isHavingLine && (React.createElement("g", null, _this._createLine(props.xScale, props.yScale, props.containerHeight, props.containerWidth)))));
|
|
364
|
-
} }))) : (React.createElement("div", { id: getId('_VBC_'), role: 'alert', style: { opacity: '0' }, "aria-label": 'Graph has no data to display' }));
|
|
365
|
-
};
|
|
366
|
-
VerticalBarChartBase.prototype._adjustProps = function () {
|
|
367
|
-
this._points = this.props.data || [];
|
|
368
|
-
this._barWidth = this.props.barWidth || 16;
|
|
369
|
-
var palette = this.props.theme.palette;
|
|
370
|
-
this._colors = this.props.colors || [palette.blueLight, palette.blue, palette.blueMid, palette.blueDark];
|
|
371
|
-
this._isHavingLine = this._checkForLine();
|
|
372
|
-
};
|
|
373
|
-
VerticalBarChartBase.prototype._createColors = function () {
|
|
374
|
-
var _this = this;
|
|
375
|
-
var increment = this._colors.length <= 1 ? 1 : 1 / (this._colors.length - 1);
|
|
376
|
-
var _a = this.props.useSingleColor, useSingleColor = _a === void 0 ? false : _a;
|
|
377
|
-
if (useSingleColor) {
|
|
378
|
-
return function (_p) {
|
|
379
|
-
var _a = _this.props, theme = _a.theme, colors = _a.colors;
|
|
380
|
-
return colors && colors.length > 0 ? colors[0] : theme.palette.blueLight;
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
var domainValues = [];
|
|
384
|
-
for (var i = 0; i < this._colors.length; i++) {
|
|
385
|
-
domainValues.push(increment * i * this._yMax);
|
|
386
|
-
}
|
|
387
|
-
var colorScale = d3ScaleLinear().domain(domainValues).range(this._colors);
|
|
388
|
-
return colorScale;
|
|
389
|
-
};
|
|
390
|
-
VerticalBarChartBase.prototype._onBarHover = function (point, color, mouseEvent) {
|
|
391
|
-
mouseEvent.persist();
|
|
392
|
-
var _a = this._getCalloutContentForLineAndBar(point), YValueHover = _a.YValueHover, hoverXValue = _a.hoverXValue;
|
|
393
|
-
if (this._calloutAnchorPoint !== point) {
|
|
394
|
-
this._calloutAnchorPoint = point;
|
|
395
|
-
this.setState({
|
|
396
|
-
refSelected: mouseEvent,
|
|
397
|
-
/** Show the callout if highlighted bar is hovered and Hide it if unhighlighted bar is hovered */
|
|
398
|
-
isCalloutVisible: this.state.selectedLegend === '' || this.state.selectedLegend === point.legend,
|
|
399
|
-
dataForHoverCard: point.y,
|
|
400
|
-
calloutLegend: point.legend,
|
|
401
|
-
color: point.color || color,
|
|
402
|
-
// To display callout value, if no callout value given, taking given point.x value as a string.
|
|
403
|
-
xCalloutValue: point.xAxisCalloutData || point.x.toString(),
|
|
404
|
-
yCalloutValue: point.yAxisCalloutData,
|
|
405
|
-
dataPointCalloutProps: point,
|
|
406
|
-
activeXdataPoint: point.x,
|
|
407
|
-
YValueHover: YValueHover,
|
|
408
|
-
hoverXValue: hoverXValue,
|
|
409
|
-
callOutAccessibilityData: point.callOutAccessibilityData,
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
|
-
VerticalBarChartBase.prototype._createNumericBars = function (containerHeight, containerWidth, xElement) {
|
|
414
|
-
var _this = this;
|
|
415
|
-
var _a = this.props.useSingleColor, useSingleColor = _a === void 0 ? false : _a;
|
|
416
|
-
var _b = this._getScales(containerHeight, containerWidth, true), xBarScale = _b.xBarScale, yBarScale = _b.yBarScale;
|
|
417
|
-
var colorScale = this._createColors();
|
|
418
|
-
var bars = this._points.map(function (point, index) {
|
|
419
|
-
var shouldHighlight = _this._legendHighlighted(point.legend) || _this._noLegendHighlighted() ? true : false;
|
|
420
|
-
_this._classNames = getClassNames(_this.props.styles, {
|
|
421
|
-
theme: _this.props.theme,
|
|
422
|
-
legendColor: _this.state.color,
|
|
423
|
-
shouldHighlight: shouldHighlight,
|
|
424
|
-
});
|
|
425
|
-
var barHeight = Math.max(yBarScale(point.y), 0);
|
|
426
|
-
if (barHeight < 1) {
|
|
427
|
-
return React.createElement(React.Fragment, { key: point.x }, " ");
|
|
428
|
-
}
|
|
429
|
-
var xPoint = xBarScale(point.x);
|
|
430
|
-
var yPoint = containerHeight - _this.margins.bottom - yBarScale(point.y);
|
|
431
|
-
return (React.createElement("g", { key: point.x },
|
|
432
|
-
React.createElement("rect", { x: xPoint, className: _this._classNames.opacityChangeOnHover, y: yPoint, width: _this._barWidth, "data-is-focusable": !_this.props.hideTooltip, height: barHeight, ref: function (e) {
|
|
433
|
-
_this._refCallback(e, point.legend);
|
|
434
|
-
}, onClick: point.onClick, onMouseOver: _this._onBarHover.bind(_this, point, colorScale(point.y)), "aria-label": _this._getAriaLabel(point), role: "img", onMouseLeave: _this._onBarLeave, onFocus: _this._onBarFocus.bind(_this, point, index, colorScale(point.y)), onBlur: _this._onBarLeave, fill: point.color && !useSingleColor ? point.color : colorScale(point.y) }),
|
|
435
|
-
_this._renderBarLabel(xPoint, yPoint, point.y)));
|
|
436
|
-
});
|
|
437
|
-
// Removing un wanted tooltip div from DOM, when prop not provided.
|
|
438
|
-
if (!this.props.showXAxisLablesTooltip) {
|
|
439
|
-
try {
|
|
440
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
441
|
-
// eslint-disable-next-line no-empty
|
|
442
|
-
}
|
|
443
|
-
catch (e) { }
|
|
444
|
-
}
|
|
445
|
-
// Used to display tooltip at x axis labels.
|
|
446
|
-
if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
|
|
447
|
-
var xAxisElement = d3Select(xElement).call(xBarScale);
|
|
448
|
-
try {
|
|
449
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
450
|
-
// eslint-disable-next-line no-empty
|
|
451
|
-
}
|
|
452
|
-
catch (e) { }
|
|
453
|
-
var tooltipProps = {
|
|
454
|
-
tooltipCls: this._classNames.tooltip,
|
|
455
|
-
id: this._tooltipId,
|
|
456
|
-
xAxis: xAxisElement,
|
|
457
|
-
};
|
|
458
|
-
xAxisElement && tooltipOfXAxislabels(tooltipProps);
|
|
459
|
-
}
|
|
460
|
-
return bars;
|
|
461
|
-
};
|
|
462
|
-
VerticalBarChartBase.prototype._createStringBars = function (containerHeight, containerWidth, xElement) {
|
|
463
|
-
var _this = this;
|
|
464
|
-
var _a = this._getScales(containerHeight, containerWidth, false), xBarScale = _a.xBarScale, yBarScale = _a.yBarScale;
|
|
465
|
-
var colorScale = this._createColors();
|
|
466
|
-
var bars = this._points.map(function (point, index) {
|
|
467
|
-
var barHeight = Math.max(yBarScale(point.y), 0);
|
|
468
|
-
if (barHeight < 1) {
|
|
469
|
-
return React.createElement(React.Fragment, { key: point.x }, " ");
|
|
470
|
-
}
|
|
471
|
-
var xPoint = xBarScale(point.x);
|
|
472
|
-
var yPoint = containerHeight - _this.margins.bottom - yBarScale(point.y);
|
|
473
|
-
return (React.createElement("g", { key: point.x, transform: "translate(" + 0.5 * (xBarScale.bandwidth() - _this._barWidth) + ", 0)" },
|
|
474
|
-
React.createElement("rect", { x: xPoint, y: yPoint, width: _this._barWidth, height: barHeight, "aria-label": _this._getAriaLabel(point), role: "img", ref: function (e) {
|
|
475
|
-
_this._refCallback(e, point.legend);
|
|
476
|
-
}, onClick: point.onClick, onMouseOver: _this._onBarHover.bind(_this, point, colorScale(point.y)), onMouseLeave: _this._onBarLeave, onBlur: _this._onBarLeave, "data-is-focusable": !_this.props.hideTooltip, onFocus: _this._onBarFocus.bind(_this, point, index, colorScale(point.y)), fill: point.color ? point.color : colorScale(point.y) }),
|
|
477
|
-
_this._renderBarLabel(xPoint, yPoint, point.y)));
|
|
478
|
-
});
|
|
479
|
-
// Removing un wanted tooltip div from DOM, when prop not provided.
|
|
480
|
-
if (!this.props.showXAxisLablesTooltip) {
|
|
481
|
-
try {
|
|
482
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
483
|
-
// eslint-disable-next-line no-empty
|
|
484
|
-
}
|
|
485
|
-
catch (e) { }
|
|
486
|
-
}
|
|
487
|
-
// Used to display tooltip at x axis labels.
|
|
488
|
-
if (!this.props.wrapXAxisLables && this.props.showXAxisLablesTooltip) {
|
|
489
|
-
var xAxisElement = d3Select(xElement).call(xBarScale);
|
|
490
|
-
try {
|
|
491
|
-
document.getElementById(this._tooltipId) && document.getElementById(this._tooltipId).remove();
|
|
492
|
-
// eslint-disable-next-line no-empty
|
|
493
|
-
}
|
|
494
|
-
catch (e) { }
|
|
495
|
-
var tooltipProps = {
|
|
496
|
-
tooltipCls: this._classNames.tooltip,
|
|
497
|
-
id: this._tooltipId,
|
|
498
|
-
xAxis: xAxisElement,
|
|
499
|
-
showTooltip: this.props.showXAxisLablesTooltip,
|
|
500
|
-
};
|
|
501
|
-
xAxisElement && tooltipOfXAxislabels(tooltipProps);
|
|
502
|
-
}
|
|
503
|
-
return bars;
|
|
504
|
-
};
|
|
505
|
-
VerticalBarChartBase.prototype._onLegendClick = function (legendTitle) {
|
|
506
|
-
if (this.state.selectedLegend === legendTitle) {
|
|
507
|
-
this.setState({
|
|
508
|
-
selectedLegend: '',
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
else {
|
|
512
|
-
this.setState({
|
|
513
|
-
selectedLegend: legendTitle,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
VerticalBarChartBase.prototype._onLegendHover = function (legendTitle) {
|
|
518
|
-
this.setState({
|
|
519
|
-
activeLegend: legendTitle,
|
|
520
|
-
});
|
|
521
|
-
};
|
|
522
|
-
VerticalBarChartBase.prototype._onLegendLeave = function () {
|
|
523
|
-
this.setState({
|
|
524
|
-
activeLegend: '',
|
|
525
|
-
});
|
|
526
|
-
};
|
|
527
|
-
VerticalBarChartBase.prototype._renderBarLabel = function (xPoint, yPoint, barValue) {
|
|
528
|
-
if (this.props.hideLabels || this._barWidth < 16) {
|
|
529
|
-
return null;
|
|
530
|
-
}
|
|
531
|
-
return (React.createElement("text", { x: xPoint + this._barWidth / 2, y: yPoint - 6, textAnchor: "middle", className: this._classNames.barLabel, "aria-hidden": true }, d3FormatPrefix(barValue < 1000 ? '.2~' : '.1', barValue)(barValue)));
|
|
532
|
-
};
|
|
533
|
-
return VerticalBarChartBase;
|
|
534
|
-
}(React.Component));
|
|
535
|
-
export { VerticalBarChartBase };
|
|
536
|
-
//# sourceMappingURL=VerticalBarChart.base.js.map
|