@fluentui/react-charting 5.12.24 → 5.12.27
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 +52 -1
- package/CHANGELOG.md +30 -2
- package/dist/react-charting.js +2 -0
- package/dist/react-charting.js.map +1 -0
- package/dist/react-charting.min.js +2 -0
- package/dist/react-charting.min.js.map +1 -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 +73 -0
- package/lib/components/AreaChart/AreaChart.base.js +489 -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 +36 -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 +323 -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 +400 -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 +19 -0
- package/lib/components/DonutChart/Arc/Arc.js +77 -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 +32 -0
- package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.d.ts +112 -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 +44 -0
- package/lib/components/DonutChart/DonutChart.base.js +209 -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 +29 -0
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.types.d.ts +53 -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 +12 -0
- package/lib/components/DonutChart/Pie/Pie.js +47 -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 +6 -0
- package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.d.ts +78 -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 +49 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +351 -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 +11 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +74 -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 +145 -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 +22 -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 +34 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +194 -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 +49 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +130 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +2 -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 +42 -0
- package/lib/components/Legends/Legends.base.js +311 -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 +69 -0
- package/lib/components/LineChart/LineChart.base.js +768 -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 +18 -0
- package/lib/components/SankeyChart/SankeyChart.base.js +108 -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 +21 -0
- package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.types.d.ts +63 -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 +41 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +293 -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 +61 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +154 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +2 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
- package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +39 -0
- package/lib/components/StackedBarChart/StackedBarChart.base.js +297 -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 +94 -0
- package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
- package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +202 -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 +303 -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 +28 -0
- package/lib/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.types.d.ts +185 -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 +57 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +482 -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 +22 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +105 -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 +71 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +607 -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 +12 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +133 -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 +18 -0
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -0
- package/lib/types/IDataPoint.d.ts +541 -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/index.d.ts +2 -0
- package/lib/utilities/index.js +3 -0
- package/lib/utilities/index.js.map +1 -0
- package/lib/utilities/utilities.d.ts +374 -0
- package/lib/utilities/utilities.js +819 -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 +73 -0
- package/lib-amd/components/AreaChart/AreaChart.base.js +482 -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 +36 -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 +321 -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 +400 -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 +19 -0
- package/lib-amd/components/DonutChart/Arc/Arc.js +76 -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 +37 -0
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
- package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +112 -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 +44 -0
- package/lib-amd/components/DonutChart/DonutChart.base.js +206 -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 +35 -0
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
- package/lib-amd/components/DonutChart/DonutChart.types.d.ts +53 -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 +12 -0
- package/lib-amd/components/DonutChart/Pie/Pie.js +48 -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 +12 -0
- package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
- package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +78 -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 +49 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +346 -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 +16 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +74 -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 +145 -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 +28 -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 +34 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +193 -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 +53 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +130 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +5 -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 +42 -0
- package/lib-amd/components/Legends/Legends.base.js +307 -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 +69 -0
- package/lib-amd/components/LineChart/LineChart.base.js +762 -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 +18 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +109 -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 +27 -0
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +63 -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 +41 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +291 -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 +66 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +154 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +5 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +39 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +295 -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 +98 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +202 -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 +301 -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 +33 -0
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.types.d.ts +185 -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 +57 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +476 -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 +27 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +105 -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 +71 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +601 -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 +17 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +133 -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 +18 -0
- package/lib-amd/index.js +22 -0
- package/lib-amd/index.js.map +1 -0
- package/lib-amd/types/IDataPoint.d.ts +541 -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/index.d.ts +2 -0
- package/lib-amd/utilities/index.js +7 -0
- package/lib-amd/utilities/index.js.map +1 -0
- package/lib-amd/utilities/utilities.d.ts +374 -0
- package/lib-amd/utilities/utilities.js +844 -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/AreaChart.d.ts +1 -0
- package/lib-commonjs/AreaChart.js +5 -0
- package/lib-commonjs/AreaChart.js.map +1 -0
- package/lib-commonjs/CartesianChart.d.ts +1 -0
- package/lib-commonjs/CartesianChart.js +5 -0
- package/lib-commonjs/CartesianChart.js.map +1 -0
- package/lib-commonjs/DonutChart.d.ts +1 -0
- package/lib-commonjs/DonutChart.js +5 -0
- package/lib-commonjs/DonutChart.js.map +1 -0
- package/lib-commonjs/GroupedVerticalBarChart.d.ts +1 -0
- package/lib-commonjs/GroupedVerticalBarChart.js +5 -0
- package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -0
- package/lib-commonjs/HeatMapChart.d.ts +1 -0
- package/lib-commonjs/HeatMapChart.js +5 -0
- package/lib-commonjs/HeatMapChart.js.map +1 -0
- package/lib-commonjs/HorizontalBarChart.d.ts +1 -0
- package/lib-commonjs/HorizontalBarChart.js +5 -0
- package/lib-commonjs/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/Legends.d.ts +1 -0
- package/lib-commonjs/Legends.js +5 -0
- package/lib-commonjs/Legends.js.map +1 -0
- package/lib-commonjs/LineChart.d.ts +1 -0
- package/lib-commonjs/LineChart.js +5 -0
- package/lib-commonjs/LineChart.js.map +1 -0
- package/lib-commonjs/PieChart.d.ts +1 -0
- package/lib-commonjs/PieChart.js +5 -0
- package/lib-commonjs/PieChart.js.map +1 -0
- package/lib-commonjs/SankeyChart.d.ts +1 -0
- package/lib-commonjs/SankeyChart.js +5 -0
- package/lib-commonjs/SankeyChart.js.map +1 -0
- package/lib-commonjs/Sparkline.d.ts +1 -0
- package/lib-commonjs/Sparkline.js +5 -0
- package/lib-commonjs/Sparkline.js.map +1 -0
- package/lib-commonjs/StackedBarChart.d.ts +1 -0
- package/lib-commonjs/StackedBarChart.js +5 -0
- package/lib-commonjs/StackedBarChart.js.map +1 -0
- package/lib-commonjs/Styling.d.ts +2 -0
- package/lib-commonjs/Styling.js +75 -0
- package/lib-commonjs/Styling.js.map +1 -0
- package/lib-commonjs/TreeChart.d.ts +1 -0
- package/lib-commonjs/TreeChart.js +5 -0
- package/lib-commonjs/TreeChart.js.map +1 -0
- package/lib-commonjs/Utilities.d.ts +2 -0
- package/lib-commonjs/Utilities.js +185 -0
- package/lib-commonjs/Utilities.js.map +1 -0
- package/lib-commonjs/VerticalBarChart.d.ts +1 -0
- package/lib-commonjs/VerticalBarChart.js +5 -0
- package/lib-commonjs/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/VerticalStackedBarChart.d.ts +1 -0
- package/lib-commonjs/VerticalStackedBarChart.js +5 -0
- package/lib-commonjs/VerticalStackedBarChart.js.map +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +73 -0
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +492 -0
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.d.ts +3 -0
- package/lib-commonjs/components/AreaChart/AreaChart.js +9 -0
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.styles.d.ts +2 -0
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js +11 -0
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -0
- package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +36 -0
- package/lib-commonjs/components/AreaChart/AreaChart.types.js +3 -0
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -0
- package/lib-commonjs/components/AreaChart/index.d.ts +2 -0
- package/lib-commonjs/components/AreaChart/index.js +6 -0
- package/lib-commonjs/components/AreaChart/index.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.d.ts +43 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +326 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.d.ts +3 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +8 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +167 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +400 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js +3 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib-commonjs/components/CommonComponents/index.d.ts +2 -0
- package/lib-commonjs/components/CommonComponents/index.js +6 -0
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.d.ts +19 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +80 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js +36 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.d.ts +112 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js +3 -0
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Arc/index.d.ts +2 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js +6 -0
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.base.d.ts +44 -0
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +212 -0
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.d.ts +3 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js +9 -0
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.styles.d.ts +2 -0
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js +33 -0
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.d.ts +53 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js +3 -0
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.d.ts +12 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +50 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js +10 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.d.ts +78 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js +3 -0
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib-commonjs/components/DonutChart/Pie/index.d.ts +2 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js +6 -0
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -0
- package/lib-commonjs/components/DonutChart/index.d.ts +3 -0
- package/lib-commonjs/components/DonutChart/index.js +7 -0
- package/lib-commonjs/components/DonutChart/index.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +49 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +354 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +9 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +15 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +74 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +3 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/index.d.ts +2 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js +6 -0
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +145 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +501 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.d.ts +3 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +8 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js +26 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js +3 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
- package/lib-commonjs/components/HeatMapChart/index.d.ts +2 -0
- package/lib-commonjs/components/HeatMapChart/index.js +6 -0
- package/lib-commonjs/components/HeatMapChart/index.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +34 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +197 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +9 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +53 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +130 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js +3 -0
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/HorizontalBarChart/index.d.ts +3 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js +7 -0
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.base.d.ts +42 -0
- package/lib-commonjs/components/Legends/Legends.base.js +314 -0
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.d.ts +3 -0
- package/lib-commonjs/components/Legends/Legends.js +8 -0
- package/lib-commonjs/components/Legends/Legends.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.styles.d.ts +2 -0
- package/lib-commonjs/components/Legends/Legends.styles.js +107 -0
- package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -0
- package/lib-commonjs/components/Legends/Legends.types.d.ts +169 -0
- package/lib-commonjs/components/Legends/Legends.types.js +3 -0
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -0
- package/lib-commonjs/components/Legends/index.d.ts +3 -0
- package/lib-commonjs/components/Legends/index.js +7 -0
- package/lib-commonjs/components/Legends/index.js.map +1 -0
- package/lib-commonjs/components/Legends/shape.d.ts +9 -0
- package/lib-commonjs/components/Legends/shape.js +28 -0
- package/lib-commonjs/components/Legends/shape.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +69 -0
- package/lib-commonjs/components/LineChart/LineChart.base.js +771 -0
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.d.ts +3 -0
- package/lib-commonjs/components/LineChart/LineChart.js +9 -0
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.styles.d.ts +2 -0
- package/lib-commonjs/components/LineChart/LineChart.styles.js +11 -0
- package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.types.d.ts +72 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js +3 -0
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +97 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js +41 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +41 -0
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib-commonjs/components/LineChart/index.d.ts +3 -0
- package/lib-commonjs/components/LineChart/index.js +7 -0
- package/lib-commonjs/components/LineChart/index.js.map +1 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.d.ts +12 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.js +60 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.styles.d.ts +2 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.styles.js +12 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.types.d.ts +60 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.types.js +3 -0
- package/lib-commonjs/components/PieChart/Arc/Arc.types.js.map +1 -0
- package/lib-commonjs/components/PieChart/Arc/index.d.ts +2 -0
- package/lib-commonjs/components/PieChart/Arc/index.js +6 -0
- package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.d.ts +10 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.js +38 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.styles.d.ts +2 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.styles.js +10 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.styles.js.map +1 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.types.d.ts +46 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.types.js +3 -0
- package/lib-commonjs/components/PieChart/Pie/Pie.types.js.map +1 -0
- package/lib-commonjs/components/PieChart/Pie/index.d.ts +2 -0
- package/lib-commonjs/components/PieChart/Pie/index.js +6 -0
- package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -0
- package/lib-commonjs/components/PieChart/PieChart.base.d.ts +7 -0
- package/lib-commonjs/components/PieChart/PieChart.base.js +37 -0
- package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -0
- package/lib-commonjs/components/PieChart/PieChart.d.ts +3 -0
- package/lib-commonjs/components/PieChart/PieChart.js +9 -0
- package/lib-commonjs/components/PieChart/PieChart.js.map +1 -0
- package/lib-commonjs/components/PieChart/PieChart.styles.d.ts +2 -0
- package/lib-commonjs/components/PieChart/PieChart.styles.js +33 -0
- package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -0
- package/lib-commonjs/components/PieChart/PieChart.types.d.ts +63 -0
- package/lib-commonjs/components/PieChart/PieChart.types.js +3 -0
- package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -0
- package/lib-commonjs/components/PieChart/index.d.ts +2 -0
- package/lib-commonjs/components/PieChart/index.js +6 -0
- package/lib-commonjs/components/PieChart/index.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +18 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +111 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.d.ts +3 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +9 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +25 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +63 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js +3 -0
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -0
- package/lib-commonjs/components/SankeyChart/index.d.ts +2 -0
- package/lib-commonjs/components/SankeyChart/index.js +6 -0
- package/lib-commonjs/components/SankeyChart/index.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.base.d.ts +20 -0
- package/lib-commonjs/components/Sparkline/Sparkline.base.js +79 -0
- package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.d.ts +3 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js +9 -0
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.styles.d.ts +2 -0
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js +14 -0
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.d.ts +51 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js +3 -0
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib-commonjs/components/Sparkline/index.d.ts +2 -0
- package/lib-commonjs/components/Sparkline/index.js +6 -0
- package/lib-commonjs/components/Sparkline/index.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.d.ts +41 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +296 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +9 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js +65 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.d.ts +154 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js +3 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.d.ts +39 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +300 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.d.ts +3 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +9 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +98 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.d.ts +202 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js +3 -0
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
- package/lib-commonjs/components/StackedBarChart/index.d.ts +5 -0
- package/lib-commonjs/components/StackedBarChart/index.js +9 -0
- package/lib-commonjs/components/StackedBarChart/index.js.map +1 -0
- package/lib-commonjs/components/TreeChart/TreeChart.base.d.ts +18 -0
- package/lib-commonjs/components/TreeChart/TreeChart.base.js +306 -0
- package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -0
- package/lib-commonjs/components/TreeChart/TreeChart.d.ts +3 -0
- package/lib-commonjs/components/TreeChart/TreeChart.js +8 -0
- package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -0
- package/lib-commonjs/components/TreeChart/TreeChart.styles.d.ts +2 -0
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js +32 -0
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib-commonjs/components/TreeChart/TreeChart.types.d.ts +185 -0
- package/lib-commonjs/components/TreeChart/TreeChart.types.js +26 -0
- package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -0
- package/lib-commonjs/components/TreeChart/index.d.ts +2 -0
- package/lib-commonjs/components/TreeChart/index.js +6 -0
- package/lib-commonjs/components/TreeChart/index.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +57 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +485 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +9 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +26 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.d.ts +105 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js +3 -0
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib-commonjs/components/VerticalBarChart/index.d.ts +2 -0
- package/lib-commonjs/components/VerticalBarChart/index.js +6 -0
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +71 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +610 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +9 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +16 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +133 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +3 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/index.d.ts +2 -0
- package/lib-commonjs/components/VerticalStackedBarChart/index.js +6 -0
- package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -0
- package/lib-commonjs/index.d.ts +18 -0
- package/lib-commonjs/index.js +22 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/types/IDataPoint.d.ts +541 -0
- package/lib-commonjs/types/IDataPoint.js +3 -0
- package/lib-commonjs/types/IDataPoint.js.map +1 -0
- package/lib-commonjs/types/IEventAnnotation.d.ts +6 -0
- package/lib-commonjs/types/IEventAnnotation.js +3 -0
- package/lib-commonjs/types/IEventAnnotation.js.map +1 -0
- package/lib-commonjs/types/ILegendDataItem.d.ts +10 -0
- package/lib-commonjs/types/ILegendDataItem.js +3 -0
- package/lib-commonjs/types/ILegendDataItem.js.map +1 -0
- package/lib-commonjs/types/index.d.ts +2 -0
- package/lib-commonjs/types/index.js +6 -0
- package/lib-commonjs/types/index.js.map +1 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +41 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js +9 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +86 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js +3 -0
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
- package/lib-commonjs/utilities/ChartHoverCard/index.d.ts +3 -0
- package/lib-commonjs/utilities/ChartHoverCard/index.js +7 -0
- package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -0
- package/lib-commonjs/utilities/index.d.ts +2 -0
- package/lib-commonjs/utilities/index.js +6 -0
- package/lib-commonjs/utilities/index.js.map +1 -0
- package/lib-commonjs/utilities/utilities.d.ts +374 -0
- package/lib-commonjs/utilities/utilities.js +849 -0
- package/lib-commonjs/utilities/utilities.js.map +1 -0
- package/lib-commonjs/version.d.ts +1 -0
- package/lib-commonjs/version.js +7 -0
- package/lib-commonjs/version.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SankeyChartBase = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var React = require("react");
|
|
6
|
+
var Utilities_1 = require("@fluentui/react/lib-commonjs/Utilities");
|
|
7
|
+
var d3Sankey = require("d3-sankey");
|
|
8
|
+
var getClassNames = Utilities_1.classNamesFunction();
|
|
9
|
+
var SankeyChartBase = /** @class */ (function (_super) {
|
|
10
|
+
tslib_1.__extends(SankeyChartBase, _super);
|
|
11
|
+
function SankeyChartBase(props) {
|
|
12
|
+
var _this = _super.call(this, props) || this;
|
|
13
|
+
_this.state = {
|
|
14
|
+
containerHeight: 0,
|
|
15
|
+
containerWidth: 0,
|
|
16
|
+
};
|
|
17
|
+
return _this;
|
|
18
|
+
}
|
|
19
|
+
SankeyChartBase.prototype.componentDidMount = function () {
|
|
20
|
+
this._fitParentContainer();
|
|
21
|
+
};
|
|
22
|
+
SankeyChartBase.prototype.componentDidUpdate = function (prevProps) {
|
|
23
|
+
if (prevProps.shouldResize !== this.props.shouldResize) {
|
|
24
|
+
this._fitParentContainer();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
SankeyChartBase.prototype.componentWillUnmount = function () {
|
|
28
|
+
cancelAnimationFrame(this._reqID);
|
|
29
|
+
};
|
|
30
|
+
SankeyChartBase.prototype.render = function () {
|
|
31
|
+
var _this = this;
|
|
32
|
+
var _a = this.props, theme = _a.theme, className = _a.className, styles = _a.styles, pathColor = _a.pathColor;
|
|
33
|
+
this._classNames = getClassNames(styles, {
|
|
34
|
+
theme: theme,
|
|
35
|
+
width: this.state.containerWidth,
|
|
36
|
+
height: this.state.containerHeight,
|
|
37
|
+
pathColor: pathColor,
|
|
38
|
+
className: className,
|
|
39
|
+
});
|
|
40
|
+
var margin = { top: 10, right: 0, bottom: 10, left: 0 };
|
|
41
|
+
var width = this.state.containerWidth - margin.left - margin.right;
|
|
42
|
+
var height = this.state.containerHeight - margin.top - margin.bottom > 0
|
|
43
|
+
? this.state.containerHeight - margin.top - margin.bottom
|
|
44
|
+
: 0;
|
|
45
|
+
var sankey = d3Sankey
|
|
46
|
+
.sankey()
|
|
47
|
+
.nodeWidth(5)
|
|
48
|
+
.nodePadding(6)
|
|
49
|
+
.extent([
|
|
50
|
+
[1, 1],
|
|
51
|
+
[width - 1, height - 6],
|
|
52
|
+
]);
|
|
53
|
+
sankey(this.props.data.SankeyChartData);
|
|
54
|
+
var nodeData = this._createNodes(width);
|
|
55
|
+
var linkData = this._createLinks();
|
|
56
|
+
return (React.createElement("div", { className: this._classNames.root, role: 'presentation', ref: function (rootElem) { return (_this.chartContainer = rootElem); } },
|
|
57
|
+
React.createElement("svg", { width: width, height: height, id: Utilities_1.getId('sankeyChart') },
|
|
58
|
+
React.createElement("g", { className: this._classNames.nodes }, nodeData),
|
|
59
|
+
React.createElement("g", { className: this._classNames.links, strokeOpacity: 0.2 }, linkData))));
|
|
60
|
+
};
|
|
61
|
+
SankeyChartBase.prototype._createLinks = function () {
|
|
62
|
+
var links = [];
|
|
63
|
+
if (this.props.data.SankeyChartData) {
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
65
|
+
this.props.data.SankeyChartData.links.forEach(function (singleLink, index) {
|
|
66
|
+
var path = d3Sankey.sankeyLinkHorizontal();
|
|
67
|
+
var pathValue = path(singleLink);
|
|
68
|
+
var link = (React.createElement("path", { key: index, d: pathValue ? pathValue : undefined, strokeWidth: Math.max(1, singleLink.width), id: Utilities_1.getId('link') },
|
|
69
|
+
React.createElement("title", null,
|
|
70
|
+
React.createElement("text", null, singleLink.source.name + ' → ' + singleLink.target.name + '\n' + singleLink.value))));
|
|
71
|
+
links.push(link);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return links;
|
|
75
|
+
};
|
|
76
|
+
SankeyChartBase.prototype._createNodes = function (width) {
|
|
77
|
+
var nodes = [];
|
|
78
|
+
if (this.props.data.SankeyChartData) {
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
80
|
+
this.props.data.SankeyChartData.nodes.forEach(function (singleNode, index) {
|
|
81
|
+
var height = singleNode.y1 - singleNode.y0 > 0 ? singleNode.y1 - singleNode.y0 : 0;
|
|
82
|
+
var node = (React.createElement("g", { id: Utilities_1.getId('nodeGElement'), key: index },
|
|
83
|
+
React.createElement("rect", { x: singleNode.x0, y: singleNode.y0, height: height, width: singleNode.x1 - singleNode.x0, fill: singleNode.color, id: Utilities_1.getId('nodeBar') }),
|
|
84
|
+
React.createElement("text", { x: singleNode.x0 < width / 2 ? singleNode.x1 + 6 : singleNode.x0 - 6, y: (singleNode.y1 + singleNode.y0) / 2, dy: '0.35em', textAnchor: singleNode.x0 < width / 2 ? 'start' : 'end' }, singleNode.name),
|
|
85
|
+
React.createElement("title", null,
|
|
86
|
+
React.createElement("text", null, singleNode.name + '\n' + singleNode.value))));
|
|
87
|
+
nodes.push(node);
|
|
88
|
+
});
|
|
89
|
+
return nodes;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
SankeyChartBase.prototype._fitParentContainer = function () {
|
|
93
|
+
var _this = this;
|
|
94
|
+
var _a = this.state, containerWidth = _a.containerWidth, containerHeight = _a.containerHeight;
|
|
95
|
+
this._reqID = requestAnimationFrame(function () {
|
|
96
|
+
var container = _this.props.parentRef ? _this.props.parentRef : _this.chartContainer;
|
|
97
|
+
var currentContainerWidth = container.getBoundingClientRect().width;
|
|
98
|
+
var currentContainerHeight = container.getBoundingClientRect().height;
|
|
99
|
+
var shouldResize = containerWidth !== currentContainerWidth || containerHeight !== currentContainerHeight;
|
|
100
|
+
if (shouldResize) {
|
|
101
|
+
_this.setState({
|
|
102
|
+
containerWidth: currentContainerWidth,
|
|
103
|
+
containerHeight: currentContainerHeight,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
return SankeyChartBase;
|
|
109
|
+
}(React.Component));
|
|
110
|
+
exports.SankeyChartBase = SankeyChartBase;
|
|
111
|
+
//# sourceMappingURL=SankeyChart.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SankeyChart.base.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.base.tsx"],"names":[],"mappings":";;;;AAAA,6BAA+B;AAC/B,2DAA0E;AAG1E,oCAAsC;AACtC,IAAM,aAAa,GAAG,8BAAkB,EAA8C,CAAC;AAEvF;IAAqC,2CAMpC;IAIC,yBAAY,KAAwB;QAApC,YACE,kBAAM,KAAK,CAAC,SAKb;QAJC,KAAI,CAAC,KAAK,GAAG;YACX,eAAe,EAAE,CAAC;YAClB,cAAc,EAAE,CAAC;SAClB,CAAC;;IACJ,CAAC;IACM,2CAAiB,GAAxB;QACE,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IAEM,4CAAkB,GAAzB,UAA0B,SAA4B;QACpD,IAAI,SAAS,CAAC,YAAY,KAAK,IAAI,CA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AAC;AAAD,CAAC,AAnJD,CAAqC,KAAK,CAAC,SAAS,GAmJnD;AAnJY,0CAAe","sourcesContent":["import * as React from 'react';\nimport { classNamesFunction, getId } from '@fluentui/react/lib/Utilities';\nimport { ISankeyChartProps, ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { IProcessedStyleSet } from '@fluentui/react/lib/Styling';\nimport * as d3Sankey from 'd3-sankey';\nconst getClassNames = classNamesFunction<ISankeyChartStyleProps, ISankeyChartStyles>();\n\nexport class SankeyChartBase extends React.Component<\n ISankeyChartProps,\n {\n containerWidth: number;\n containerHeight: number;\n }\n> {\n private _classNames: IProcessedStyleSet<ISankeyChartStyles>;\n private chartContainer: HTMLDivElement;\n private _reqID: number;\n constructor(props: ISankeyChartProps) {\n super(props);\n this.state = {\n containerHeight: 0,\n containerWidth: 0,\n };\n }\n public componentDidMount(): void {\n this._fitParentContainer();\n }\n\n public componentDidUpdate(prevProps: ISankeyChartProps): void {\n if (prevProps.shouldResize !== this.props.shouldResize) {\n this._fitParentContainer();\n }\n }\n public componentWillUnmount(): void {\n cancelAnimationFrame(this._reqID);\n }\n public render(): React.ReactNode {\n const { theme, className, styles, pathColor } = this.props;\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n width: this.state.containerWidth,\n height: this.state.containerHeight,\n pathColor: pathColor,\n className,\n });\n const margin = { top: 10, right: 0, bottom: 10, left: 0 };\n const width = this.state.containerWidth - margin.left - margin.right;\n const height =\n this.state.containerHeight - margin.top - margin.bottom > 0\n ? this.state.containerHeight - margin.top - margin.bottom\n : 0;\n\n const sankey = d3Sankey\n .sankey()\n .nodeWidth(5)\n .nodePadding(6)\n .extent([\n [1, 1],\n [width - 1, height - 6],\n ]);\n\n sankey(this.props.data.SankeyChartData!);\n const nodeData = this._createNodes(width);\n const linkData = this._createLinks();\n return (\n <div\n className={this._classNames.root}\n role={'presentation'}\n ref={(rootElem: HTMLDivElement) => (this.chartContainer = rootElem)}\n >\n <svg width={width} height={height} id={getId('sankeyChart')}>\n <g className={this._classNames.nodes}>{nodeData}</g>\n <g className={this._classNames.links} strokeOpacity={0.2}>\n {linkData}\n </g>\n </svg>\n </div>\n );\n }\n\n private _createLinks(): React.ReactNode[] | undefined {\n const links: React.ReactNode[] = [];\n if (this.props.data.SankeyChartData) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.props.data.SankeyChartData.links.forEach((singleLink: any, index: number) => {\n const path = d3Sankey.sankeyLinkHorizontal();\n const pathValue = path(singleLink);\n const link = (\n <path\n key={index}\n d={pathValue ? pathValue : undefined}\n strokeWidth={Math.max(1, singleLink.width)}\n id={getId('link')}\n >\n <title>\n <text>{singleLink.source.name + ' → ' + singleLink.target.name + '\\n' + singleLink.value}</text>\n </title>\n </path>\n );\n links.push(link);\n });\n }\n return links;\n }\n\n private _createNodes(width: number): React.ReactNode[] | undefined {\n const nodes: React.ReactNode[] = [];\n if (this.props.data.SankeyChartData) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.props.data.SankeyChartData.nodes.forEach((singleNode: any, index: number) => {\n const height = singleNode.y1 - singleNode.y0 > 0 ? singleNode.y1 - singleNode.y0 : 0;\n const node = (\n <g id={getId('nodeGElement')} key={index}>\n <rect\n x={singleNode.x0}\n y={singleNode.y0}\n height={height}\n width={singleNode.x1 - singleNode.x0}\n fill={singleNode.color}\n id={getId('nodeBar')}\n />\n <text\n x={singleNode.x0 < width / 2 ? singleNode.x1 + 6 : singleNode.x0 - 6}\n y={(singleNode.y1 + singleNode.y0) / 2}\n dy={'0.35em'}\n textAnchor={singleNode.x0 < width / 2 ? 'start' : 'end'}\n >\n {singleNode.name}\n </text>\n <title>\n <text>{singleNode.name + '\\n' + singleNode.value}</text>\n </title>\n </g>\n );\n nodes.push(node);\n });\n return nodes;\n }\n }\n private _fitParentContainer(): void {\n const { containerWidth, containerHeight } = this.state;\n this._reqID = requestAnimationFrame(() => {\n const container = this.props.parentRef ? this.props.parentRef : this.chartContainer;\n const currentContainerWidth = container.getBoundingClientRect().width;\n const currentContainerHeight = container.getBoundingClientRect().height;\n const shouldResize = containerWidth !== currentContainerWidth || containerHeight !== currentContainerHeight;\n if (shouldResize) {\n this.setState({\n containerWidth: currentContainerWidth,\n containerHeight: currentContainerHeight,\n });\n }\n });\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SankeyChart = void 0;
|
|
4
|
+
var Utilities_1 = require("@fluentui/react/lib-commonjs/Utilities");
|
|
5
|
+
var SankeyChart_base_1 = require("./SankeyChart.base");
|
|
6
|
+
var SankeyChart_styles_1 = require("./SankeyChart.styles");
|
|
7
|
+
// Create a SankeyChart variant which uses these default styles and this styled subcomponent.
|
|
8
|
+
exports.SankeyChart = Utilities_1.styled(SankeyChart_base_1.SankeyChartBase, SankeyChart_styles_1.getStyles);
|
|
9
|
+
//# sourceMappingURL=SankeyChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SankeyChart.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,uDAAqD;AACrD,2DAAiD;AAEjD,6FAA6F;AAChF,QAAA,WAAW,GAA+C,kBAAM,CAI3E,kCAAe,EAAE,8BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISankeyChartProps, ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\nimport { SankeyChartBase } from './SankeyChart.base';\nimport { getStyles } from './SankeyChart.styles';\n\n// Create a SankeyChart variant which uses these default styles and this styled subcomponent.\nexport const SankeyChart: React.FunctionComponent<ISankeyChartProps> = styled<\n ISankeyChartProps,\n ISankeyChartStyleProps,\n ISankeyChartStyles\n>(SankeyChartBase, getStyles);\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStyles = void 0;
|
|
4
|
+
var getStyles = function (props) {
|
|
5
|
+
var className = props.className, theme = props.theme, pathColor = props.pathColor;
|
|
6
|
+
return {
|
|
7
|
+
root: [
|
|
8
|
+
theme.fonts.medium,
|
|
9
|
+
{
|
|
10
|
+
display: 'flex',
|
|
11
|
+
width: '100%',
|
|
12
|
+
height: '100%',
|
|
13
|
+
flexDirection: 'column',
|
|
14
|
+
overflow: 'hidden',
|
|
15
|
+
},
|
|
16
|
+
className,
|
|
17
|
+
],
|
|
18
|
+
links: {
|
|
19
|
+
stroke: pathColor ? pathColor : theme.palette.blue,
|
|
20
|
+
fill: 'none',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.getStyles = getStyles;
|
|
25
|
+
//# sourceMappingURL=SankeyChart.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SankeyChart.styles.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.styles.ts"],"names":[],"mappings":";;;AAEO,IAAM,SAAS,GAAG,UAAC,KAA6B;IAC7C,IAAA,SAAS,GAAuB,KAAK,UAA5B,EAAE,KAAK,GAAgB,KAAK,MAArB,EAAE,SAAS,GAAK,KAAK,UAAV,CAAW;IAC9C,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB;gBACE,OAAO,EAAE,MAAM;gBACf,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,QAAQ;gBACvB,QAAQ,EAAE,QAAQ;aACnB;YACD,SAAS;SACV;QACD,KAAK,EAAE;YACL,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI;YAClD,IAAI,EAAE,MAAM;SACb;KACF,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,SAAS,aAmBpB","sourcesContent":["import { ISankeyChartStyleProps, ISankeyChartStyles } from './SankeyChart.types';\n\nexport const getStyles = (props: ISankeyChartStyleProps): ISankeyChartStyles => {\n const { className, theme, pathColor } = props;\n return {\n root: [\n theme.fonts.medium,\n {\n display: 'flex',\n width: '100%',\n height: '100%',\n flexDirection: 'column',\n overflow: 'hidden',\n },\n className,\n ],\n links: {\n stroke: pathColor ? pathColor : theme.palette.blue,\n fill: 'none',\n },\n };\n};\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ITheme, IStyle } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
|
+
import { IChartProps } from '../../types/IDataPoint';
|
|
4
|
+
export { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';
|
|
5
|
+
export interface ISankeyChartProps {
|
|
6
|
+
/**
|
|
7
|
+
* Data to render in the chart.
|
|
8
|
+
*/
|
|
9
|
+
data: IChartProps;
|
|
10
|
+
/**
|
|
11
|
+
* Width of the chart.
|
|
12
|
+
*/
|
|
13
|
+
width?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Height of the chart.
|
|
16
|
+
*/
|
|
17
|
+
height?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Additional CSS class(es) to apply to the SankeyChart.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Theme (provided through customization.)
|
|
24
|
+
*/
|
|
25
|
+
theme?: ITheme;
|
|
26
|
+
/**
|
|
27
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
28
|
+
*/
|
|
29
|
+
styles?: IStyleFunctionOrObject<ISankeyChartStyleProps, ISankeyChartStyles>;
|
|
30
|
+
/**
|
|
31
|
+
* this prop takes its parent as a HTML element to define the width and height of the Sankey chart
|
|
32
|
+
*/
|
|
33
|
+
parentRef?: HTMLElement | null;
|
|
34
|
+
/**
|
|
35
|
+
* should chart resize when parent resize.
|
|
36
|
+
*/
|
|
37
|
+
shouldResize?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Color for path
|
|
40
|
+
*/
|
|
41
|
+
pathColor?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ISankeyChartStyleProps {
|
|
44
|
+
theme: ITheme;
|
|
45
|
+
className?: string;
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
pathColor?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ISankeyChartStyles {
|
|
51
|
+
/**
|
|
52
|
+
* Style for the root element.
|
|
53
|
+
*/
|
|
54
|
+
root?: IStyle;
|
|
55
|
+
/**
|
|
56
|
+
* Style for the nodes.
|
|
57
|
+
*/
|
|
58
|
+
nodes?: IStyle;
|
|
59
|
+
/**
|
|
60
|
+
* Style for the links.
|
|
61
|
+
*/
|
|
62
|
+
links?: IStyle;
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SankeyChart.types.js","sourceRoot":"../src/","sources":["components/SankeyChart/SankeyChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IChartProps } from '../../types/IDataPoint';\n\nexport { IChartProps, IDataPoint, ISankeyChartData } from '../../types/IDataPoint';\n\nexport interface ISankeyChartProps {\n /**\n * Data to render in the chart.\n */\n data: IChartProps;\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of the chart.\n */\n height?: number;\n\n /**\n * Additional CSS class(es) to apply to the SankeyChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ISankeyChartStyleProps, ISankeyChartStyles>;\n\n /**\n * this prop takes its parent as a HTML element to define the width and height of the Sankey chart\n */\n parentRef?: HTMLElement | null;\n\n /**\n * should chart resize when parent resize.\n */\n shouldResize?: number;\n\n /**\n * Color for path\n */\n pathColor?: string;\n}\n\nexport interface ISankeyChartStyleProps {\n theme: ITheme;\n className?: string;\n width: number;\n height: number;\n pathColor?: string;\n}\n\nexport interface ISankeyChartStyles {\n /**\n * Style for the root element.\n */\n root?: IStyle;\n\n /**\n * Style for the nodes.\n */\n nodes?: IStyle;\n\n /**\n * Style for the links.\n */\n links?: IStyle;\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./SankeyChart"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./SankeyChart.types"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/SankeyChart/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,8DAAoC","sourcesContent":["export * from './SankeyChart';\nexport * from './SankeyChart.types';\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ILineChartDataPoint } from '../../types/IDataPoint';
|
|
3
|
+
import { ISparklineProps } from '../../index';
|
|
4
|
+
export interface ISparklineState {
|
|
5
|
+
_points: ILineChartDataPoint[] | null;
|
|
6
|
+
_width: number;
|
|
7
|
+
_height: number;
|
|
8
|
+
_valueTextWidth: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class SparklineBase extends React.Component<ISparklineProps, ISparklineState> {
|
|
11
|
+
private margin;
|
|
12
|
+
private x;
|
|
13
|
+
private y;
|
|
14
|
+
private area;
|
|
15
|
+
private line;
|
|
16
|
+
constructor(props: ISparklineProps);
|
|
17
|
+
componentDidMount(): void;
|
|
18
|
+
drawSparkline(): JSX.Element;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SparklineBase = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var React = require("react");
|
|
6
|
+
var d3_scale_1 = require("d3-scale");
|
|
7
|
+
var d3_shape_1 = require("d3-shape");
|
|
8
|
+
var d3_array_1 = require("d3-array");
|
|
9
|
+
var react_focus_1 = require("@fluentui/react-focus");
|
|
10
|
+
var Utilities_1 = require("@fluentui/react/lib-commonjs/Utilities");
|
|
11
|
+
var getClassNames = Utilities_1.classNamesFunction();
|
|
12
|
+
var SparklineBase = /** @class */ (function (_super) {
|
|
13
|
+
tslib_1.__extends(SparklineBase, _super);
|
|
14
|
+
function SparklineBase(props) {
|
|
15
|
+
var _this = _super.call(this, props) || this;
|
|
16
|
+
_this.margin = {
|
|
17
|
+
top: 2,
|
|
18
|
+
right: 0,
|
|
19
|
+
bottom: 0,
|
|
20
|
+
left: 0,
|
|
21
|
+
};
|
|
22
|
+
_this.state = {
|
|
23
|
+
_points: null,
|
|
24
|
+
_width: _this.props.width || 80,
|
|
25
|
+
_height: _this.props.height || 20,
|
|
26
|
+
_valueTextWidth: _this.props.valueTextWidth || 80,
|
|
27
|
+
};
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
SparklineBase.prototype.componentDidMount = function () {
|
|
31
|
+
var _this = this;
|
|
32
|
+
var area = d3_shape_1.area()
|
|
33
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
34
|
+
.x(function (d) { return _this.x(d.x); })
|
|
35
|
+
.y0(this.state._height)
|
|
36
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
37
|
+
.y1(function (d) { return _this.y(d.y); })
|
|
38
|
+
.curve(d3_shape_1.curveLinear);
|
|
39
|
+
this.area = area;
|
|
40
|
+
var line = d3_shape_1.line()
|
|
41
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
42
|
+
.x(function (d) { return _this.x(d.x); })
|
|
43
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
44
|
+
.y(function (d) { return _this.y(d.y); })
|
|
45
|
+
.curve(d3_shape_1.curveLinear);
|
|
46
|
+
this.line = line;
|
|
47
|
+
var points = this.props.data.lineChartData[0].data;
|
|
48
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
49
|
+
var _a = d3_array_1.extent(points, function (d) { return d.x; }), xMin = _a[0], xMax = _a[1];
|
|
50
|
+
this.x = d3_scale_1.scaleLinear()
|
|
51
|
+
.domain([xMin, xMax])
|
|
52
|
+
.range([this.margin.left, this.state._width - this.margin.right]);
|
|
53
|
+
this.y = d3_scale_1.scaleLinear()
|
|
54
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
55
|
+
.domain([0, d3_array_1.max(points, function (d) { return d.y; })])
|
|
56
|
+
.range([this.state._height - this.margin.bottom, this.margin.top]);
|
|
57
|
+
this.setState({
|
|
58
|
+
_points: points,
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
SparklineBase.prototype.drawSparkline = function () {
|
|
62
|
+
return (React.createElement(React.Fragment, null,
|
|
63
|
+
React.createElement("path", { className: "line", d: this.line(this.state._points), fill: 'transparent', opacity: 1, strokeWidth: 2, stroke: this.props.data.lineChartData[0].color }),
|
|
64
|
+
React.createElement("path", { className: "area", d: this.area(this.state._points), opacity: 1, fillOpacity: 0.2, fill: this.props.data.lineChartData[0].color, "aria-label": "Sparkline with label " + this.props.data.lineChartData[0].legend })));
|
|
65
|
+
};
|
|
66
|
+
SparklineBase.prototype.render = function () {
|
|
67
|
+
var classNames = getClassNames(this.props.styles, {
|
|
68
|
+
theme: this.props.theme,
|
|
69
|
+
});
|
|
70
|
+
return (React.createElement(react_focus_1.FocusZone, { direction: react_focus_1.FocusZoneDirection.horizontal, isCircularNavigation: true, className: classNames.inlineBlock },
|
|
71
|
+
React.createElement("div", { className: classNames.inlineBlock },
|
|
72
|
+
this.state._width >= 50 && this.state._height >= 16 ? (React.createElement("svg", { width: this.state._width, height: this.state._height, "data-is-focusable": true }, this.state._points ? this.drawSparkline() : null)) : (React.createElement(React.Fragment, null)),
|
|
73
|
+
this.props.showLegend && this.props.data.lineChartData[0].legend ? (React.createElement("svg", { width: this.state._valueTextWidth, height: this.state._height, "data-is-focusable": true },
|
|
74
|
+
React.createElement("text", { x: "0%", dx: 8, y: "100%", dy: -5, className: classNames.valueText }, this.props.data.lineChartData[0].legend))) : (React.createElement(React.Fragment, null)))));
|
|
75
|
+
};
|
|
76
|
+
return SparklineBase;
|
|
77
|
+
}(React.Component));
|
|
78
|
+
exports.SparklineBase = SparklineBase;
|
|
79
|
+
//# sourceMappingURL=Sparkline.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sparkline.base.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.base.tsx"],"names":[],"mappings":";;;;AAAA,6BAA+B;AAC/B,qCAAwD;AACxD,qCAAwF;AACxF,qCAA4D;AAC5D,qDAAsE;AAEtE,2DAAmE;AAEnE,IAAM,aAAa,GAAG,8BAAkB,EAA0C,CAAC;AASnF;IAAmC,yCAAiD;IAgBlF,uBAAY,KAAsB;QAAlC,YACE,kBAAM,KAAK,CAAC,SAOb;QAvBO,YAAM,GAAG;YACf,GAAG,EAAE,CAAC;YACN,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,CAAC;SACR,CAAC;QAYA,KAAI,CAAC,KAAK,GAAG;YACX,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,KAAI,CAAC,KAAK,CAAC,KAAM,IAAI,EAAE;YAC/B,OAAO,EAAE,KAAI,CAAC,KAAK,CAAC,MAAO,IAAI,EAAE;YACjC,eAAe,EAAE,KAAI,CAAC,KAAK,CAAC,cAAe,IAAI,EAAE;SAClD,CAAC;;IACJ,CAAC;IAEM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IACH,oBAAC;AAAD,CAAC,AApHD,CAAmC,KAAK,CAAC,SAAS,GAoHjD;AApHY,sCAAa","sourcesContent":["import * as React from 'react';\nimport { scaleLinear as d3ScaleLinear } from 'd3-scale';\nimport { area as d3Area, line as d3Line, curveLinear as d3curveLinear } from 'd3-shape';\nimport { max as d3Max, extent as d3Extent } from 'd3-array';\nimport { FocusZone, FocusZoneDirection } from '@fluentui/react-focus';\nimport { ILineChartDataPoint } from '../../types/IDataPoint';\nimport { classNamesFunction } from '@fluentui/react/lib/Utilities';\nimport { ISparklineProps, ISparklineStyleProps, ISparklineStyles } from '../../index';\nconst getClassNames = classNamesFunction<ISparklineStyleProps, ISparklineStyles>();\n\nexport interface ISparklineState {\n _points: ILineChartDataPoint[] | null;\n _width: number;\n _height: number;\n _valueTextWidth: number;\n}\n\nexport class SparklineBase extends React.Component<ISparklineProps, ISparklineState> {\n private margin = {\n top: 2,\n right: 0,\n bottom: 0,\n left: 0,\n };\n\n /* eslint-disable @typescript-eslint/no-explicit-any */\n private x: any;\n\n /* eslint-disable @typescript-eslint/no-explicit-any */\n private y: any;\n private area: any;\n private line: any;\n\n constructor(props: ISparklineProps) {\n super(props);\n this.state = {\n _points: null,\n _width: this.props.width! || 80,\n _height: this.props.height! || 20,\n _valueTextWidth: this.props.valueTextWidth! || 80,\n };\n }\n\n public componentDidMount() {\n const area = d3Area()\n /* eslint-disable @typescript-eslint/no-explicit-any */\n .x((d: any) => this.x(d.x))\n .y0(this.state._height)\n /* eslint-disable @typescript-eslint/no-explicit-any */\n .y1((d: any) => this.y(d.y))\n .curve(d3curveLinear);\n this.area = area;\n\n const line = d3Line()\n /* eslint-disable @typescript-eslint/no-explicit-any */\n .x((d: any) => this.x(d.x))\n /* eslint-disable @typescript-eslint/no-explicit-any */\n .y((d: any) => this.y(d.y))\n .curve(d3curveLinear);\n this.line = line;\n\n const points = this.props.data!.lineChartData![0].data;\n\n /* eslint-disable @typescript-eslint/no-explicit-any */\n const [xMin, xMax] = d3Extent(points, (d: any) => d.x);\n\n this.x = d3ScaleLinear()\n .domain([xMin, xMax])\n .range([this.margin.left!, this.state._width - this.margin.right!]);\n this.y = d3ScaleLinear()\n /* eslint-disable @typescript-eslint/no-explicit-any */\n .domain([0, d3Max(points, (d: any) => d.y)])\n .range([this.state._height - this.margin.bottom!, this.margin.top!]);\n\n this.setState({\n _points: points,\n });\n }\n\n public drawSparkline() {\n return (\n <>\n <path\n className=\"line\"\n d={this.line(this.state._points)}\n fill={'transparent'}\n opacity={1}\n strokeWidth={2}\n stroke={this.props.data!.lineChartData![0].color!}\n />\n <path\n className=\"area\"\n d={this.area(this.state._points)}\n opacity={1}\n fillOpacity={0.2}\n fill={this.props.data!.lineChartData![0].color!}\n aria-label={`Sparkline with label ${this.props.data!.lineChartData![0].legend!}`}\n />\n </>\n );\n }\n\n public render() {\n const classNames = getClassNames(this.props.styles!, {\n theme: this.props.theme!,\n });\n return (\n <FocusZone\n direction={FocusZoneDirection.horizontal}\n isCircularNavigation={true}\n className={classNames.inlineBlock}\n >\n <div className={classNames.inlineBlock}>\n {this.state._width >= 50 && this.state._height >= 16 ? (\n <svg width={this.state._width} height={this.state._height} data-is-focusable={true}>\n {this.state._points ? this.drawSparkline() : null}\n </svg>\n ) : (\n <></>\n )}\n {this.props.showLegend && this.props.data!.lineChartData![0].legend ? (\n <svg width={this.state._valueTextWidth} height={this.state._height} data-is-focusable={true}>\n <text x=\"0%\" dx={8} y=\"100%\" dy={-5} className={classNames.valueText}>\n {this.props.data!.lineChartData![0].legend!}\n </text>\n </svg>\n ) : (\n <></>\n )}\n </div>\n </FocusZone>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Sparkline = void 0;
|
|
4
|
+
var Utilities_1 = require("@fluentui/react/lib-commonjs/Utilities");
|
|
5
|
+
var Sparkline_base_1 = require("./Sparkline.base");
|
|
6
|
+
var Sparkline_styles_1 = require("./Sparkline.styles");
|
|
7
|
+
// Create a Sparkline variant which uses these default styles and this styled subcomponent.
|
|
8
|
+
exports.Sparkline = Utilities_1.styled(Sparkline_base_1.SparklineBase, Sparkline_styles_1.getStyles);
|
|
9
|
+
//# sourceMappingURL=Sparkline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sparkline.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.tsx"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD,mDAAiD;AACjD,uDAA+C;AAE/C,2FAA2F;AAC9E,QAAA,SAAS,GAA6C,kBAAM,CAIvE,8BAAa,EAAE,4BAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { ISparklineStyles, ISparklineProps, ISparklineStyleProps } from '../../index';\nimport { SparklineBase } from './Sparkline.base';\nimport { getStyles } from './Sparkline.styles';\n\n// Create a Sparkline variant which uses these default styles and this styled subcomponent.\nexport const Sparkline: React.FunctionComponent<ISparklineProps> = styled<\n ISparklineProps,\n ISparklineStyleProps,\n ISparklineStyles\n>(SparklineBase, getStyles);\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStyles = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var getStyles = function (props) {
|
|
6
|
+
return {
|
|
7
|
+
inlineBlock: {
|
|
8
|
+
display: 'inline',
|
|
9
|
+
},
|
|
10
|
+
valueText: tslib_1.__assign({}, props.theme.fonts.smallPlus),
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.getStyles = getStyles;
|
|
14
|
+
//# sourceMappingURL=Sparkline.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sparkline.styles.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.styles.ts"],"names":[],"mappings":";;;;AAEO,IAAM,SAAS,GAAG,UAAC,KAA2B;IACnD,OAAO;QACL,WAAW,EAAE;YACX,OAAO,EAAE,QAAQ;SAClB;QACD,SAAS,uBACJ,KAAK,CAAC,KAAM,CAAC,KAAK,CAAC,SAAS,CAChC;KACF,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,SAAS,aASpB","sourcesContent":["import { ISparklineStyleProps, ISparklineStyles } from './Sparkline.types';\n\nexport const getStyles = (props: ISparklineStyleProps): ISparklineStyles => {\n return {\n inlineBlock: {\n display: 'inline',\n },\n valueText: {\n ...props.theme!.fonts.smallPlus,\n },\n };\n};\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ITheme, IStyle } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
3
|
+
import { IChartProps } from '../../types/IDataPoint';
|
|
4
|
+
import { ICartesianChartStyleProps } from '../CommonComponents/index';
|
|
5
|
+
export interface ISparklineStyleProps extends ICartesianChartStyleProps {
|
|
6
|
+
}
|
|
7
|
+
export interface ISparklineProps {
|
|
8
|
+
/**
|
|
9
|
+
* An array of chart data points for the Sparkline chart
|
|
10
|
+
*/
|
|
11
|
+
data?: IChartProps;
|
|
12
|
+
/**
|
|
13
|
+
* Width of chart
|
|
14
|
+
* * @default 80
|
|
15
|
+
*/
|
|
16
|
+
width?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Height of chart
|
|
19
|
+
* @default 20
|
|
20
|
+
*/
|
|
21
|
+
height?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Width of value text
|
|
24
|
+
* * @default 80
|
|
25
|
+
*/
|
|
26
|
+
valueTextWidth?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Additional CSS class(es) to apply to the SparklineChart.
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Theme (provided through customization.)
|
|
33
|
+
*/
|
|
34
|
+
theme?: ITheme;
|
|
35
|
+
/**
|
|
36
|
+
* The prop used to define the culture to localized the numbers
|
|
37
|
+
*/
|
|
38
|
+
culture?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Prop used to determine whether to show the legend or not
|
|
41
|
+
*/
|
|
42
|
+
showLegend?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
45
|
+
*/
|
|
46
|
+
styles?: IStyleFunctionOrObject<ISparklineStyleProps, ISparklineStyles>;
|
|
47
|
+
}
|
|
48
|
+
export interface ISparklineStyles {
|
|
49
|
+
inlineBlock?: IStyle;
|
|
50
|
+
valueText?: IStyle;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sparkline.types.js","sourceRoot":"../src/","sources":["components/Sparkline/Sparkline.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IChartProps } from '../../types/IDataPoint';\nimport { ICartesianChartStyleProps } from '../CommonComponents/index';\n\nexport interface ISparklineStyleProps extends ICartesianChartStyleProps {}\n\nexport interface ISparklineProps {\n /**\n * An array of chart data points for the Sparkline chart\n */\n data?: IChartProps;\n\n /**\n * Width of chart\n * * @default 80\n */\n width?: number;\n\n /**\n * Height of chart\n * @default 20\n */\n height?: number;\n\n /**\n * Width of value text\n * * @default 80\n */\n valueTextWidth?: number;\n\n /**\n * Additional CSS class(es) to apply to the SparklineChart.\n */\n className?: string;\n\n /**\n * Theme (provided through customization.)\n */\n theme?: ITheme;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n\n /**\n * Prop used to determine whether to show the legend or not\n */\n showLegend?: boolean;\n\n /**\n * Call to provide customized styling that will layer on top of the variant rules.\n */\n styles?: IStyleFunctionOrObject<ISparklineStyleProps, ISparklineStyles>;\n}\n\nexport interface ISparklineStyles {\n inlineBlock?: IStyle;\n valueText?: IStyle;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Sparkline/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,4DAAkC","sourcesContent":["export * from './Sparkline';\nexport * from './Sparkline.types';\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IAccessibilityProps, IChartDataPoint, IMultiStackedBarChartProps } from './index';
|
|
3
|
+
export interface IRefArrayData {
|
|
4
|
+
legendText?: string;
|
|
5
|
+
refElement?: SVGGElement;
|
|
6
|
+
}
|
|
7
|
+
export interface IMultiStackedBarChartState {
|
|
8
|
+
isCalloutVisible: boolean;
|
|
9
|
+
refArray: IRefArrayData[];
|
|
10
|
+
selectedLegendTitle: string;
|
|
11
|
+
refSelected: any;
|
|
12
|
+
dataForHoverCard: number;
|
|
13
|
+
color: string;
|
|
14
|
+
isLegendHovered: boolean;
|
|
15
|
+
isLegendSelected: boolean;
|
|
16
|
+
xCalloutValue?: string;
|
|
17
|
+
yCalloutValue?: string;
|
|
18
|
+
dataPointCalloutProps?: IChartDataPoint;
|
|
19
|
+
callOutAccessibilityData?: IAccessibilityProps;
|
|
20
|
+
}
|
|
21
|
+
export declare class MultiStackedBarChartBase extends React.Component<IMultiStackedBarChartProps, IMultiStackedBarChartState> {
|
|
22
|
+
static defaultProps: Partial<IMultiStackedBarChartProps>;
|
|
23
|
+
private _classNames;
|
|
24
|
+
private _calloutId;
|
|
25
|
+
private _calloutAnchorPoint;
|
|
26
|
+
constructor(props: IMultiStackedBarChartProps);
|
|
27
|
+
render(): JSX.Element;
|
|
28
|
+
private _createBarsAndLegends;
|
|
29
|
+
private _onBarFocus;
|
|
30
|
+
private _refCallback;
|
|
31
|
+
private _adjustProps;
|
|
32
|
+
private _onHover;
|
|
33
|
+
private _getLegendData;
|
|
34
|
+
private _onClick;
|
|
35
|
+
private _onLeave;
|
|
36
|
+
private _onBarHover;
|
|
37
|
+
private _onBarLeave;
|
|
38
|
+
private _handleChartMouseLeave;
|
|
39
|
+
private _redirectToUrl;
|
|
40
|
+
private _closeCallout;
|
|
41
|
+
}
|