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