@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,674 +0,0 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { classNamesFunction, getId, getRTL, memoizeFunction } from '@fluentui/react/lib/Utilities';
|
|
4
|
-
import * as d3Sankey from 'd3-sankey';
|
|
5
|
-
import { area as d3Area, curveBumpX as d3CurveBasis } from 'd3-shape';
|
|
6
|
-
import { sum as d3Sum } from 'd3-array';
|
|
7
|
-
import { ChartHoverCard } from '../../index';
|
|
8
|
-
import { Callout, DirectionalHint } from '@fluentui/react/lib/Callout';
|
|
9
|
-
import { select, selectAll } from 'd3-selection';
|
|
10
|
-
import { FocusZone, FocusZoneDirection, FocusZoneTabbableElements } from '@fluentui/react-focus';
|
|
11
|
-
var getClassNames = classNamesFunction();
|
|
12
|
-
var PADDING_PERCENTAGE = 0.3;
|
|
13
|
-
var NON_SELECTED_NODE_AND_STREAM_COLOR = '#757575';
|
|
14
|
-
var DEFAULT_NODE_COLORS = [
|
|
15
|
-
{ fillColor: '#00758F', borderColor: '#002E39' },
|
|
16
|
-
{ fillColor: '#77004D', borderColor: '#43002C' },
|
|
17
|
-
{ fillColor: '#4F6BED', borderColor: '#3B52B4' },
|
|
18
|
-
{ fillColor: '#937600', borderColor: '#6D5700' },
|
|
19
|
-
{ fillColor: '#286EA8', borderColor: '#00457E' },
|
|
20
|
-
{ fillColor: '#A43FB1', borderColor: '#7C158A' },
|
|
21
|
-
{ fillColor: '#CC3595', borderColor: '#7F215D' },
|
|
22
|
-
{ fillColor: '#0E7878', borderColor: '#004E4E' },
|
|
23
|
-
{ fillColor: '#8764B8', borderColor: '#4B3867' },
|
|
24
|
-
{ fillColor: '#9C663F', borderColor: '#6D4123' },
|
|
25
|
-
];
|
|
26
|
-
var MIN_HEIGHT_FOR_DOUBLINE_TYPE = 36;
|
|
27
|
-
var MIN_HEIGHT_FOR_TYPE = 24;
|
|
28
|
-
var REST_STREAM_OPACITY = 1;
|
|
29
|
-
var NON_SELECTED_OPACITY = 1;
|
|
30
|
-
var SELECTED_STREAM_OPACITY = 0.3;
|
|
31
|
-
var NON_SELECTED_STREAM_BORDER_OPACITY = 0.5;
|
|
32
|
-
var DEFAULT_TEXT_COLOR = '#323130';
|
|
33
|
-
var NON_SELECTED_TEXT_COLOR = '#FFFFFF';
|
|
34
|
-
var SankeyChartBase = /** @class */ (function (_super) {
|
|
35
|
-
__extends(SankeyChartBase, _super);
|
|
36
|
-
function SankeyChartBase(props) {
|
|
37
|
-
var _this = _super.call(this, props) || this;
|
|
38
|
-
_this._isRtl = getRTL();
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
|
-
_this._onCloseCallout = function () {
|
|
41
|
-
_this.setState({
|
|
42
|
-
isCalloutVisible: false,
|
|
43
|
-
refSelected: undefined,
|
|
44
|
-
descriptionMessage: '',
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
_this._onBlur = function () {
|
|
48
|
-
/**/
|
|
49
|
-
};
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
|
-
_this._fillNodeColors = function (singleNode) {
|
|
52
|
-
if (!_this.state.selectedState) {
|
|
53
|
-
return singleNode.color;
|
|
54
|
-
}
|
|
55
|
-
else if (_this.state.selectedState && _this.state.selectedNodes.has(singleNode.index) && _this.state.selectedNode) {
|
|
56
|
-
return _this.state.selectedNode.color;
|
|
57
|
-
}
|
|
58
|
-
else if (_this.state.selectedState && !_this.state.selectedNode) {
|
|
59
|
-
return singleNode.color;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
63
|
-
_this._fillNodeBorder = function (singleNode) {
|
|
64
|
-
if (!_this.state.selectedState) {
|
|
65
|
-
return singleNode.borderColor;
|
|
66
|
-
}
|
|
67
|
-
else if (_this.state.selectedState && _this.state.selectedNodes.has(singleNode.index) && _this.state.selectedNode) {
|
|
68
|
-
return _this.state.selectedNode.borderColor;
|
|
69
|
-
}
|
|
70
|
-
else if (_this.state.selectedState && _this.state.selectedNodes.has(singleNode.index)) {
|
|
71
|
-
return singleNode.borderColor;
|
|
72
|
-
}
|
|
73
|
-
return singleNode.borderColor;
|
|
74
|
-
};
|
|
75
|
-
_this.state = {
|
|
76
|
-
containerHeight: 468,
|
|
77
|
-
containerWidth: 912,
|
|
78
|
-
selectedState: false,
|
|
79
|
-
selectedLinks: new Set(),
|
|
80
|
-
selectedNodes: new Set(),
|
|
81
|
-
shouldOverflow: false,
|
|
82
|
-
isCalloutVisible: false,
|
|
83
|
-
};
|
|
84
|
-
_this._calloutId = getId('callout');
|
|
85
|
-
_this._linkId = getId('link');
|
|
86
|
-
_this._margins = { top: 36, right: 48, bottom: 32, left: 48 };
|
|
87
|
-
_this._preRenderLayout();
|
|
88
|
-
_this._normalizeData = memoizeFunction(function (data) { return _this._normalizeSankeyData(data); });
|
|
89
|
-
return _this;
|
|
90
|
-
}
|
|
91
|
-
SankeyChartBase.prototype.componentDidMount = function () {
|
|
92
|
-
this._fitParentContainer();
|
|
93
|
-
};
|
|
94
|
-
SankeyChartBase.prototype.componentDidUpdate = function (prevProps) {
|
|
95
|
-
if (prevProps.shouldResize !== this.props.shouldResize) {
|
|
96
|
-
this._fitParentContainer();
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
SankeyChartBase.prototype.componentWillUnmount = function () {
|
|
100
|
-
cancelAnimationFrame(this._reqID);
|
|
101
|
-
};
|
|
102
|
-
SankeyChartBase.prototype.render = function () {
|
|
103
|
-
var _this = this;
|
|
104
|
-
var _a = this.props, theme = _a.theme, className = _a.className, styles = _a.styles, pathColor = _a.pathColor;
|
|
105
|
-
this._classNames = getClassNames(styles, {
|
|
106
|
-
theme: theme,
|
|
107
|
-
width: this.state.containerWidth,
|
|
108
|
-
height: this.state.containerHeight,
|
|
109
|
-
pathColor: pathColor,
|
|
110
|
-
className: className,
|
|
111
|
-
});
|
|
112
|
-
// We are using the this._margins.left and this._margins.top in sankey extent while constructing the layout
|
|
113
|
-
var _b = this._preRenderLayout(), height = _b.height, width = _b.width;
|
|
114
|
-
this._normalizeData(this.props.data.SankeyChartData);
|
|
115
|
-
var nodePadding = 8;
|
|
116
|
-
nodePadding = this._adjustPadding(this._sankey, height - 6, this._nodesInColumn);
|
|
117
|
-
this._sankey.nodePadding(nodePadding);
|
|
118
|
-
this._sankey(this.props.data.SankeyChartData);
|
|
119
|
-
this._populateNodeActualValue(this.props.data.SankeyChartData);
|
|
120
|
-
this._assignNodeColors();
|
|
121
|
-
var nodeData = this._createNodes(width);
|
|
122
|
-
var linkData = this._createLinks();
|
|
123
|
-
var calloutProps = {
|
|
124
|
-
isCalloutVisible: this.state.isCalloutVisible,
|
|
125
|
-
directionalHint: DirectionalHint.topAutoEdge,
|
|
126
|
-
id: "toolTip" + this._calloutId,
|
|
127
|
-
target: this.state.refSelected,
|
|
128
|
-
color: this.state.color,
|
|
129
|
-
XValue: this.state.xCalloutValue,
|
|
130
|
-
YValue: this.state.yCalloutValue ? this.state.yCalloutValue : this.state.dataForHoverCard,
|
|
131
|
-
descriptionMessage: this.state.descriptionMessage,
|
|
132
|
-
isBeakVisible: false,
|
|
133
|
-
gapSpace: 15,
|
|
134
|
-
onDismiss: this._onCloseCallout,
|
|
135
|
-
className: this._classNames.calloutContentRoot,
|
|
136
|
-
preventDismissOnLostFocus: true,
|
|
137
|
-
};
|
|
138
|
-
return (React.createElement("div", { className: this._classNames.root, role: 'presentation', ref: function (rootElem) { return (_this.chartContainer = rootElem); }, onMouseLeave: this._onCloseCallout },
|
|
139
|
-
React.createElement(FocusZone, { direction: FocusZoneDirection.bidirectional, isCircularNavigation: true, handleTabKey: FocusZoneTabbableElements.all },
|
|
140
|
-
React.createElement("svg", { width: width, height: height, id: getId('sankeyChart') },
|
|
141
|
-
React.createElement("g", { className: this._classNames.links, strokeOpacity: 1 }, linkData),
|
|
142
|
-
React.createElement("g", { className: this._classNames.nodes }, nodeData),
|
|
143
|
-
calloutProps.isCalloutVisible && (React.createElement(Callout, __assign({}, calloutProps),
|
|
144
|
-
React.createElement(ChartHoverCard, { XValue: calloutProps.XValue, YValue: calloutProps.YValue, color: calloutProps.color, descriptionMessage: calloutProps.descriptionMessage ? calloutProps.descriptionMessage : '' })))))));
|
|
145
|
-
};
|
|
146
|
-
SankeyChartBase.prototype._preRenderLayout = function () {
|
|
147
|
-
var width = this.state.containerWidth - this._margins.right;
|
|
148
|
-
var height = this.state.containerHeight - this._margins.bottom > 0 ? this.state.containerHeight - this._margins.bottom : 0;
|
|
149
|
-
this._sankey = d3Sankey
|
|
150
|
-
.sankey()
|
|
151
|
-
.nodeWidth(124)
|
|
152
|
-
.extent([
|
|
153
|
-
[this._margins.left, this._margins.top],
|
|
154
|
-
[width - 1, height - 6],
|
|
155
|
-
])
|
|
156
|
-
.nodeAlign(this._isRtl ? d3Sankey.sankeyRight : d3Sankey.sankeyJustify);
|
|
157
|
-
return { height: height, width: width };
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* This is used for calculating the node non normalized value based on link non normalized value.
|
|
161
|
-
*
|
|
162
|
-
*/
|
|
163
|
-
SankeyChartBase.prototype._populateNodeActualValue = function (data) {
|
|
164
|
-
data.links.forEach(function (link) {
|
|
165
|
-
if (!link.unnormalizedValue) {
|
|
166
|
-
link.unnormalizedValue = link.value;
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
data.nodes.forEach(function (node) {
|
|
170
|
-
node.actualValue = Math.max(d3Sum(node.sourceLinks, function (link) { return link.unnormalizedValue; }), d3Sum(node.targetLinks, function (link) { return link.unnormalizedValue; }));
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
SankeyChartBase.prototype._normalizeSankeyData = function (data) {
|
|
174
|
-
this._nodesInColumn = this._populateNodeInColumns(data, this._sankey);
|
|
175
|
-
this._adjustOnePercentHeightNodes(this._nodesInColumn);
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* This is used to group nodes by column index.
|
|
180
|
-
*/
|
|
181
|
-
SankeyChartBase.prototype._populateNodeInColumns = function (graph, sankey) {
|
|
182
|
-
sankey(graph);
|
|
183
|
-
var nodesInColumn = {};
|
|
184
|
-
graph.nodes.forEach(function (node) {
|
|
185
|
-
var columnId = node.layer;
|
|
186
|
-
if (nodesInColumn[columnId]) {
|
|
187
|
-
nodesInColumn[columnId].push(node);
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
nodesInColumn[columnId] = [node];
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
return nodesInColumn;
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* This is used to normalize the nodes value whose value is less than 1% of the total column value.
|
|
197
|
-
*
|
|
198
|
-
*/
|
|
199
|
-
SankeyChartBase.prototype._adjustOnePercentHeightNodes = function (nodesInColumn) {
|
|
200
|
-
var _this = this;
|
|
201
|
-
var totalColumnValue = Object.values(nodesInColumn).map(function (column) {
|
|
202
|
-
return d3Sum(column, function (node) { return node.value; });
|
|
203
|
-
});
|
|
204
|
-
totalColumnValue.forEach(function (columnValue, index) {
|
|
205
|
-
var totalPercentage = 0;
|
|
206
|
-
nodesInColumn[index].forEach(function (node) {
|
|
207
|
-
var nodePercentage = (node.value / columnValue) * 100;
|
|
208
|
-
node.actualValue = node.value;
|
|
209
|
-
//if the value is less than 1% then we are making it as 1% of total .
|
|
210
|
-
if (nodePercentage < 1) {
|
|
211
|
-
node.value = 0.01 * columnValue;
|
|
212
|
-
totalPercentage = totalPercentage + 1;
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
totalPercentage = totalPercentage + nodePercentage;
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
//since we have adjusted the value to be 1% but we need to keep the sum of the percentage value under 100.
|
|
219
|
-
var scalingRatio = totalPercentage !== 0 ? totalPercentage / 100 : 1;
|
|
220
|
-
if (scalingRatio > 1) {
|
|
221
|
-
nodesInColumn[index].forEach(function (node) {
|
|
222
|
-
node.value = node.value / scalingRatio;
|
|
223
|
-
_this._changeColumnValue(node, node.actualValue, node.value);
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
*
|
|
230
|
-
* This is used for normalizing each links value for reflecting the normalized node value.
|
|
231
|
-
*/
|
|
232
|
-
SankeyChartBase.prototype._changeColumnValue = function (node, originalValue, normalizedValue) {
|
|
233
|
-
node.sourceLinks.forEach(function (link) {
|
|
234
|
-
link.unnormalizedValue = link.value;
|
|
235
|
-
var linkRatio = link.value / originalValue;
|
|
236
|
-
link.value = normalizedValue * linkRatio;
|
|
237
|
-
});
|
|
238
|
-
node.targetLinks.forEach(function (link) {
|
|
239
|
-
link.unnormalizedValue = link.value;
|
|
240
|
-
var linkRatio = link.value / originalValue;
|
|
241
|
-
link.value = normalizedValue * linkRatio;
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
*
|
|
246
|
-
* This is used to introduce dynamic padding for cases where the number of nodes in a column is huge
|
|
247
|
-
* so that we maintain a node to space ratio for such columns as if we fail to do so the
|
|
248
|
-
* chart is devoid of nodes and only shows links.
|
|
249
|
-
*/
|
|
250
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
251
|
-
SankeyChartBase.prototype._adjustPadding = function (sankey, height, nodesInColumn) {
|
|
252
|
-
var padding = this._sankey.nodePadding();
|
|
253
|
-
Object.values(nodesInColumn).forEach(function (column) {
|
|
254
|
-
var minPadding = PADDING_PERCENTAGE * height;
|
|
255
|
-
var toatlPaddingInColumn = height - d3Sum(column, function (node) { return node.y1 - node.y0; });
|
|
256
|
-
if (minPadding < toatlPaddingInColumn) {
|
|
257
|
-
//Here we are calculating the min of default and calculated padding, we will not increase the padding
|
|
258
|
-
//in any scenario.
|
|
259
|
-
padding = Math.min(padding, minPadding / (column.length - 1));
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
return padding;
|
|
263
|
-
};
|
|
264
|
-
SankeyChartBase.prototype._createLinks = function () {
|
|
265
|
-
var _this = this;
|
|
266
|
-
var links = [];
|
|
267
|
-
if (this.props.data.SankeyChartData) {
|
|
268
|
-
this.props.data.SankeyChartData.links.forEach(function (singleLink, index) {
|
|
269
|
-
var onMouseOut = function () {
|
|
270
|
-
_this._onStreamLeave(singleLink);
|
|
271
|
-
};
|
|
272
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
273
|
-
var data = function (d) {
|
|
274
|
-
return [
|
|
275
|
-
{ x: d.source.x1, y0: d.y0 + d.width / 2, y1: d.y0 - d.width / 2 },
|
|
276
|
-
{ x: d.target.x0, y0: d.y1 + d.width / 2, y1: d.y1 - d.width / 2 },
|
|
277
|
-
];
|
|
278
|
-
};
|
|
279
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
280
|
-
var dataPoints = data(singleLink);
|
|
281
|
-
var linkArea = d3Area()
|
|
282
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
283
|
-
.x(function (p) { return p.x; })
|
|
284
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
285
|
-
.y0(function (p) { return p.y0; })
|
|
286
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
287
|
-
.y1(function (p) { return p.y1; })
|
|
288
|
-
.curve(d3CurveBasis);
|
|
289
|
-
var gradientUrl = "url(#gradient-" + _this._linkId + "-" + index + ")";
|
|
290
|
-
var link = (React.createElement("g", { key: _this._linkId + "-" + index },
|
|
291
|
-
React.createElement("defs", null,
|
|
292
|
-
React.createElement("linearGradient", { id: "gradient-" + _this._linkId + "-" + index, x1: "0%", y1: "0%", x2: "100%", y2: "0%" },
|
|
293
|
-
React.createElement("stop", { offset: "0", stopColor: singleLink.source.color }),
|
|
294
|
-
React.createElement("stop", { offset: "100%", stopColor: singleLink.target.color }))),
|
|
295
|
-
React.createElement("path", { d: linkArea(dataPoints), id: getId('link'), fill: _this._fillStreamColors(singleLink, gradientUrl), stroke: _this._fillStreamBorder(singleLink, gradientUrl), strokeWidth: "2", strokeOpacity: _this._getOpacityStreamBorder(singleLink), onMouseOver: _this._onStreamHover.bind(_this, singleLink), onMouseOut: onMouseOut, onFocus: _this._onFocusLink.bind(_this, singleLink), onBlur: _this._onBlur, fillOpacity: _this._getOpacityStream(singleLink), "data-is-focusable": true, "aria-label": 'link from' +
|
|
296
|
-
singleLink.source.name +
|
|
297
|
-
'to' +
|
|
298
|
-
singleLink.target.name +
|
|
299
|
-
'with weight' +
|
|
300
|
-
singleLink.unnormalizedValue, role: "img" })));
|
|
301
|
-
links.push(link);
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
return links;
|
|
305
|
-
};
|
|
306
|
-
SankeyChartBase.prototype._createNodes = function (width) {
|
|
307
|
-
var _this = this;
|
|
308
|
-
var nodes = [];
|
|
309
|
-
if (this.props.data.SankeyChartData) {
|
|
310
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
311
|
-
this.props.data.SankeyChartData.nodes.forEach(function (singleNode, index) {
|
|
312
|
-
var onMouseOut = function () {
|
|
313
|
-
_this._onLeave(singleNode);
|
|
314
|
-
};
|
|
315
|
-
var height = singleNode.y1 - singleNode.y0 > 0 ? singleNode.y1 - singleNode.y0 : 0;
|
|
316
|
-
var padding = 8;
|
|
317
|
-
var textLengthForNodeWeight = 0;
|
|
318
|
-
// If the nodeWeight is in the same line as node description an extra padding
|
|
319
|
-
// of 6 px is required between node description and node weight.
|
|
320
|
-
if (height < MIN_HEIGHT_FOR_DOUBLINE_TYPE) {
|
|
321
|
-
padding = padding + 6;
|
|
322
|
-
var tspan = select('.nodeName').append('text').attr('class', 'tempText').append('tspan').text(null);
|
|
323
|
-
tspan.text(singleNode.actualValue);
|
|
324
|
-
if (tspan.node() !== null) {
|
|
325
|
-
textLengthForNodeWeight = tspan.node().getComputedTextLength();
|
|
326
|
-
padding = padding + textLengthForNodeWeight;
|
|
327
|
-
}
|
|
328
|
-
tspan.text(null);
|
|
329
|
-
selectAll('.tempText').remove();
|
|
330
|
-
}
|
|
331
|
-
// Since the total width of the node is 124 and we are giving margin of 8px from the left .
|
|
332
|
-
//So the actual value on which it will be truncated is 124-8=116.
|
|
333
|
-
var truncatedname = _this._truncateText(singleNode.name, 116, padding);
|
|
334
|
-
var isTruncated = truncatedname.slice(-3) === '...';
|
|
335
|
-
var id = getId('tooltip');
|
|
336
|
-
var div = select('body')
|
|
337
|
-
.append('div')
|
|
338
|
-
.attr('id', id)
|
|
339
|
-
.attr('class', _this._classNames.toolTip)
|
|
340
|
-
.style('opacity', 0);
|
|
341
|
-
var nodeId = getId('nodeBar');
|
|
342
|
-
var node = (React.createElement("g", { key: index, id: getId('nodeGElement') },
|
|
343
|
-
React.createElement("rect", { x: singleNode.x0, y: singleNode.y0, height: height, width: singleNode.x1 - singleNode.x0, fill: _this._fillNodeColors(singleNode), id: nodeId, onMouseOver: _this._onHover.bind(_this, singleNode), onMouseOut: onMouseOut, onFocus: _this._onCloseCallout.bind(_this), stroke: _this._fillNodeBorder(singleNode), strokeWidth: "2", opacity: "1", "data-is-focusable": true, "aria-label": 'node' + ("" + singleNode.name) + 'with weight' + ("" + singleNode.actualValue), role: "img" }),
|
|
344
|
-
singleNode.y1 - singleNode.y0 > MIN_HEIGHT_FOR_TYPE && (React.createElement("g", { className: _this._classNames.nodeTextContainer },
|
|
345
|
-
React.createElement("g", { className: "nodeName" },
|
|
346
|
-
React.createElement("text", { id: nodeId + "-name", x: singleNode.x0, y: singleNode.y0, dy: '1.2em', dx: '0.4em', textAnchor: _this._isRtl ? 'end' : 'start', fontWeight: "regular", "aria-hidden": "true", fill: !(!_this.state.selectedState ||
|
|
347
|
-
(_this.state.selectedState &&
|
|
348
|
-
_this.state.selectedNodes.has(singleNode.index) &&
|
|
349
|
-
_this.state.selectedNode) ||
|
|
350
|
-
(_this.state.selectedState && !_this.state.selectedNode))
|
|
351
|
-
? DEFAULT_TEXT_COLOR
|
|
352
|
-
: NON_SELECTED_TEXT_COLOR, fontSize: 10, onMouseOver: _this._showTooltip.bind(_this, singleNode.name, isTruncated, div), onMouseOut: _this._hideTooltip.bind(_this, div) }, truncatedname)),
|
|
353
|
-
React.createElement("text", { x: height > MIN_HEIGHT_FOR_DOUBLINE_TYPE ? singleNode.x0 : singleNode.x1 - textLengthForNodeWeight - 8, y: singleNode.y0, dy: height > MIN_HEIGHT_FOR_DOUBLINE_TYPE ? '2em' : '1em', dx: height > MIN_HEIGHT_FOR_DOUBLINE_TYPE ? '0.4em' : '0em', textAnchor: _this._isRtl ? 'end' : 'start', fontWeight: "bold", "aria-hidden": "true", fill: !(!_this.state.selectedState ||
|
|
354
|
-
(_this.state.selectedState &&
|
|
355
|
-
_this.state.selectedNodes.has(singleNode.index) &&
|
|
356
|
-
_this.state.selectedNode) ||
|
|
357
|
-
(_this.state.selectedState && !_this.state.selectedNode))
|
|
358
|
-
? DEFAULT_TEXT_COLOR
|
|
359
|
-
: NON_SELECTED_TEXT_COLOR, fontSize: 14 }, singleNode.actualValue)))));
|
|
360
|
-
nodes.push(node);
|
|
361
|
-
});
|
|
362
|
-
return nodes;
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
366
|
-
SankeyChartBase.prototype._onLeave = function (singleNode) {
|
|
367
|
-
if (this.state.selectedState) {
|
|
368
|
-
this.setState({
|
|
369
|
-
selectedState: false,
|
|
370
|
-
selectedNodes: new Set(),
|
|
371
|
-
selectedLinks: new Set(),
|
|
372
|
-
selectedNode: undefined,
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
377
|
-
SankeyChartBase.prototype._onHover = function (singleNode, mouseEvent) {
|
|
378
|
-
mouseEvent.persist();
|
|
379
|
-
this._onCloseCallout();
|
|
380
|
-
if (!this.state.selectedState) {
|
|
381
|
-
var selectedLinks = this._getSelectedLinks(singleNode);
|
|
382
|
-
var selectedNodes = this._getSelectedNodes(selectedLinks);
|
|
383
|
-
selectedNodes.push(singleNode);
|
|
384
|
-
this.setState({
|
|
385
|
-
selectedState: true,
|
|
386
|
-
selectedNodes: new Set(Array.from(selectedNodes).map(function (node) { return node.index; })),
|
|
387
|
-
selectedLinks: new Set(Array.from(selectedLinks).map(function (link) { return link.index; })),
|
|
388
|
-
selectedNode: singleNode,
|
|
389
|
-
refSelected: mouseEvent,
|
|
390
|
-
isCalloutVisible: singleNode.y1 - singleNode.y0 < MIN_HEIGHT_FOR_TYPE,
|
|
391
|
-
color: singleNode.color,
|
|
392
|
-
xCalloutValue: singleNode.name,
|
|
393
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
394
|
-
yCalloutValue: singleNode.actualValue,
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
399
|
-
SankeyChartBase.prototype._onStreamHover = function (singleLink, mouseEvent) {
|
|
400
|
-
mouseEvent.persist();
|
|
401
|
-
this._onCloseCallout();
|
|
402
|
-
if (!this.state.selectedState) {
|
|
403
|
-
var _a = this._getSelectedLinksforStreamHover(singleLink), selectedLinks = _a.selectedLinks, selectedNodes = _a.selectedNodes;
|
|
404
|
-
this.setState({
|
|
405
|
-
selectedState: true,
|
|
406
|
-
selectedNodes: new Set(Array.from(selectedNodes).map(function (node) { return node.index; })),
|
|
407
|
-
selectedLinks: new Set(Array.from(selectedLinks).map(function (link) { return link.index; })),
|
|
408
|
-
refSelected: mouseEvent,
|
|
409
|
-
selectedLink: singleLink,
|
|
410
|
-
isCalloutVisible: true,
|
|
411
|
-
color: singleLink.source.color,
|
|
412
|
-
xCalloutValue: singleLink.target.name,
|
|
413
|
-
yCalloutValue: singleLink.unnormalizedValue.toString(),
|
|
414
|
-
descriptionMessage: 'from ' + singleLink.source.name,
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
SankeyChartBase.prototype._onStreamLeave = function (singleLink) {
|
|
419
|
-
if (this.state.selectedState) {
|
|
420
|
-
this.setState({
|
|
421
|
-
selectedState: false,
|
|
422
|
-
selectedNodes: new Set(),
|
|
423
|
-
selectedLinks: new Set(),
|
|
424
|
-
selectedLink: undefined,
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
SankeyChartBase.prototype._onFocusLink = function (singleLink, element) {
|
|
429
|
-
element.persist();
|
|
430
|
-
this._onCloseCallout();
|
|
431
|
-
this.setState({
|
|
432
|
-
refSelected: element.currentTarget,
|
|
433
|
-
selectedLink: singleLink,
|
|
434
|
-
isCalloutVisible: true,
|
|
435
|
-
color: singleLink.source.color,
|
|
436
|
-
xCalloutValue: singleLink.target.name,
|
|
437
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
438
|
-
yCalloutValue: singleLink.source.actualValue,
|
|
439
|
-
descriptionMessage: 'from ' + singleLink.source.name,
|
|
440
|
-
});
|
|
441
|
-
};
|
|
442
|
-
/**
|
|
443
|
-
* This is used to assign node fillcolors and borderColor cyclically when the user doesnt
|
|
444
|
-
* provide color to individual node.
|
|
445
|
-
*/
|
|
446
|
-
SankeyChartBase.prototype._assignNodeColors = function () {
|
|
447
|
-
var colors;
|
|
448
|
-
var borders;
|
|
449
|
-
if (this.props.colorsForNodes && this.props.borderColorsForNodes) {
|
|
450
|
-
colors = this.props.colorsForNodes;
|
|
451
|
-
borders = this.props.borderColorsForNodes;
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
colors = DEFAULT_NODE_COLORS.map(function (color) { return color.fillColor; });
|
|
455
|
-
borders = DEFAULT_NODE_COLORS.map(function (color) { return color.borderColor; });
|
|
456
|
-
}
|
|
457
|
-
var currentIndex = 0;
|
|
458
|
-
this.props.data.SankeyChartData.nodes.forEach(function (node) {
|
|
459
|
-
if (!node.color && !node.borderColor) {
|
|
460
|
-
node.color = colors[currentIndex];
|
|
461
|
-
node.borderColor = borders[currentIndex];
|
|
462
|
-
}
|
|
463
|
-
else if (node.color && !node.borderColor) {
|
|
464
|
-
node.borderColor = '#757575';
|
|
465
|
-
}
|
|
466
|
-
else if (node.borderColor && !node.color) {
|
|
467
|
-
node.color = '#F5F5F5';
|
|
468
|
-
}
|
|
469
|
-
currentIndex = (currentIndex + 1) % colors.length;
|
|
470
|
-
});
|
|
471
|
-
};
|
|
472
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
473
|
-
SankeyChartBase.prototype._fillStreamColors = function (singleLink, gradientUrl) {
|
|
474
|
-
if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index) && this.state.selectedNode) {
|
|
475
|
-
return this.state.selectedNode.color;
|
|
476
|
-
}
|
|
477
|
-
else if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index)) {
|
|
478
|
-
return gradientUrl;
|
|
479
|
-
}
|
|
480
|
-
};
|
|
481
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
482
|
-
SankeyChartBase.prototype._fillStreamBorder = function (singleLink, gradientUrl) {
|
|
483
|
-
if (!this.state.selectedState) {
|
|
484
|
-
return NON_SELECTED_NODE_AND_STREAM_COLOR;
|
|
485
|
-
}
|
|
486
|
-
else if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index) && this.state.selectedNode) {
|
|
487
|
-
return this.state.selectedNode.borderColor;
|
|
488
|
-
}
|
|
489
|
-
else if (this.state.selectedState && this.state.selectedLinks.has(singleLink.index)) {
|
|
490
|
-
return gradientUrl;
|
|
491
|
-
}
|
|
492
|
-
return NON_SELECTED_NODE_AND_STREAM_COLOR;
|
|
493
|
-
};
|
|
494
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
495
|
-
SankeyChartBase.prototype._getSelectedNodes = function (selectedLinks) {
|
|
496
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
497
|
-
var nodes = [];
|
|
498
|
-
selectedLinks.forEach(function (link) {
|
|
499
|
-
nodes.push(link.target);
|
|
500
|
-
if (nodes.indexOf(link.source) === -1) {
|
|
501
|
-
nodes.push(link.source);
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
return nodes;
|
|
505
|
-
};
|
|
506
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
507
|
-
SankeyChartBase.prototype._getSelectedLinks = function (singleNode) {
|
|
508
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, no-array-constructor
|
|
509
|
-
var q = new Array();
|
|
510
|
-
var finalLinks = new Set();
|
|
511
|
-
singleNode.sourceLinks.forEach(function (link) {
|
|
512
|
-
q.push(link);
|
|
513
|
-
finalLinks.add(link);
|
|
514
|
-
});
|
|
515
|
-
while (q.length > 0) {
|
|
516
|
-
var poppedLink = q.shift();
|
|
517
|
-
var node = poppedLink.target;
|
|
518
|
-
if (node && node.sourceLinks) {
|
|
519
|
-
node.sourceLinks.forEach(function (link) {
|
|
520
|
-
finalLinks.add(link);
|
|
521
|
-
q.push(link);
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
if (singleNode.targetLinks) {
|
|
526
|
-
singleNode.targetLinks.forEach(function (link) {
|
|
527
|
-
q.push(link);
|
|
528
|
-
finalLinks.add(link);
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
while (q.length > 0) {
|
|
532
|
-
var poppedLink = q.shift();
|
|
533
|
-
var node = poppedLink.source;
|
|
534
|
-
if (node && node.targetLinks) {
|
|
535
|
-
node.targetLinks.forEach(function (link) {
|
|
536
|
-
finalLinks.add(link);
|
|
537
|
-
q.push(link);
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
return finalLinks;
|
|
542
|
-
};
|
|
543
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
544
|
-
SankeyChartBase.prototype._getSelectedLinksforStreamHover = function (singleLink) {
|
|
545
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, no-array-constructor
|
|
546
|
-
var q = new Array();
|
|
547
|
-
var finalLinks = new Set();
|
|
548
|
-
var finalNodes = new Set();
|
|
549
|
-
q.push(singleLink.source);
|
|
550
|
-
finalLinks.add(singleLink);
|
|
551
|
-
while (q.length > 0) {
|
|
552
|
-
var poppedNode = q.shift();
|
|
553
|
-
finalNodes.add(poppedNode);
|
|
554
|
-
if (poppedNode.targetLinks && poppedNode.targetLinks.length > 0) {
|
|
555
|
-
poppedNode.targetLinks.forEach(function (link) {
|
|
556
|
-
q.push(link.source);
|
|
557
|
-
finalLinks.add(link);
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
q.push(singleLink.target);
|
|
562
|
-
while (q.length > 0) {
|
|
563
|
-
var poppedNode = q.shift();
|
|
564
|
-
finalNodes.add(poppedNode);
|
|
565
|
-
if (poppedNode.sourceLinks && poppedNode.sourceLinks.length > 0) {
|
|
566
|
-
poppedNode.sourceLinks.forEach(function (link) {
|
|
567
|
-
q.push(link.target);
|
|
568
|
-
finalLinks.add(link);
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
return {
|
|
573
|
-
selectedLinks: finalLinks,
|
|
574
|
-
selectedNodes: finalNodes,
|
|
575
|
-
};
|
|
576
|
-
};
|
|
577
|
-
SankeyChartBase.prototype._getOpacityStream = function (singleLink) {
|
|
578
|
-
if (this.state.selectedState) {
|
|
579
|
-
if (!this.state.selectedLinks.has(singleLink.index)) {
|
|
580
|
-
return NON_SELECTED_OPACITY;
|
|
581
|
-
}
|
|
582
|
-
else if (this.state.selectedState &&
|
|
583
|
-
this.state.selectedLinks.has(singleLink.index) &&
|
|
584
|
-
!this.state.selectedNode) {
|
|
585
|
-
return SELECTED_STREAM_OPACITY;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
return REST_STREAM_OPACITY;
|
|
589
|
-
};
|
|
590
|
-
SankeyChartBase.prototype._getOpacityStreamBorder = function (singleLink) {
|
|
591
|
-
if (this.state.selectedState && !this.state.selectedLinks.has(singleLink.index) && !this.state.selectedNode) {
|
|
592
|
-
return NON_SELECTED_STREAM_BORDER_OPACITY;
|
|
593
|
-
}
|
|
594
|
-
return NON_SELECTED_OPACITY;
|
|
595
|
-
};
|
|
596
|
-
SankeyChartBase.prototype._fitParentContainer = function () {
|
|
597
|
-
var _this = this;
|
|
598
|
-
var _a = this.state, containerWidth = _a.containerWidth, containerHeight = _a.containerHeight;
|
|
599
|
-
this._reqID = requestAnimationFrame(function () {
|
|
600
|
-
var container = _this.props.parentRef ? _this.props.parentRef : _this.chartContainer;
|
|
601
|
-
var currentContainerWidth = container.getBoundingClientRect().width;
|
|
602
|
-
var currentContainerHeight = container.getBoundingClientRect().height;
|
|
603
|
-
var shouldResize = containerWidth !== currentContainerWidth || containerHeight !== currentContainerHeight;
|
|
604
|
-
if (shouldResize) {
|
|
605
|
-
_this.setState({
|
|
606
|
-
containerWidth: currentContainerWidth,
|
|
607
|
-
containerHeight: currentContainerHeight,
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
});
|
|
611
|
-
};
|
|
612
|
-
/**
|
|
613
|
-
*
|
|
614
|
-
* @param text is the text which we are trying to truncate
|
|
615
|
-
* @param rectangleWidth is the width of the rectangle which will contain the text
|
|
616
|
-
* @param padding is the space we need to leave between the rect lines and other text
|
|
617
|
-
* @param nodeWeight is the text if present needs to be accomodate in the same line as text.
|
|
618
|
-
* @returns the truncated text , if truncated given the above parameters.
|
|
619
|
-
*/
|
|
620
|
-
SankeyChartBase.prototype._truncateText = function (text, rectangleWidth, padding) {
|
|
621
|
-
var textLengthForNodeName = rectangleWidth - padding;
|
|
622
|
-
var elipsisLength = 0;
|
|
623
|
-
var tspan = select('.nodeName')
|
|
624
|
-
.append('text')
|
|
625
|
-
.attr('class', 'tempText')
|
|
626
|
-
.attr('font-size', '10')
|
|
627
|
-
.append('tspan')
|
|
628
|
-
.text(null);
|
|
629
|
-
tspan.text(text);
|
|
630
|
-
if (tspan.node() !== null && tspan.node().getComputedTextLength() <= textLengthForNodeName) {
|
|
631
|
-
return text;
|
|
632
|
-
}
|
|
633
|
-
tspan.text(null);
|
|
634
|
-
tspan.text('...');
|
|
635
|
-
if (tspan.node() !== null) {
|
|
636
|
-
elipsisLength = tspan.node().getComputedTextLength();
|
|
637
|
-
}
|
|
638
|
-
tspan.text(null);
|
|
639
|
-
var line = '';
|
|
640
|
-
for (var i = 0; i < text.length; i++) {
|
|
641
|
-
line += text[i];
|
|
642
|
-
tspan.text(line);
|
|
643
|
-
if (tspan.node() !== null) {
|
|
644
|
-
var w = tspan.node().getComputedTextLength();
|
|
645
|
-
if (w >= textLengthForNodeName - elipsisLength) {
|
|
646
|
-
line = line.slice(0, -1);
|
|
647
|
-
line += '...';
|
|
648
|
-
break;
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
tspan.text(null);
|
|
653
|
-
selectAll('.tempText').remove();
|
|
654
|
-
return line;
|
|
655
|
-
};
|
|
656
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
657
|
-
SankeyChartBase.prototype._showTooltip = function (text, checkTrcuncated, div, evt) {
|
|
658
|
-
if (checkTrcuncated) {
|
|
659
|
-
//Fixing tooltip position by attaching it to the element rather than page
|
|
660
|
-
div.style('opacity', 0.9);
|
|
661
|
-
div
|
|
662
|
-
.html(text)
|
|
663
|
-
.style('left', evt.pageX + 'px')
|
|
664
|
-
.style('top', evt.pageY - 28 + 'px');
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
668
|
-
SankeyChartBase.prototype._hideTooltip = function (div) {
|
|
669
|
-
div.style('opacity', 0);
|
|
670
|
-
};
|
|
671
|
-
return SankeyChartBase;
|
|
672
|
-
}(React.Component));
|
|
673
|
-
export { SankeyChartBase };
|
|
674
|
-
//# sourceMappingURL=SankeyChart.base.js.map
|