@fluentui/react-charting 5.16.24 → 5.16.25
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 +42 -1
- package/CHANGELOG.md +14 -2
- package/config/setup-env.js +1 -0
- package/docs/TestPlans/BasicDonutChart.png +0 -0
- package/docs/TestPlans/DonutChart/ComponentTests.md +35 -0
- package/lib/AreaChart.d.ts +1 -0
- package/lib/AreaChart.js +2 -0
- package/lib/AreaChart.js.map +1 -0
- package/lib/CartesianChart.d.ts +1 -0
- package/lib/CartesianChart.js +2 -0
- package/lib/CartesianChart.js.map +1 -0
- package/lib/DonutChart.d.ts +1 -0
- package/lib/DonutChart.js +2 -0
- package/lib/DonutChart.js.map +1 -0
- package/lib/GroupedVerticalBarChart.d.ts +1 -0
- package/lib/GroupedVerticalBarChart.js +2 -0
- package/lib/GroupedVerticalBarChart.js.map +1 -0
- package/lib/HeatMapChart.d.ts +1 -0
- package/lib/HeatMapChart.js +2 -0
- package/lib/HeatMapChart.js.map +1 -0
- package/lib/HorizontalBarChart.d.ts +1 -0
- package/lib/HorizontalBarChart.js +2 -0
- package/lib/HorizontalBarChart.js.map +1 -0
- package/lib/Legends.d.ts +1 -0
- package/lib/Legends.js +2 -0
- package/lib/Legends.js.map +1 -0
- package/lib/LineChart.d.ts +1 -0
- package/lib/LineChart.js +2 -0
- package/lib/LineChart.js.map +1 -0
- package/lib/PieChart.d.ts +1 -0
- package/lib/PieChart.js +2 -0
- package/lib/PieChart.js.map +1 -0
- package/lib/SankeyChart.d.ts +1 -0
- package/lib/SankeyChart.js +2 -0
- package/lib/SankeyChart.js.map +1 -0
- package/lib/Sparkline.d.ts +1 -0
- package/lib/Sparkline.js +2 -0
- package/lib/Sparkline.js.map +1 -0
- package/lib/StackedBarChart.d.ts +1 -0
- package/lib/StackedBarChart.js +2 -0
- package/lib/StackedBarChart.js.map +1 -0
- package/lib/Styling.d.ts +2 -0
- package/lib/Styling.js +8 -0
- package/lib/Styling.js.map +1 -0
- package/lib/TreeChart.d.ts +1 -0
- package/lib/TreeChart.js +2 -0
- package/lib/TreeChart.js.map +1 -0
- package/lib/Utilities.d.ts +2 -0
- package/lib/Utilities.js +20 -0
- package/lib/Utilities.js.map +1 -0
- package/lib/VerticalBarChart.d.ts +1 -0
- package/lib/VerticalBarChart.js +2 -0
- package/lib/VerticalBarChart.js.map +1 -0
- package/lib/VerticalStackedBarChart.d.ts +1 -0
- package/lib/VerticalStackedBarChart.js +2 -0
- package/lib/VerticalStackedBarChart.js.map +1 -0
- package/lib/components/AreaChart/AreaChart.base.d.ts +92 -0
- package/lib/components/AreaChart/AreaChart.base.js +562 -0
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -0
- package/lib/components/AreaChart/AreaChart.d.ts +3 -0
- package/lib/components/AreaChart/AreaChart.js +6 -0
- package/lib/components/AreaChart/AreaChart.js.map +1 -0
- package/lib/components/AreaChart/AreaChart.styles.d.ts +2 -0
- package/lib/components/AreaChart/AreaChart.styles.js +7 -0
- package/lib/components/AreaChart/AreaChart.styles.js.map +1 -0
- package/lib/components/AreaChart/AreaChart.types.d.ts +37 -0
- package/lib/components/AreaChart/AreaChart.types.js +2 -0
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -0
- package/lib/components/AreaChart/index.d.ts +2 -0
- package/lib/components/AreaChart/index.js +3 -0
- package/lib/components/AreaChart/index.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.base.d.ts +43 -0
- package/lib/components/CommonComponents/CartesianChart.base.js +331 -0
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.d.ts +3 -0
- package/lib/components/CommonComponents/CartesianChart.js +5 -0
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
- package/lib/components/CommonComponents/CartesianChart.styles.js +163 -0
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -0
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +428 -0
- package/lib/components/CommonComponents/CartesianChart.types.js +2 -0
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib/components/CommonComponents/index.d.ts +2 -0
- package/lib/components/CommonComponents/index.js +3 -0
- package/lib/components/CommonComponents/index.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.d.ts +21 -0
- package/lib/components/DonutChart/Arc/Arc.js +86 -0
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
- package/lib/components/DonutChart/Arc/Arc.styles.js +28 -0
- package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -0
- package/lib/components/DonutChart/Arc/Arc.types.d.ts +124 -0
- package/lib/components/DonutChart/Arc/Arc.types.js +2 -0
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib/components/DonutChart/Arc/index.d.ts +2 -0
- package/lib/components/DonutChart/Arc/index.js +3 -0
- package/lib/components/DonutChart/Arc/index.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.base.d.ts +50 -0
- package/lib/components/DonutChart/DonutChart.base.js +211 -0
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.d.ts +3 -0
- package/lib/components/DonutChart/DonutChart.js +6 -0
- package/lib/components/DonutChart/DonutChart.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.styles.d.ts +2 -0
- package/lib/components/DonutChart/DonutChart.styles.js +30 -0
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -0
- package/lib/components/DonutChart/DonutChart.types.d.ts +63 -0
- package/lib/components/DonutChart/DonutChart.types.js +2 -0
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.d.ts +15 -0
- package/lib/components/DonutChart/Pie/Pie.js +71 -0
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
- package/lib/components/DonutChart/Pie/Pie.styles.js +19 -0
- package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -0
- package/lib/components/DonutChart/Pie/Pie.types.d.ts +96 -0
- package/lib/components/DonutChart/Pie/Pie.types.js +2 -0
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib/components/DonutChart/Pie/index.d.ts +2 -0
- package/lib/components/DonutChart/Pie/index.js +3 -0
- package/lib/components/DonutChart/Pie/index.js.map +1 -0
- package/lib/components/DonutChart/index.d.ts +3 -0
- package/lib/components/DonutChart/index.js +4 -0
- package/lib/components/DonutChart/index.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +381 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +6 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +17 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +2 -0
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
- package/lib/components/GroupedVerticalBarChart/index.d.ts +2 -0
- package/lib/components/GroupedVerticalBarChart/index.js +3 -0
- package/lib/components/GroupedVerticalBarChart/index.js.map +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
- package/lib/components/HeatMapChart/HeatMapChart.base.js +498 -0
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.d.ts +3 -0
- package/lib/components/HeatMapChart/HeatMapChart.js +5 -0
- package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
- package/lib/components/HeatMapChart/HeatMapChart.styles.js +24 -0
- package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
- package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
- package/lib/components/HeatMapChart/HeatMapChart.types.js +2 -0
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
- package/lib/components/HeatMapChart/index.d.ts +2 -0
- package/lib/components/HeatMapChart/index.js +3 -0
- package/lib/components/HeatMapChart/index.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +237 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js +6 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js +69 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js +6 -0
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib/components/HorizontalBarChart/index.d.ts +3 -0
- package/lib/components/HorizontalBarChart/index.js +4 -0
- package/lib/components/HorizontalBarChart/index.js.map +1 -0
- package/lib/components/Legends/Legends.base.d.ts +44 -0
- package/lib/components/Legends/Legends.base.js +293 -0
- package/lib/components/Legends/Legends.base.js.map +1 -0
- package/lib/components/Legends/Legends.d.ts +3 -0
- package/lib/components/Legends/Legends.js +5 -0
- package/lib/components/Legends/Legends.js.map +1 -0
- package/lib/components/Legends/Legends.styles.d.ts +2 -0
- package/lib/components/Legends/Legends.styles.js +103 -0
- package/lib/components/Legends/Legends.styles.js.map +1 -0
- package/lib/components/Legends/Legends.types.d.ts +169 -0
- package/lib/components/Legends/Legends.types.js +2 -0
- package/lib/components/Legends/Legends.types.js.map +1 -0
- package/lib/components/Legends/index.d.ts +3 -0
- package/lib/components/Legends/index.js +4 -0
- package/lib/components/Legends/index.js.map +1 -0
- package/lib/components/Legends/shape.d.ts +9 -0
- package/lib/components/Legends/shape.js +24 -0
- package/lib/components/Legends/shape.js.map +1 -0
- package/lib/components/LineChart/LineChart.base.d.ts +84 -0
- package/lib/components/LineChart/LineChart.base.js +815 -0
- package/lib/components/LineChart/LineChart.base.js.map +1 -0
- package/lib/components/LineChart/LineChart.d.ts +3 -0
- package/lib/components/LineChart/LineChart.js +6 -0
- package/lib/components/LineChart/LineChart.js.map +1 -0
- package/lib/components/LineChart/LineChart.styles.d.ts +2 -0
- package/lib/components/LineChart/LineChart.styles.js +7 -0
- package/lib/components/LineChart/LineChart.styles.js.map +1 -0
- package/lib/components/LineChart/LineChart.types.d.ts +72 -0
- package/lib/components/LineChart/LineChart.types.js +2 -0
- package/lib/components/LineChart/LineChart.types.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js +93 -0
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js +37 -0
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js +37 -0
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib/components/LineChart/index.d.ts +3 -0
- package/lib/components/LineChart/index.js +4 -0
- package/lib/components/LineChart/index.js.map +1 -0
- package/lib/components/PieChart/Arc/Arc.d.ts +12 -0
- package/lib/components/PieChart/Arc/Arc.js +57 -0
- package/lib/components/PieChart/Arc/Arc.js.map +1 -0
- package/lib/components/PieChart/Arc/Arc.styles.d.ts +2 -0
- package/lib/components/PieChart/Arc/Arc.styles.js +8 -0
- package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -0
- package/lib/components/PieChart/Arc/Arc.types.d.ts +60 -0
- package/lib/components/PieChart/Arc/Arc.types.js +2 -0
- package/lib/components/PieChart/Arc/Arc.types.js.map +1 -0
- package/lib/components/PieChart/Arc/index.d.ts +2 -0
- package/lib/components/PieChart/Arc/index.js +3 -0
- package/lib/components/PieChart/Arc/index.js.map +1 -0
- package/lib/components/PieChart/Pie/Pie.d.ts +10 -0
- package/lib/components/PieChart/Pie/Pie.js +35 -0
- package/lib/components/PieChart/Pie/Pie.js.map +1 -0
- package/lib/components/PieChart/Pie/Pie.styles.d.ts +2 -0
- package/lib/components/PieChart/Pie/Pie.styles.js +6 -0
- package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -0
- package/lib/components/PieChart/Pie/Pie.types.d.ts +46 -0
- package/lib/components/PieChart/Pie/Pie.types.js +2 -0
- package/lib/components/PieChart/Pie/Pie.types.js.map +1 -0
- package/lib/components/PieChart/Pie/index.d.ts +2 -0
- package/lib/components/PieChart/Pie/index.js +3 -0
- package/lib/components/PieChart/Pie/index.js.map +1 -0
- package/lib/components/PieChart/PieChart.base.d.ts +7 -0
- package/lib/components/PieChart/PieChart.base.js +34 -0
- package/lib/components/PieChart/PieChart.base.js.map +1 -0
- package/lib/components/PieChart/PieChart.d.ts +3 -0
- package/lib/components/PieChart/PieChart.js +6 -0
- package/lib/components/PieChart/PieChart.js.map +1 -0
- package/lib/components/PieChart/PieChart.styles.d.ts +2 -0
- package/lib/components/PieChart/PieChart.styles.js +29 -0
- package/lib/components/PieChart/PieChart.styles.js.map +1 -0
- package/lib/components/PieChart/PieChart.types.d.ts +63 -0
- package/lib/components/PieChart/PieChart.types.js +2 -0
- package/lib/components/PieChart/PieChart.types.js.map +1 -0
- package/lib/components/PieChart/index.d.ts +2 -0
- package/lib/components/PieChart/index.js +3 -0
- package/lib/components/PieChart/index.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.base.d.ts +95 -0
- package/lib/components/SankeyChart/SankeyChart.base.js +674 -0
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.d.ts +3 -0
- package/lib/components/SankeyChart/SankeyChart.js +6 -0
- package/lib/components/SankeyChart/SankeyChart.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
- package/lib/components/SankeyChart/SankeyChart.styles.js +58 -0
- package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -0
- package/lib/components/SankeyChart/SankeyChart.types.d.ts +83 -0
- package/lib/components/SankeyChart/SankeyChart.types.js +2 -0
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -0
- package/lib/components/SankeyChart/index.d.ts +2 -0
- package/lib/components/SankeyChart/index.js +3 -0
- package/lib/components/SankeyChart/index.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.base.d.ts +20 -0
- package/lib/components/Sparkline/Sparkline.base.js +76 -0
- package/lib/components/Sparkline/Sparkline.base.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.d.ts +3 -0
- package/lib/components/Sparkline/Sparkline.js +6 -0
- package/lib/components/Sparkline/Sparkline.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.styles.d.ts +2 -0
- package/lib/components/Sparkline/Sparkline.styles.js +10 -0
- package/lib/components/Sparkline/Sparkline.styles.js.map +1 -0
- package/lib/components/Sparkline/Sparkline.types.d.ts +51 -0
- package/lib/components/Sparkline/Sparkline.types.js +2 -0
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib/components/Sparkline/index.d.ts +2 -0
- package/lib/components/Sparkline/index.js +3 -0
- package/lib/components/Sparkline/index.js.map +1 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +356 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.js +6 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js +90 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js +6 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
- package/lib/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
- package/lib/components/StackedBarChart/StackedBarChart.base.js +311 -0
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
- package/lib/components/StackedBarChart/StackedBarChart.d.ts +3 -0
- package/lib/components/StackedBarChart/StackedBarChart.js +6 -0
- package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -0
- package/lib/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
- package/lib/components/StackedBarChart/StackedBarChart.styles.js +104 -0
- package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
- package/lib/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
- package/lib/components/StackedBarChart/StackedBarChart.types.js +2 -0
- package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
- package/lib/components/StackedBarChart/index.d.ts +5 -0
- package/lib/components/StackedBarChart/index.js +6 -0
- package/lib/components/StackedBarChart/index.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.base.d.ts +18 -0
- package/lib/components/TreeChart/TreeChart.base.js +316 -0
- package/lib/components/TreeChart/TreeChart.base.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.d.ts +3 -0
- package/lib/components/TreeChart/TreeChart.js +5 -0
- package/lib/components/TreeChart/TreeChart.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.styles.d.ts +2 -0
- package/lib/components/TreeChart/TreeChart.styles.js +29 -0
- package/lib/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib/components/TreeChart/TreeChart.types.d.ts +197 -0
- package/lib/components/TreeChart/TreeChart.types.js +23 -0
- package/lib/components/TreeChart/TreeChart.types.js.map +1 -0
- package/lib/components/TreeChart/index.d.ts +2 -0
- package/lib/components/TreeChart/index.js +3 -0
- package/lib/components/TreeChart/index.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +536 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js +6 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js +28 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js +2 -0
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib/components/VerticalBarChart/index.d.ts +2 -0
- package/lib/components/VerticalBarChart/index.js +3 -0
- package/lib/components/VerticalBarChart/index.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +666 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +6 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +18 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +2 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/index.d.ts +2 -0
- package/lib/components/VerticalStackedBarChart/index.js +3 -0
- package/lib/components/VerticalStackedBarChart/index.js.map +1 -0
- package/lib/index.d.ts +19 -0
- package/lib/index.js +20 -0
- package/lib/index.js.map +1 -0
- package/lib/types/IDataPoint.d.ts +545 -0
- package/lib/types/IDataPoint.js +2 -0
- package/lib/types/IDataPoint.js.map +1 -0
- package/lib/types/IEventAnnotation.d.ts +6 -0
- package/lib/types/IEventAnnotation.js +2 -0
- package/lib/types/IEventAnnotation.js.map +1 -0
- package/lib/types/ILegendDataItem.d.ts +10 -0
- package/lib/types/ILegendDataItem.js +2 -0
- package/lib/types/ILegendDataItem.js.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +3 -0
- package/lib/types/index.js.map +1 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js +38 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js +6 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +82 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js +2 -0
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
- package/lib/utilities/ChartHoverCard/index.d.ts +3 -0
- package/lib/utilities/ChartHoverCard/index.js +4 -0
- package/lib/utilities/ChartHoverCard/index.js.map +1 -0
- package/lib/utilities/FocusableTooltipText.d.ts +27 -0
- package/lib/utilities/FocusableTooltipText.js +54 -0
- package/lib/utilities/FocusableTooltipText.js.map +1 -0
- package/lib/utilities/colors.d.ts +51 -0
- package/lib/utilities/colors.js +132 -0
- package/lib/utilities/colors.js.map +1 -0
- package/lib/utilities/index.d.ts +3 -0
- package/lib/utilities/index.js +4 -0
- package/lib/utilities/index.js.map +1 -0
- package/lib/utilities/utilities.d.ts +377 -0
- package/lib/utilities/utilities.js +864 -0
- package/lib/utilities/utilities.js.map +1 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +5 -0
- package/lib/version.js.map +1 -0
- package/lib-amd/AreaChart.d.ts +1 -0
- package/lib-amd/AreaChart.js +6 -0
- package/lib-amd/AreaChart.js.map +1 -0
- package/lib-amd/CartesianChart.d.ts +1 -0
- package/lib-amd/CartesianChart.js +6 -0
- package/lib-amd/CartesianChart.js.map +1 -0
- package/lib-amd/DonutChart.d.ts +1 -0
- package/lib-amd/DonutChart.js +6 -0
- package/lib-amd/DonutChart.js.map +1 -0
- package/lib-amd/GroupedVerticalBarChart.d.ts +1 -0
- package/lib-amd/GroupedVerticalBarChart.js +6 -0
- package/lib-amd/GroupedVerticalBarChart.js.map +1 -0
- package/lib-amd/HeatMapChart.d.ts +1 -0
- package/lib-amd/HeatMapChart.js +6 -0
- package/lib-amd/HeatMapChart.js.map +1 -0
- package/lib-amd/HorizontalBarChart.d.ts +1 -0
- package/lib-amd/HorizontalBarChart.js +6 -0
- package/lib-amd/HorizontalBarChart.js.map +1 -0
- package/lib-amd/Legends.d.ts +1 -0
- package/lib-amd/Legends.js +6 -0
- package/lib-amd/Legends.js.map +1 -0
- package/lib-amd/LineChart.d.ts +1 -0
- package/lib-amd/LineChart.js +6 -0
- package/lib-amd/LineChart.js.map +1 -0
- package/lib-amd/PieChart.d.ts +1 -0
- package/lib-amd/PieChart.js +6 -0
- package/lib-amd/PieChart.js.map +1 -0
- package/lib-amd/SankeyChart.d.ts +1 -0
- package/lib-amd/SankeyChart.js +6 -0
- package/lib-amd/SankeyChart.js.map +1 -0
- package/lib-amd/Sparkline.d.ts +1 -0
- package/lib-amd/Sparkline.js +6 -0
- package/lib-amd/Sparkline.js.map +1 -0
- package/lib-amd/StackedBarChart.d.ts +1 -0
- package/lib-amd/StackedBarChart.js +6 -0
- package/lib-amd/StackedBarChart.js.map +1 -0
- package/lib-amd/Styling.d.ts +2 -0
- package/lib-amd/Styling.js +75 -0
- package/lib-amd/Styling.js.map +1 -0
- package/lib-amd/TreeChart.d.ts +1 -0
- package/lib-amd/TreeChart.js +6 -0
- package/lib-amd/TreeChart.js.map +1 -0
- package/lib-amd/Utilities.d.ts +2 -0
- package/lib-amd/Utilities.js +183 -0
- package/lib-amd/Utilities.js.map +1 -0
- package/lib-amd/VerticalBarChart.d.ts +1 -0
- package/lib-amd/VerticalBarChart.js +6 -0
- package/lib-amd/VerticalBarChart.js.map +1 -0
- package/lib-amd/VerticalStackedBarChart.d.ts +1 -0
- package/lib-amd/VerticalStackedBarChart.js +6 -0
- package/lib-amd/VerticalStackedBarChart.js.map +1 -0
- package/lib-amd/components/AreaChart/AreaChart.base.d.ts +92 -0
- package/lib-amd/components/AreaChart/AreaChart.base.js +555 -0
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
- package/lib-amd/components/AreaChart/AreaChart.d.ts +3 -0
- package/lib-amd/components/AreaChart/AreaChart.js +8 -0
- package/lib-amd/components/AreaChart/AreaChart.js.map +1 -0
- package/lib-amd/components/AreaChart/AreaChart.styles.d.ts +2 -0
- package/lib-amd/components/AreaChart/AreaChart.styles.js +12 -0
- package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -0
- package/lib-amd/components/AreaChart/AreaChart.types.d.ts +37 -0
- package/lib-amd/components/AreaChart/AreaChart.types.js +5 -0
- package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -0
- package/lib-amd/components/AreaChart/index.d.ts +2 -0
- package/lib-amd/components/AreaChart/index.js +7 -0
- package/lib-amd/components/AreaChart/index.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.d.ts +43 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +329 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.d.ts +3 -0
- package/lib-amd/components/CommonComponents/CartesianChart.js +7 -0
- package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.styles.d.ts +2 -0
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +166 -0
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +428 -0
- package/lib-amd/components/CommonComponents/CartesianChart.types.js +5 -0
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -0
- package/lib-amd/components/CommonComponents/index.d.ts +2 -0
- package/lib-amd/components/CommonComponents/index.js +7 -0
- package/lib-amd/components/CommonComponents/index.js.map +1 -0
- package/lib-amd/components/DonutChart/Arc/Arc.d.ts +21 -0
- package/lib-amd/components/DonutChart/Arc/Arc.js +85 -0
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -0
- package/lib-amd/components/DonutChart/Arc/Arc.styles.d.ts +2 -0
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js +33 -0
- package/lib-amd/components/DonutChart/Arc/Arc.styles.js.map +1 -0
- package/lib-amd/components/DonutChart/Arc/Arc.types.d.ts +124 -0
- package/lib-amd/components/DonutChart/Arc/Arc.types.js +5 -0
- package/lib-amd/components/DonutChart/Arc/Arc.types.js.map +1 -0
- package/lib-amd/components/DonutChart/Arc/index.d.ts +2 -0
- package/lib-amd/components/DonutChart/Arc/index.js +7 -0
- package/lib-amd/components/DonutChart/Arc/index.js.map +1 -0
- package/lib-amd/components/DonutChart/DonutChart.base.d.ts +50 -0
- package/lib-amd/components/DonutChart/DonutChart.base.js +208 -0
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
- package/lib-amd/components/DonutChart/DonutChart.d.ts +3 -0
- package/lib-amd/components/DonutChart/DonutChart.js +8 -0
- package/lib-amd/components/DonutChart/DonutChart.js.map +1 -0
- package/lib-amd/components/DonutChart/DonutChart.styles.d.ts +2 -0
- package/lib-amd/components/DonutChart/DonutChart.styles.js +36 -0
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -0
- package/lib-amd/components/DonutChart/DonutChart.types.d.ts +63 -0
- package/lib-amd/components/DonutChart/DonutChart.types.js +5 -0
- package/lib-amd/components/DonutChart/DonutChart.types.js.map +1 -0
- package/lib-amd/components/DonutChart/Pie/Pie.d.ts +15 -0
- package/lib-amd/components/DonutChart/Pie/Pie.js +69 -0
- package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -0
- package/lib-amd/components/DonutChart/Pie/Pie.styles.d.ts +2 -0
- package/lib-amd/components/DonutChart/Pie/Pie.styles.js +24 -0
- package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -0
- package/lib-amd/components/DonutChart/Pie/Pie.types.d.ts +96 -0
- package/lib-amd/components/DonutChart/Pie/Pie.types.js +5 -0
- package/lib-amd/components/DonutChart/Pie/Pie.types.js.map +1 -0
- package/lib-amd/components/DonutChart/Pie/index.d.ts +2 -0
- package/lib-amd/components/DonutChart/Pie/index.js +7 -0
- package/lib-amd/components/DonutChart/Pie/index.js.map +1 -0
- package/lib-amd/components/DonutChart/index.d.ts +3 -0
- package/lib-amd/components/DonutChart/index.js +8 -0
- package/lib-amd/components/DonutChart/index.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +62 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +375 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +3 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +8 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.d.ts +2 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +21 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +83 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js +5 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/index.d.ts +2 -0
- package/lib-amd/components/GroupedVerticalBarChart/index.js +7 -0
- package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +147 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +492 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +3 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.js +7 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.d.ts +2 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +29 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +110 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js +5 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -0
- package/lib-amd/components/HeatMapChart/index.d.ts +2 -0
- package/lib-amd/components/HeatMapChart/index.js +7 -0
- package/lib-amd/components/HeatMapChart/index.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.d.ts +36 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +233 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +3 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +8 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.d.ts +2 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +72 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +172 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +11 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/index.d.ts +3 -0
- package/lib-amd/components/HorizontalBarChart/index.js +8 -0
- package/lib-amd/components/HorizontalBarChart/index.js.map +1 -0
- package/lib-amd/components/Legends/Legends.base.d.ts +44 -0
- package/lib-amd/components/Legends/Legends.base.js +290 -0
- package/lib-amd/components/Legends/Legends.base.js.map +1 -0
- package/lib-amd/components/Legends/Legends.d.ts +3 -0
- package/lib-amd/components/Legends/Legends.js +7 -0
- package/lib-amd/components/Legends/Legends.js.map +1 -0
- package/lib-amd/components/Legends/Legends.styles.d.ts +2 -0
- package/lib-amd/components/Legends/Legends.styles.js +107 -0
- package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
- package/lib-amd/components/Legends/Legends.types.d.ts +169 -0
- package/lib-amd/components/Legends/Legends.types.js +5 -0
- package/lib-amd/components/Legends/Legends.types.js.map +1 -0
- package/lib-amd/components/Legends/index.d.ts +3 -0
- package/lib-amd/components/Legends/index.js +8 -0
- package/lib-amd/components/Legends/index.js.map +1 -0
- package/lib-amd/components/Legends/shape.d.ts +9 -0
- package/lib-amd/components/Legends/shape.js +27 -0
- package/lib-amd/components/Legends/shape.js.map +1 -0
- package/lib-amd/components/LineChart/LineChart.base.d.ts +84 -0
- package/lib-amd/components/LineChart/LineChart.base.js +809 -0
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
- package/lib-amd/components/LineChart/LineChart.d.ts +3 -0
- package/lib-amd/components/LineChart/LineChart.js +8 -0
- package/lib-amd/components/LineChart/LineChart.js.map +1 -0
- package/lib-amd/components/LineChart/LineChart.styles.d.ts +2 -0
- package/lib-amd/components/LineChart/LineChart.styles.js +12 -0
- package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -0
- package/lib-amd/components/LineChart/LineChart.types.d.ts +72 -0
- package/lib-amd/components/LineChart/LineChart.types.js +5 -0
- package/lib-amd/components/LineChart/LineChart.types.js.map +1 -0
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.d.ts +10 -0
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +95 -0
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +22 -0
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +40 -0
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js.map +1 -0
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.d.ts +13 -0
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +40 -0
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -0
- package/lib-amd/components/LineChart/index.d.ts +3 -0
- package/lib-amd/components/LineChart/index.js +8 -0
- package/lib-amd/components/LineChart/index.js.map +1 -0
- package/lib-amd/components/PieChart/Arc/Arc.d.ts +12 -0
- package/lib-amd/components/PieChart/Arc/Arc.js +56 -0
- package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
- package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +2 -0
- package/lib-amd/components/PieChart/Arc/Arc.styles.js +13 -0
- package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
- package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +60 -0
- package/lib-amd/components/PieChart/Arc/Arc.types.js +5 -0
- package/lib-amd/components/PieChart/Arc/Arc.types.js.map +1 -0
- package/lib-amd/components/PieChart/Arc/index.d.ts +2 -0
- package/lib-amd/components/PieChart/Arc/index.js +7 -0
- package/lib-amd/components/PieChart/Arc/index.js.map +1 -0
- package/lib-amd/components/PieChart/Pie/Pie.d.ts +10 -0
- package/lib-amd/components/PieChart/Pie/Pie.js +35 -0
- package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -0
- package/lib-amd/components/PieChart/Pie/Pie.styles.d.ts +2 -0
- package/lib-amd/components/PieChart/Pie/Pie.styles.js +12 -0
- package/lib-amd/components/PieChart/Pie/Pie.styles.js.map +1 -0
- package/lib-amd/components/PieChart/Pie/Pie.types.d.ts +46 -0
- package/lib-amd/components/PieChart/Pie/Pie.types.js +5 -0
- package/lib-amd/components/PieChart/Pie/Pie.types.js.map +1 -0
- package/lib-amd/components/PieChart/Pie/index.d.ts +2 -0
- package/lib-amd/components/PieChart/Pie/index.js +7 -0
- package/lib-amd/components/PieChart/Pie/index.js.map +1 -0
- package/lib-amd/components/PieChart/PieChart.base.d.ts +7 -0
- package/lib-amd/components/PieChart/PieChart.base.js +35 -0
- package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
- package/lib-amd/components/PieChart/PieChart.d.ts +3 -0
- package/lib-amd/components/PieChart/PieChart.js +8 -0
- package/lib-amd/components/PieChart/PieChart.js.map +1 -0
- package/lib-amd/components/PieChart/PieChart.styles.d.ts +2 -0
- package/lib-amd/components/PieChart/PieChart.styles.js +34 -0
- package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -0
- package/lib-amd/components/PieChart/PieChart.types.d.ts +63 -0
- package/lib-amd/components/PieChart/PieChart.types.js +5 -0
- package/lib-amd/components/PieChart/PieChart.types.js.map +1 -0
- package/lib-amd/components/PieChart/index.d.ts +2 -0
- package/lib-amd/components/PieChart/index.js +7 -0
- package/lib-amd/components/PieChart/index.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +95 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +669 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.d.ts +3 -0
- package/lib-amd/components/SankeyChart/SankeyChart.js +8 -0
- package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.styles.d.ts +2 -0
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js +62 -0
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +83 -0
- package/lib-amd/components/SankeyChart/SankeyChart.types.js +5 -0
- package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -0
- package/lib-amd/components/SankeyChart/index.d.ts +2 -0
- package/lib-amd/components/SankeyChart/index.js +7 -0
- package/lib-amd/components/SankeyChart/index.js.map +1 -0
- package/lib-amd/components/Sparkline/Sparkline.base.d.ts +20 -0
- package/lib-amd/components/Sparkline/Sparkline.base.js +74 -0
- package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
- package/lib-amd/components/Sparkline/Sparkline.d.ts +3 -0
- package/lib-amd/components/Sparkline/Sparkline.js +8 -0
- package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
- package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
- package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
- package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
- package/lib-amd/components/Sparkline/Sparkline.types.d.ts +51 -0
- package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
- package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
- package/lib-amd/components/Sparkline/index.d.ts +2 -0
- package/lib-amd/components/Sparkline/index.js +7 -0
- package/lib-amd/components/Sparkline/index.js.map +1 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.d.ts +56 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +351 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +3 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +8 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.d.ts +2 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +93 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +198 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +11 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +51 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +308 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +3 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.js +8 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.d.ts +2 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +108 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +210 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.js +5 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.js.map +1 -0
- package/lib-amd/components/StackedBarChart/index.d.ts +5 -0
- package/lib-amd/components/StackedBarChart/index.js +10 -0
- package/lib-amd/components/StackedBarChart/index.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.base.d.ts +18 -0
- package/lib-amd/components/TreeChart/TreeChart.base.js +314 -0
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.d.ts +3 -0
- package/lib-amd/components/TreeChart/TreeChart.js +7 -0
- package/lib-amd/components/TreeChart/TreeChart.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.styles.d.ts +2 -0
- package/lib-amd/components/TreeChart/TreeChart.styles.js +34 -0
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.types.d.ts +197 -0
- package/lib-amd/components/TreeChart/TreeChart.types.js +28 -0
- package/lib-amd/components/TreeChart/TreeChart.types.js.map +1 -0
- package/lib-amd/components/TreeChart/index.d.ts +2 -0
- package/lib-amd/components/TreeChart/index.js +7 -0
- package/lib-amd/components/TreeChart/index.js.map +1 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +74 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +529 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +3 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +8 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.d.ts +2 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +32 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +114 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js +5 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -0
- package/lib-amd/components/VerticalBarChart/index.d.ts +2 -0
- package/lib-amd/components/VerticalBarChart/index.js +7 -0
- package/lib-amd/components/VerticalBarChart/index.js.map +1 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +85 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +659 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +3 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +8 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.d.ts +2 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +22 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +142 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js +5 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -0
- package/lib-amd/components/VerticalStackedBarChart/index.d.ts +2 -0
- package/lib-amd/components/VerticalStackedBarChart/index.js +7 -0
- package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -0
- package/lib-amd/index.d.ts +19 -0
- package/lib-amd/index.js +23 -0
- package/lib-amd/index.js.map +1 -0
- package/lib-amd/types/IDataPoint.d.ts +545 -0
- package/lib-amd/types/IDataPoint.js +5 -0
- package/lib-amd/types/IDataPoint.js.map +1 -0
- package/lib-amd/types/IEventAnnotation.d.ts +6 -0
- package/lib-amd/types/IEventAnnotation.js +5 -0
- package/lib-amd/types/IEventAnnotation.js.map +1 -0
- package/lib-amd/types/ILegendDataItem.d.ts +10 -0
- package/lib-amd/types/ILegendDataItem.js +5 -0
- package/lib-amd/types/ILegendDataItem.js.map +1 -0
- package/lib-amd/types/index.d.ts +2 -0
- package/lib-amd/types/index.js +7 -0
- package/lib-amd/types/index.js.map +1 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.d.ts +6 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +39 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.d.ts +3 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +8 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.d.ts +2 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +87 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.d.ts +105 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js +5 -0
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -0
- package/lib-amd/utilities/ChartHoverCard/index.d.ts +3 -0
- package/lib-amd/utilities/ChartHoverCard/index.js +8 -0
- package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -0
- package/lib-amd/utilities/FocusableTooltipText.d.ts +27 -0
- package/lib-amd/utilities/FocusableTooltipText.js +54 -0
- package/lib-amd/utilities/FocusableTooltipText.js.map +1 -0
- package/lib-amd/utilities/colors.d.ts +51 -0
- package/lib-amd/utilities/colors.js +139 -0
- package/lib-amd/utilities/colors.js.map +1 -0
- package/lib-amd/utilities/index.d.ts +3 -0
- package/lib-amd/utilities/index.js +8 -0
- package/lib-amd/utilities/index.js.map +1 -0
- package/lib-amd/utilities/utilities.d.ts +377 -0
- package/lib-amd/utilities/utilities.js +888 -0
- package/lib-amd/utilities/utilities.js.map +1 -0
- package/lib-amd/version.d.ts +1 -0
- package/lib-amd/version.js +6 -0
- package/lib-amd/version.js.map +1 -0
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/LineChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './LineChart';\nexport * from './LineChart.types';\nexport * from './eventAnnotation/Textbox';\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IArcProps } from './Arc.types';
|
|
3
|
+
export declare class Arc extends React.Component<IArcProps, {}> {
|
|
4
|
+
static defaultProps: Partial<IArcProps>;
|
|
5
|
+
state: {};
|
|
6
|
+
static getDerivedStateFromProps(nextProps: Readonly<IArcProps>): null;
|
|
7
|
+
updateChart: (newProps: IArcProps) => void;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export declare class LabeledArc extends Arc {
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as shape from 'd3-shape';
|
|
4
|
+
import { classNamesFunction } from '@fluentui/react/lib/Utilities';
|
|
5
|
+
import { getStyles } from './Arc.styles';
|
|
6
|
+
import { convertToLocaleString } from '../../../utilities/utilities';
|
|
7
|
+
var Arc = /** @class */ (function (_super) {
|
|
8
|
+
__extends(Arc, _super);
|
|
9
|
+
function Arc() {
|
|
10
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
+
_this.state = {};
|
|
12
|
+
_this.updateChart = function (newProps) {
|
|
13
|
+
_updateChart(newProps);
|
|
14
|
+
};
|
|
15
|
+
return _this;
|
|
16
|
+
}
|
|
17
|
+
Arc.getDerivedStateFromProps = function (nextProps) {
|
|
18
|
+
_updateChart(nextProps);
|
|
19
|
+
return null;
|
|
20
|
+
};
|
|
21
|
+
Arc.prototype.render = function () {
|
|
22
|
+
var _a;
|
|
23
|
+
var _b = this.props, color = _b.color, arc = _b.arc;
|
|
24
|
+
var getClassNames = classNamesFunction();
|
|
25
|
+
var classNames = getClassNames(getStyles, { color: color });
|
|
26
|
+
return React.createElement("path", { d: arc(this.props.data), className: classNames.root, onClick: (_a = this.props.data) === null || _a === void 0 ? void 0 : _a.data.onClick });
|
|
27
|
+
};
|
|
28
|
+
Arc.defaultProps = {
|
|
29
|
+
arc: shape.arc(),
|
|
30
|
+
};
|
|
31
|
+
return Arc;
|
|
32
|
+
}(React.Component));
|
|
33
|
+
export { Arc };
|
|
34
|
+
var LabeledArc = /** @class */ (function (_super) {
|
|
35
|
+
__extends(LabeledArc, _super);
|
|
36
|
+
function LabeledArc() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
LabeledArc.prototype.render = function () {
|
|
40
|
+
var _a = this.props, data = _a.data, arc = _a.arc, culture = _a.culture;
|
|
41
|
+
var _b = arc.centroid(data), labelX = _b[0], labelY = _b[1];
|
|
42
|
+
var labelTranslate = "translate(" + labelX + ", " + labelY + ")";
|
|
43
|
+
return (React.createElement("g", { className: "arc" },
|
|
44
|
+
_super.prototype.render.call(this),
|
|
45
|
+
React.createElement("text", { transform: labelTranslate, textAnchor: "middle" },
|
|
46
|
+
data.data.x,
|
|
47
|
+
"-",
|
|
48
|
+
convertToLocaleString(data.data.y, culture))));
|
|
49
|
+
};
|
|
50
|
+
return LabeledArc;
|
|
51
|
+
}(Arc));
|
|
52
|
+
export { LabeledArc };
|
|
53
|
+
function _updateChart(newProps) {
|
|
54
|
+
newProps.arc.innerRadius(newProps.innerRadius);
|
|
55
|
+
newProps.arc.outerRadius(newProps.outerRadius);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Arc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arc.js","sourceRoot":"../src/","sources":["components/PieChart/Arc/Arc.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE;IAAyB,uBAA8B;IAAvD;QAAA,qEAsBC;QAjBQ,WAAK,GAAO,EAAE,CAAC;QAOf,iBAAW,GAAG,UAAC,QAAmB;YACvC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACzB,CAAC,CAAC;;IAQJ,CAAC;IAfe,4BAAwB,GAAtC,UAAuC,SAA8B;QACnE,YAAY,CAAC,SAAS,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAMM,oBAAM,GAAb;;QACQ,IAAA,KAAiB,IAAI,CAAC,KAAK,EAAzB,KAAK,WAAA,EAAE,GAAG,SAAe,CAAC;QAClC,IAAM,aAAa,GAAG,kBAAkB,EAAyB,CAAC;QAClE,IAAM,UAAU,GAAG,aAAa,CAAC,SAAS,EAAE,EAAE,KAAK,OAAA,EAAE,CAAC,CAAC;QACvD,OAAO,8BAAM,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,IAAI,CAAC,OAAO,GAAI,CAAC;IAC/G,CAAC;IApBa,gBAAY,GAAuB;QAC/C,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE;KACjB,CAAC;IAmBJ,UAAC;CAAA,AAtBD,CAAyB,KAAK,CAAC,SAAS,GAsBvC;SAtBY,GAAG;AAwBhB;IAAgC,8BAAG;IAAnC;;IAeA,CAAC;IAdQ,2BAAM,GAAb;QACQ,IAAA,KAAyB,IAAI,CAAC,KAAK,EAAjC,IAAI,UAAA,EAAE,GAAG,SAAA,EAAE,OAAO,aAAe,CAAC;QACpC,IAAA,KAAmB,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAApC,MAAM,QAAA,EAAE,MAAM,QAAsB,CAAC;QAC5C,IAAM,cAAc,GAAG,eAAa,MAAM,UAAK,MAAM,MAAG,CAAC;QAEzD,OAAO,CACL,2BAAG,SAAS,EAAC,KAAK;YACf,iBAAM,MAAM,WAAE;YACf,8BAAM,SAAS,EAAE,cAAc,EAAE,UAAU,EAAC,QAAQ;gBACjD,IAAK,CAAC,IAAK,CAAC,CAAC;;gBAAG,qBAAqB,CAAC,IAAK,CAAC,IAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CACzD,CACL,CACL,CAAC;IACJ,CAAC;IACH,iBAAC;AAAD,CAAC,AAfD,CAAgC,GAAG,GAelC;;AAED,SAAS,YAAY,CAAC,QAAmB;IACvC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC/C,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACjD,CAAC","sourcesContent":["import * as React from 'react';\nimport * as shape from 'd3-shape';\nimport { IArcProps, IArcStyles } from './Arc.types';\nimport { classNamesFunction } from '@fluentui/react/lib/Utilities';\nimport { getStyles } from './Arc.styles';\nimport { convertToLocaleString } from '../../../utilities/utilities';\n\nexport class Arc extends React.Component<IArcProps, {}> {\n public static defaultProps: Partial<IArcProps> = {\n arc: shape.arc(),\n };\n\n public state: {} = {};\n\n public static getDerivedStateFromProps(nextProps: Readonly<IArcProps>): null {\n _updateChart(nextProps);\n return null;\n }\n\n public updateChart = (newProps: IArcProps) => {\n _updateChart(newProps);\n };\n\n public render(): JSX.Element {\n const { color, arc } = this.props;\n const getClassNames = classNamesFunction<IArcProps, IArcStyles>();\n const classNames = getClassNames(getStyles, { color });\n return <path d={arc(this.props.data)} className={classNames.root} onClick={this.props.data?.data.onClick} />;\n }\n}\n\nexport class LabeledArc extends Arc {\n public render(): JSX.Element {\n const { data, arc, culture } = this.props;\n const [labelX, labelY] = arc.centroid(data);\n const labelTranslate = `translate(${labelX}, ${labelY})`;\n\n return (\n <g className=\"arc\">\n {super.render()}\n <text transform={labelTranslate} textAnchor=\"middle\">\n {data!.data!.x}-{convertToLocaleString(data!.data!.y, culture)}\n </text>\n </g>\n );\n }\n}\n\nfunction _updateChart(newProps: IArcProps): void {\n newProps.arc.innerRadius(newProps.innerRadius);\n newProps.arc.outerRadius(newProps.outerRadius);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arc.styles.js","sourceRoot":"../src/","sources":["components/PieChart/Arc/Arc.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAgB;IAChC,IAAA,KAAK,GAAK,KAAK,MAAV,CAAW;IACxB,OAAO;QACL,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE;KACpE,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IArcProps, IArcStyles } from './Arc.types';\nimport { DefaultPalette } from '@fluentui/react/lib/Styling';\nexport const getStyles = (props: IArcProps): IArcStyles => {\n const { color } = props;\n return {\n root: { fill: color, stroke: DefaultPalette.white, strokeWidth: 2 },\n };\n};\n"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IStyle } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import { IDataPoint } from '../PieChart.types';
|
|
3
|
+
export interface IArcProps {
|
|
4
|
+
/**
|
|
5
|
+
* Data to render in the Arc.
|
|
6
|
+
*/
|
|
7
|
+
data?: IArcData;
|
|
8
|
+
/**
|
|
9
|
+
* shape for Arc.
|
|
10
|
+
*/
|
|
11
|
+
arc?: any;
|
|
12
|
+
/**
|
|
13
|
+
* innerRadius of the Arc.
|
|
14
|
+
*/
|
|
15
|
+
innerRadius?: number;
|
|
16
|
+
/**
|
|
17
|
+
* outerRadius of the Arc.
|
|
18
|
+
*/
|
|
19
|
+
outerRadius?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Color for the Arc.
|
|
22
|
+
*/
|
|
23
|
+
color: string;
|
|
24
|
+
/**
|
|
25
|
+
* The prop used to define the culture to localized the numbers
|
|
26
|
+
*/
|
|
27
|
+
culture?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IArcData {
|
|
30
|
+
/**
|
|
31
|
+
* Data to render in the chart for individual arc.
|
|
32
|
+
*/
|
|
33
|
+
data: IDataPoint;
|
|
34
|
+
/**
|
|
35
|
+
* endAngle of the Arc
|
|
36
|
+
*/
|
|
37
|
+
endAngle: number;
|
|
38
|
+
/**
|
|
39
|
+
* index of the Arc
|
|
40
|
+
*/
|
|
41
|
+
index: number;
|
|
42
|
+
/**
|
|
43
|
+
* padAngle of the Arc
|
|
44
|
+
*/
|
|
45
|
+
padAngle: number;
|
|
46
|
+
/**
|
|
47
|
+
* startAngle of the Arc
|
|
48
|
+
*/
|
|
49
|
+
startAngle: number;
|
|
50
|
+
/**
|
|
51
|
+
* value of the Arc
|
|
52
|
+
*/
|
|
53
|
+
value: number;
|
|
54
|
+
}
|
|
55
|
+
export interface IArcStyles {
|
|
56
|
+
/**
|
|
57
|
+
* Style set for the card header component root
|
|
58
|
+
*/
|
|
59
|
+
root: IStyle;
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arc.types.js","sourceRoot":"../src/","sources":["components/PieChart/Arc/Arc.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IDataPoint } from '../PieChart.types';\n\nexport interface IArcProps {\n /**\n * Data to render in the Arc.\n */\n data?: IArcData;\n\n /**\n * shape for Arc.\n */\n /* eslint-disable @typescript-eslint/no-explicit-any */\n arc?: any;\n\n /**\n * innerRadius of the Arc.\n */\n innerRadius?: number;\n /**\n * outerRadius of the Arc.\n */\n outerRadius?: number;\n /**\n * Color for the Arc.\n */\n color: string;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\nexport interface IArcData {\n /**\n * Data to render in the chart for individual arc.\n */\n data: IDataPoint;\n /**\n * endAngle of the Arc\n */\n endAngle: number;\n /**\n * index of the Arc\n */\n index: number;\n /**\n * padAngle of the Arc\n */\n padAngle: number;\n /**\n * startAngle of the Arc\n */\n startAngle: number;\n /**\n * value of the Arc\n */\n value: number;\n}\n\nexport interface IArcStyles {\n /**\n * Style set for the card header component root\n */\n root: IStyle;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/PieChart/Arc/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC","sourcesContent":["export * from './Arc';\nexport * from './Arc.types';\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPieProps } from './Pie.types';
|
|
3
|
+
import { IArcData } from '../Arc/Arc.types';
|
|
4
|
+
export declare class Pie extends React.Component<IPieProps, {}> {
|
|
5
|
+
static defaultProps: Partial<IPieProps>;
|
|
6
|
+
private colors;
|
|
7
|
+
constructor(props: IPieProps);
|
|
8
|
+
arcGenerator: (d: IArcData, i: number) => JSX.Element;
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as shape from 'd3-shape';
|
|
4
|
+
import * as scale from 'd3-scale';
|
|
5
|
+
import { LabeledArc } from '../Arc/Arc';
|
|
6
|
+
var Pie = /** @class */ (function (_super) {
|
|
7
|
+
__extends(Pie, _super);
|
|
8
|
+
function Pie(props) {
|
|
9
|
+
var _this = _super.call(this, props) || this;
|
|
10
|
+
_this.arcGenerator = function (d, i) {
|
|
11
|
+
return (React.createElement(LabeledArc, { culture: _this.props.culture, key: i, data: d, innerRadius: _this.props.innerRadius, outerRadius: _this.props.outerRadius, color: "" + _this.colors(i) }));
|
|
12
|
+
};
|
|
13
|
+
return _this;
|
|
14
|
+
}
|
|
15
|
+
Pie.prototype.render = function () {
|
|
16
|
+
var _this = this;
|
|
17
|
+
// const getClassNames = classNamesFunction<IPieProps, IPieStyles>();
|
|
18
|
+
var _a = this.props, pie = _a.pie, colors = _a.colors, data = _a.data, width = _a.width, height = _a.height, chartTitle = _a.chartTitle;
|
|
19
|
+
this.colors = scale.scaleOrdinal().range(colors);
|
|
20
|
+
var piechart = pie(data);
|
|
21
|
+
var translate = "translate(" + width / 2 + ", " + height / 2 + ")";
|
|
22
|
+
return (React.createElement("svg", { width: width, height: height, "aria-label": chartTitle },
|
|
23
|
+
React.createElement("g", { transform: translate }, piechart.map(function (d, i) { return _this.arcGenerator(d, i); }))));
|
|
24
|
+
};
|
|
25
|
+
Pie.defaultProps = {
|
|
26
|
+
pie: shape
|
|
27
|
+
.pie()
|
|
28
|
+
.sort(null)
|
|
29
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
30
|
+
.value(function (d) { return d.y; }),
|
|
31
|
+
};
|
|
32
|
+
return Pie;
|
|
33
|
+
}(React.Component));
|
|
34
|
+
export { Pie };
|
|
35
|
+
//# sourceMappingURL=Pie.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pie.js","sourceRoot":"../src/","sources":["components/PieChart/Pie/Pie.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC;IAAyB,uBAA8B;IAUrD,aAAY,KAAgB;QAA5B,YACE,kBAAM,KAAK,CAAC,SACb;QAEM,kBAAY,GAAG,UAAC,CAAW,EAAE,CAAS;YAC3C,OAAO,CACL,oBAAC,UAAU,IACT,OAAO,EAAE,KAAI,CAAC,KAAK,CAAC,OAAO,EAC3B,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,CAAC,EACP,WAAW,EAAE,KAAI,CAAC,KAAK,CAAC,WAAW,EACnC,WAAW,EAAE,KAAI,CAAC,KAAK,CAAC,WAAW,EACnC,KAAK,EAAE,KAAG,KAAI,CAAC,MAAM,CAAC,CAAC,CAAG,GAC1B,CACH,CAAC;QACJ,CAAC,CAAC;;IAbF,CAAC;IAeM,oBAAM,GAAb;QAAA,iBAcC;QAbC,qEAAqE;QAC/D,IAAA,KAAmD,IAAI,CAAC,KAAK,EAA3D,GAAG,SAAA,EAAE,MAAM,YAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAAA,EAAE,UAAU,gBAAe,CAAC;QAEpE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,MAAO,CAAC,CAAC;QAElD,IAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAM,SAAS,GAAG,eAAa,KAAK,GAAG,CAAC,UAAK,MAAM,GAAG,CAAC,MAAG,CAAC;QAE3D,OAAO,CACL,6BAAK,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAc,UAAU;YACvD,2BAAG,SAAS,EAAE,SAAS,IAAG,QAAQ,CAAC,GAAG,CAAC,UAAC,CAAW,EAAE,CAAS,IAAK,OAAA,KAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,EAAvB,CAAuB,CAAC,CAAK,CAC5F,CACP,CAAC;IACJ,CAAC;IAxCa,gBAAY,GAAuB;QAC/C,GAAG,EAAE,KAAK;aACP,GAAG,EAAE;aACL,IAAI,CAAC,IAAI,CAAC;YACX,uDAAuD;aACtD,KAAK,CAAC,UAAC,CAAM,IAAK,OAAA,CAAC,CAAC,CAAC,EAAH,CAAG,CAAC;KAC1B,CAAC;IAmCJ,UAAC;CAAA,AA1CD,CAAyB,KAAK,CAAC,SAAS,GA0CvC;SA1CY,GAAG","sourcesContent":["import * as React from 'react';\nimport * as shape from 'd3-shape';\nimport * as scale from 'd3-scale';\nimport { IPieProps } from './Pie.types';\nimport { LabeledArc } from '../Arc/Arc';\nimport { IArcData } from '../Arc/Arc.types';\n\nexport class Pie extends React.Component<IPieProps, {}> {\n public static defaultProps: Partial<IPieProps> = {\n pie: shape\n .pie()\n .sort(null)\n /* eslint-disable @typescript-eslint/no-explicit-any */\n .value((d: any) => d.y),\n };\n private colors: scale.ScaleOrdinal<string | number, any>;\n\n constructor(props: IPieProps) {\n super(props);\n }\n\n public arcGenerator = (d: IArcData, i: number): JSX.Element => {\n return (\n <LabeledArc\n culture={this.props.culture}\n key={i}\n data={d}\n innerRadius={this.props.innerRadius}\n outerRadius={this.props.outerRadius}\n color={`${this.colors(i)}`}\n />\n );\n };\n\n public render(): JSX.Element {\n // const getClassNames = classNamesFunction<IPieProps, IPieStyles>();\n const { pie, colors, data, width, height, chartTitle } = this.props;\n\n this.colors = scale.scaleOrdinal().range(colors!);\n\n const piechart = pie(data);\n const translate = `translate(${width / 2}, ${height / 2})`;\n\n return (\n <svg width={width} height={height} aria-label={chartTitle}>\n <g transform={translate}>{piechart.map((d: IArcData, i: number) => this.arcGenerator(d, i))}</g>\n </svg>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pie.styles.js","sourceRoot":"../src/","sources":["components/PieChart/Pie/Pie.styles.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAgB;IACxC,OAAO;QACL,IAAI,EAAE,EAAE;KACT,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IPieProps, IPieStyles } from './Pie.types';\n\nexport const getStyles = (props: IPieProps): IPieStyles => {\n return {\n root: {},\n };\n};\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IStyle } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import { IDataPoint } from '../PieChart.types';
|
|
3
|
+
export interface IPieProps {
|
|
4
|
+
/**
|
|
5
|
+
* Width of the Pie.
|
|
6
|
+
*/
|
|
7
|
+
width: number;
|
|
8
|
+
/**
|
|
9
|
+
* Height of the Pie.
|
|
10
|
+
*/
|
|
11
|
+
height: number;
|
|
12
|
+
/**
|
|
13
|
+
* outerRadius of the Pie.
|
|
14
|
+
*/
|
|
15
|
+
outerRadius: number;
|
|
16
|
+
/**
|
|
17
|
+
* innerRadius of the Pie.
|
|
18
|
+
*/
|
|
19
|
+
innerRadius: number;
|
|
20
|
+
/**
|
|
21
|
+
* Data to render in the Pie.
|
|
22
|
+
*/
|
|
23
|
+
data: IDataPoint[];
|
|
24
|
+
/**
|
|
25
|
+
* colors to render in the Pie.
|
|
26
|
+
*/
|
|
27
|
+
colors?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Title to apply to the whole chart.
|
|
30
|
+
*/
|
|
31
|
+
chartTitle?: string;
|
|
32
|
+
/**
|
|
33
|
+
* shape for pie.
|
|
34
|
+
*/
|
|
35
|
+
pie?: any;
|
|
36
|
+
/**
|
|
37
|
+
* The prop used to define the culture to localized the numbers
|
|
38
|
+
*/
|
|
39
|
+
culture?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IPieStyles {
|
|
42
|
+
/**
|
|
43
|
+
* Style set for the card header component root
|
|
44
|
+
*/
|
|
45
|
+
root: IStyle;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pie.types.js","sourceRoot":"../src/","sources":["components/PieChart/Pie/Pie.types.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyle } from '@fluentui/react/lib/Styling';\nimport { IDataPoint } from '../PieChart.types';\n\nexport interface IPieProps {\n /**\n * Width of the Pie.\n */\n width: number;\n /**\n * Height of the Pie.\n */\n height: number;\n /**\n * outerRadius of the Pie.\n */\n outerRadius: number;\n /**\n * innerRadius of the Pie.\n */\n innerRadius: number;\n /**\n * Data to render in the Pie.\n */\n data: IDataPoint[];\n /**\n * colors to render in the Pie.\n */\n colors?: string[];\n /**\n * Title to apply to the whole chart.\n */\n chartTitle?: string;\n /**\n * shape for pie.\n */\n /* eslint-disable @typescript-eslint/no-explicit-any */\n pie?: any;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\nexport interface IPieStyles {\n /**\n * Style set for the card header component root\n */\n root: IStyle;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/PieChart/Pie/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC","sourcesContent":["export * from './Pie';\nexport * from './Pie.types';\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { classNamesFunction } from '@fluentui/react/lib/Utilities';
|
|
4
|
+
import { Pie } from './Pie/Pie';
|
|
5
|
+
var getClassNames = classNamesFunction();
|
|
6
|
+
var PieChartBase = /** @class */ (function (_super) {
|
|
7
|
+
__extends(PieChartBase, _super);
|
|
8
|
+
function PieChartBase() {
|
|
9
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
+
}
|
|
11
|
+
PieChartBase.prototype.render = function () {
|
|
12
|
+
var _a = this.props, data = _a.data, width = _a.width, height = _a.height, colors = _a.colors, chartTitle = _a.chartTitle;
|
|
13
|
+
var _b = this.props, theme = _b.theme, className = _b.className, styles = _b.styles, culture = _b.culture;
|
|
14
|
+
this._classNames = getClassNames(styles, {
|
|
15
|
+
theme: theme,
|
|
16
|
+
width: width,
|
|
17
|
+
height: height,
|
|
18
|
+
className: className,
|
|
19
|
+
});
|
|
20
|
+
var radius = Math.min(width, height) / 2;
|
|
21
|
+
var outerRadius = radius - 10;
|
|
22
|
+
return (React.createElement("div", { className: this._classNames.root },
|
|
23
|
+
this.props.chartTitle && React.createElement("p", { className: this._classNames.chartTitle }, this.props.chartTitle),
|
|
24
|
+
React.createElement(Pie, { culture: culture, width: width, height: height, outerRadius: outerRadius, innerRadius: 0, data: data, colors: colors, chartTitle: chartTitle })));
|
|
25
|
+
};
|
|
26
|
+
PieChartBase.defaultProps = {
|
|
27
|
+
data: [],
|
|
28
|
+
width: 600,
|
|
29
|
+
height: 350,
|
|
30
|
+
};
|
|
31
|
+
return PieChartBase;
|
|
32
|
+
}(React.Component));
|
|
33
|
+
export { PieChartBase };
|
|
34
|
+
//# sourceMappingURL=PieChart.base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChart.base.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.base.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhC,IAAM,aAAa,GAAG,kBAAkB,EAAwC,CAAC;AAEjF;IAAkC,gCAAmC;IAArE;;IAqCA,CAAC;IA7BQ,6BAAM,GAAb;QACQ,IAAA,KAA8C,IAAI,CAAC,KAAK,EAAtD,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAAA,EAAE,MAAM,YAAA,EAAE,UAAU,gBAAe,CAAC;QAEzD,IAAA,KAAwC,IAAI,CAAC,KAAK,EAAhD,KAAK,WAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,OAAO,aAAe,CAAC;QACzD,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC,MAAO,EAAE;YACxC,KAAK,EAAE,KAAM;YACb,KAAK,EAAE,KAAM;YACb,MAAM,EAAE,MAAO;YACf,SAAS,WAAA;SACV,CAAC,CAAC;QACH,IAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,KAAM,EAAE,MAAO,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAM,WAAW,GAAG,MAAM,GAAG,EAAE,CAAC;QAEhC,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI;YAClC,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,2BAAG,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,UAAU,IAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAK;YAChG,oBAAC,GAAG,IACF,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAM,EACb,MAAM,EAAE,MAAO,EACf,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,CAAC,EACd,IAAI,EAAE,IAAK,EACX,MAAM,EAAE,MAAO,EACf,UAAU,EAAE,UAAW,GACvB,CACE,CACP,CAAC;IACJ,CAAC;IAnCa,yBAAY,GAA4B;QACpD,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;KACZ,CAAC;IAgCJ,mBAAC;CAAA,AArCD,CAAkC,KAAK,CAAC,SAAS,GAqChD;SArCY,YAAY","sourcesContent":["import * as React from 'react';\nimport { classNamesFunction } from '@fluentui/react/lib/Utilities';\nimport { IPieChartProps, IPieChartStyleProps, IPieChartStyles } from './PieChart.types';\nimport { Pie } from './Pie/Pie';\nimport { IProcessedStyleSet } from '@fluentui/react/lib/Styling';\nconst getClassNames = classNamesFunction<IPieChartStyleProps, IPieChartStyles>();\n\nexport class PieChartBase extends React.Component<IPieChartProps, {}> {\n public static defaultProps: Partial<IPieChartProps> = {\n data: [],\n width: 600,\n height: 350,\n };\n private _classNames: IProcessedStyleSet<IPieChartStyles>;\n\n public render(): JSX.Element {\n const { data, width, height, colors, chartTitle } = this.props;\n\n const { theme, className, styles, culture } = this.props;\n this._classNames = getClassNames(styles!, {\n theme: theme!,\n width: width!,\n height: height!,\n className,\n });\n const radius = Math.min(width!, height!) / 2;\n const outerRadius = radius - 10;\n\n return (\n <div className={this._classNames.root}>\n {this.props.chartTitle && <p className={this._classNames.chartTitle}>{this.props.chartTitle}</p>}\n <Pie\n culture={culture}\n width={width!}\n height={height!}\n outerRadius={outerRadius}\n innerRadius={0}\n data={data!}\n colors={colors!}\n chartTitle={chartTitle!}\n />\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { styled } from '@fluentui/react/lib/Utilities';
|
|
2
|
+
import { PieChartBase } from './PieChart.base';
|
|
3
|
+
import { getStyles } from './PieChart.styles';
|
|
4
|
+
// Create a PieChart variant which uses these default styles and this styled subcomponent.
|
|
5
|
+
export var PieChart = styled(PieChartBase, getStyles);
|
|
6
|
+
//# sourceMappingURL=PieChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChart.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,0FAA0F;AAC1F,MAAM,CAAC,IAAM,QAAQ,GAA4C,MAAM,CAIrE,YAAY,EAAE,SAAS,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { styled } from '@fluentui/react/lib/Utilities';\nimport { IPieChartProps, IPieChartStyleProps, IPieChartStyles } from './PieChart.types';\nimport { PieChartBase } from './PieChart.base';\nimport { getStyles } from './PieChart.styles';\n\n// Create a PieChart variant which uses these default styles and this styled subcomponent.\nexport const PieChart: React.FunctionComponent<IPieChartProps> = styled<\n IPieChartProps,\n IPieChartStyleProps,\n IPieChartStyles\n>(PieChartBase, getStyles);\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
export var getStyles = function (props) {
|
|
3
|
+
var className = props.className, theme = props.theme, width = props.width, height = props.height;
|
|
4
|
+
var chartWidth = width + 30;
|
|
5
|
+
var chartPadding = 20;
|
|
6
|
+
var chartHeight = height + 10;
|
|
7
|
+
return {
|
|
8
|
+
root: [
|
|
9
|
+
theme.fonts.medium,
|
|
10
|
+
'ms-PieChart',
|
|
11
|
+
className,
|
|
12
|
+
{
|
|
13
|
+
width: chartWidth + 2 * chartPadding,
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
chart: [
|
|
17
|
+
{
|
|
18
|
+
padding: chartPadding,
|
|
19
|
+
width: chartWidth,
|
|
20
|
+
height: chartHeight,
|
|
21
|
+
boxSizing: 'content-box',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
chartTitle: [
|
|
25
|
+
__assign({ textAlign: 'center' }, theme.fonts.mediumPlus),
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=PieChart.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChart.styles.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.styles.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAA0B;IAC1C,IAAA,SAAS,GAA2B,KAAK,UAAhC,EAAE,KAAK,GAAoB,KAAK,MAAzB,EAAE,KAAK,GAAa,KAAK,MAAlB,EAAE,MAAM,GAAK,KAAK,OAAV,CAAW;IAElD,IAAM,UAAU,GAAG,KAAK,GAAG,EAAE,CAAC;IAC9B,IAAM,YAAY,GAAG,EAAE,CAAC;IACxB,IAAM,WAAW,GAAG,MAAM,GAAG,EAAE,CAAC;IAEhC,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,KAAK,CAAC,MAAM;YAClB,aAAa;YACb,SAAS;YACT;gBACE,KAAK,EAAE,UAAU,GAAG,CAAC,GAAG,YAAY;aACrC;SACF;QACD,KAAK,EAAE;YACL;gBACE,OAAO,EAAE,YAAY;gBACrB,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,WAAW;gBACnB,SAAS,EAAE,aAAa;aACzB;SACF;QACD,UAAU,EAAE;uBAER,SAAS,EAAE,QAAQ,IAChB,KAAK,CAAC,KAAK,CAAC,UAAU;SAE5B;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IPieChartStyleProps, IPieChartStyles } from './PieChart.types';\n\nexport const getStyles = (props: IPieChartStyleProps): IPieChartStyles => {\n const { className, theme, width, height } = props;\n\n const chartWidth = width + 30;\n const chartPadding = 20;\n const chartHeight = height + 10;\n\n return {\n root: [\n theme.fonts.medium,\n 'ms-PieChart',\n className,\n {\n width: chartWidth + 2 * chartPadding,\n },\n ],\n chart: [\n {\n padding: chartPadding,\n width: chartWidth,\n height: chartHeight,\n boxSizing: 'content-box',\n },\n ],\n chartTitle: [\n {\n textAlign: 'center',\n ...theme.fonts.mediumPlus,\n },\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 { IDataPoint } from '../../types/IDataPoint';
|
|
4
|
+
export type { IDataPoint } from '../../types/IDataPoint';
|
|
5
|
+
export interface IPieChart {
|
|
6
|
+
}
|
|
7
|
+
export interface IPieChartProps {
|
|
8
|
+
/**
|
|
9
|
+
* Data to render in the chart.
|
|
10
|
+
*/
|
|
11
|
+
data?: IDataPoint[];
|
|
12
|
+
/**
|
|
13
|
+
* Width of the chart.
|
|
14
|
+
*/
|
|
15
|
+
width?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Height of the chart.
|
|
18
|
+
*/
|
|
19
|
+
height?: number;
|
|
20
|
+
/**
|
|
21
|
+
* colors to render in the chart.
|
|
22
|
+
*/
|
|
23
|
+
colors?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Title to apply to the whole chart.
|
|
26
|
+
*/
|
|
27
|
+
chartTitle?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Additional CSS class(es) to apply to the PieChart.
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Theme (provided through customization.)
|
|
34
|
+
*/
|
|
35
|
+
theme?: ITheme;
|
|
36
|
+
/**
|
|
37
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
38
|
+
*/
|
|
39
|
+
styles?: IStyleFunctionOrObject<IPieChartStyleProps, IPieChartStyles>;
|
|
40
|
+
/**
|
|
41
|
+
* Width of line stroke
|
|
42
|
+
*/
|
|
43
|
+
strokeWidth?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The prop used to define the culture to localized the numbers
|
|
46
|
+
*/
|
|
47
|
+
culture?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> & Pick<IPieChartProps, 'className'>;
|
|
50
|
+
export interface IPieChartStyles {
|
|
51
|
+
/**
|
|
52
|
+
* Style for the root element.
|
|
53
|
+
*/
|
|
54
|
+
root?: IStyle;
|
|
55
|
+
/**
|
|
56
|
+
* Style for the chart.
|
|
57
|
+
*/
|
|
58
|
+
chart?: IStyle;
|
|
59
|
+
/**
|
|
60
|
+
* Style for the chart Title.
|
|
61
|
+
*/
|
|
62
|
+
chartTitle?: IStyle;
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChart.types.js","sourceRoot":"../src/","sources":["components/PieChart/PieChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IDataPoint } from '../../types/IDataPoint';\nexport type { IDataPoint } from '../../types/IDataPoint';\nexport interface IPieChart {}\n\nexport interface IPieChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IDataPoint[];\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 * colors to render in the chart.\n */\n colors?: string[];\n\n /**\n * Title to apply to the whole chart.\n */\n chartTitle?: string;\n\n /**\n * Additional CSS class(es) to apply to the PieChart.\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<IPieChartStyleProps, IPieChartStyles>;\n\n /**\n * Width of line stroke\n */\n strokeWidth?: number;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\nexport type IPieChartStyleProps = Required<Pick<IPieChartProps, 'theme' | 'width' | 'height'>> &\n Pick<IPieChartProps, 'className'>;\nexport interface IPieChartStyles {\n /**\n * Style for the root element.\n */\n root?: IStyle;\n\n /**\n * Style for the chart.\n */\n chart?: IStyle;\n\n /**\n * Style for the chart Title.\n */\n chartTitle?: IStyle;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/PieChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './PieChart';\nexport * from './PieChart.types';\n"]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ISankeyChartProps } from './SankeyChart.types';
|
|
3
|
+
import { IBasestate, IChartHoverCardProps, SLink, SNode } from '../../index';
|
|
4
|
+
export interface ISankeyChartState extends IBasestate, IChartHoverCardProps {
|
|
5
|
+
containerWidth: number;
|
|
6
|
+
containerHeight: number;
|
|
7
|
+
selectedState: boolean;
|
|
8
|
+
selectedLinks: Set<Number>;
|
|
9
|
+
selectedNodes: Set<Number>;
|
|
10
|
+
selectedNode?: SNode;
|
|
11
|
+
refSelected?: any;
|
|
12
|
+
selectedLink?: SLink;
|
|
13
|
+
shouldOverflow: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class SankeyChartBase extends React.Component<ISankeyChartProps, ISankeyChartState> {
|
|
16
|
+
private _classNames;
|
|
17
|
+
private chartContainer;
|
|
18
|
+
private _reqID;
|
|
19
|
+
private _calloutId;
|
|
20
|
+
private _linkId;
|
|
21
|
+
private _nodesInColumn;
|
|
22
|
+
private _sankey;
|
|
23
|
+
private _margins;
|
|
24
|
+
private _isRtl;
|
|
25
|
+
private _normalizeData;
|
|
26
|
+
constructor(props: ISankeyChartProps);
|
|
27
|
+
componentDidMount(): void;
|
|
28
|
+
componentDidUpdate(prevProps: ISankeyChartProps): void;
|
|
29
|
+
componentWillUnmount(): void;
|
|
30
|
+
render(): React.ReactNode;
|
|
31
|
+
private _preRenderLayout;
|
|
32
|
+
/**
|
|
33
|
+
* This is used for calculating the node non normalized value based on link non normalized value.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
private _populateNodeActualValue;
|
|
37
|
+
private _normalizeSankeyData;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* This is used to group nodes by column index.
|
|
41
|
+
*/
|
|
42
|
+
private _populateNodeInColumns;
|
|
43
|
+
/**
|
|
44
|
+
* This is used to normalize the nodes value whose value is less than 1% of the total column value.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
private _adjustOnePercentHeightNodes;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* This is used for normalizing each links value for reflecting the normalized node value.
|
|
51
|
+
*/
|
|
52
|
+
private _changeColumnValue;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* This is used to introduce dynamic padding for cases where the number of nodes in a column is huge
|
|
56
|
+
* so that we maintain a node to space ratio for such columns as if we fail to do so the
|
|
57
|
+
* chart is devoid of nodes and only shows links.
|
|
58
|
+
*/
|
|
59
|
+
private _adjustPadding;
|
|
60
|
+
private _createLinks;
|
|
61
|
+
private _createNodes;
|
|
62
|
+
private _onLeave;
|
|
63
|
+
private _onHover;
|
|
64
|
+
private _onStreamHover;
|
|
65
|
+
private _onStreamLeave;
|
|
66
|
+
private _onFocusLink;
|
|
67
|
+
private _onCloseCallout;
|
|
68
|
+
private _onBlur;
|
|
69
|
+
private _fillNodeColors;
|
|
70
|
+
/**
|
|
71
|
+
* This is used to assign node fillcolors and borderColor cyclically when the user doesnt
|
|
72
|
+
* provide color to individual node.
|
|
73
|
+
*/
|
|
74
|
+
private _assignNodeColors;
|
|
75
|
+
private _fillStreamColors;
|
|
76
|
+
private _fillStreamBorder;
|
|
77
|
+
private _fillNodeBorder;
|
|
78
|
+
private _getSelectedNodes;
|
|
79
|
+
private _getSelectedLinks;
|
|
80
|
+
private _getSelectedLinksforStreamHover;
|
|
81
|
+
private _getOpacityStream;
|
|
82
|
+
private _getOpacityStreamBorder;
|
|
83
|
+
private _fitParentContainer;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param text is the text which we are trying to truncate
|
|
87
|
+
* @param rectangleWidth is the width of the rectangle which will contain the text
|
|
88
|
+
* @param padding is the space we need to leave between the rect lines and other text
|
|
89
|
+
* @param nodeWeight is the text if present needs to be accomodate in the same line as text.
|
|
90
|
+
* @returns the truncated text , if truncated given the above parameters.
|
|
91
|
+
*/
|
|
92
|
+
private _truncateText;
|
|
93
|
+
private _showTooltip;
|
|
94
|
+
private _hideTooltip;
|
|
95
|
+
}
|