@fluentui/react-charting 5.21.28 → 5.21.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +55 -1
- package/CHANGELOG.md +24 -2
- package/dist/react-charting.js +1 -0
- package/dist/react-charting.min.js +1 -0
- package/lib/AreaChart.js.map +1 -1
- package/lib/CartesianChart.js.map +1 -1
- package/lib/DonutChart.js.map +1 -1
- package/lib/GaugeChart.js.map +1 -1
- package/lib/GroupedVerticalBarChart.js.map +1 -1
- package/lib/HeatMapChart.js.map +1 -1
- package/lib/HorizontalBarChart.js.map +1 -1
- package/lib/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib/Legends.js.map +1 -1
- package/lib/LineChart.js.map +1 -1
- package/lib/PieChart.js.map +1 -1
- package/lib/SankeyChart.js.map +1 -1
- package/lib/Sparkline.js.map +1 -1
- package/lib/StackedBarChart.js.map +1 -1
- package/lib/Styling.js.map +1 -1
- package/lib/TreeChart.js.map +1 -1
- package/lib/Utilities.js.map +1 -1
- package/lib/VerticalBarChart.js.map +1 -1
- package/lib/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib/components/AreaChart/index.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/CommonComponents/index.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib/components/DonutChart/Arc/index.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib/components/DonutChart/Pie/index.js.map +1 -1
- package/lib/components/DonutChart/index.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/components/GaugeChart/index.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib/components/HeatMapChart/index.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib/components/HorizontalBarChart/index.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/components/Legends/Legends.js.map +1 -1
- package/lib/components/Legends/Legends.styles.js.map +1 -1
- package/lib/components/Legends/Legends.types.js.map +1 -1
- package/lib/components/Legends/index.js.map +1 -1
- package/lib/components/Legends/shape.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/LineChart/LineChart.js.map +1 -1
- package/lib/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib/components/LineChart/LineChart.types.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib/components/LineChart/index.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.types.js.map +1 -1
- package/lib/components/PieChart/Arc/index.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.styles.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.types.js.map +1 -1
- package/lib/components/PieChart/Pie/index.js.map +1 -1
- package/lib/components/PieChart/PieChart.base.js.map +1 -1
- package/lib/components/PieChart/PieChart.js.map +1 -1
- package/lib/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib/components/PieChart/PieChart.types.js.map +1 -1
- package/lib/components/PieChart/index.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib/components/SankeyChart/index.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib/components/Sparkline/index.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
- package/lib/components/StackedBarChart/index.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib/components/TreeChart/index.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib/components/VerticalBarChart/index.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/IDataPoint.js.map +1 -1
- package/lib/types/IEventAnnotation.js.map +1 -1
- package/lib/types/ILegendDataItem.js.map +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
- package/lib/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib/utilities/FocusableTooltipText.js.map +1 -1
- package/lib/utilities/SVGTooltipText.js.map +1 -1
- package/lib/utilities/colors.js.map +1 -1
- package/lib/utilities/index.js.map +1 -1
- package/lib/utilities/locale-util.js.map +1 -1
- package/lib/utilities/test-data.js.map +1 -1
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/utilities/vbc-utils.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- 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/GaugeChart.d.ts +1 -0
- package/lib-amd/GaugeChart.js +6 -0
- package/lib-amd/GaugeChart.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/HorizontalBarChartWithAxis.d.ts +1 -0
- package/lib-amd/HorizontalBarChartWithAxis.js +6 -0
- package/lib-amd/HorizontalBarChartWithAxis.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 +103 -0
- package/lib-amd/components/AreaChart/AreaChart.base.js +652 -0
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -0
- package/lib-amd/components/AreaChart/AreaChart.d.ts +7 -0
- package/lib-amd/components/AreaChart/AreaChart.js +12 -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 +59 -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 +62 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +593 -0
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.d.ts +7 -0
- package/lib-amd/components/CommonComponents/CartesianChart.js +11 -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 +180 -0
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -0
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +528 -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 +88 -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 +54 -0
- package/lib-amd/components/DonutChart/DonutChart.base.js +241 -0
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -0
- package/lib-amd/components/DonutChart/DonutChart.d.ts +7 -0
- package/lib-amd/components/DonutChart/DonutChart.js +12 -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 +75 -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 +67 -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/GaugeChart/GaugeChart.base.d.ts +75 -0
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +410 -0
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -0
- package/lib-amd/components/GaugeChart/GaugeChart.d.ts +7 -0
- package/lib-amd/components/GaugeChart/GaugeChart.js +11 -0
- package/lib-amd/components/GaugeChart/GaugeChart.js.map +1 -0
- package/lib-amd/components/GaugeChart/GaugeChart.styles.d.ts +2 -0
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js +122 -0
- package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -0
- package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +238 -0
- package/lib-amd/components/GaugeChart/GaugeChart.types.js +22 -0
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -0
- package/lib-amd/components/GaugeChart/index.d.ts +2 -0
- package/lib-amd/components/GaugeChart/index.js +7 -0
- package/lib-amd/components/GaugeChart/index.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +72 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +425 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.d.ts +7 -0
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +12 -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 +111 -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 +152 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +538 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.d.ts +7 -0
- package/lib-amd/components/HeatMapChart/HeatMapChart.js +11 -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 +122 -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 +47 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +270 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.d.ts +7 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +12 -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 +69 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.d.ts +188 -0
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.types.js +14 -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/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.d.ts +61 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +499 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.d.ts +7 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +12 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.d.ts +2 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +17 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.d.ts +112 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js +5 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/index.d.ts +2 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js +7 -0
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -0
- package/lib-amd/components/Legends/Legends.base.d.ts +43 -0
- package/lib-amd/components/Legends/Legends.base.js +308 -0
- package/lib-amd/components/Legends/Legends.base.js.map +1 -0
- package/lib-amd/components/Legends/Legends.d.ts +7 -0
- package/lib-amd/components/Legends/Legends.js +11 -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 +111 -0
- package/lib-amd/components/Legends/Legends.styles.js.map +1 -0
- package/lib-amd/components/Legends/Legends.types.d.ts +210 -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 +92 -0
- package/lib-amd/components/LineChart/LineChart.base.js +861 -0
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -0
- package/lib-amd/components/LineChart/LineChart.d.ts +7 -0
- package/lib-amd/components/LineChart/LineChart.js +12 -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 +98 -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 +12 -0
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +97 -0
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -0
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.d.ts +24 -0
- package/lib-amd/components/LineChart/eventAnnotation/LabelLink.js +42 -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 +17 -0
- package/lib-amd/components/PieChart/Arc/Arc.js +85 -0
- package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -0
- package/lib-amd/components/PieChart/Arc/Arc.styles.d.ts +3 -0
- package/lib-amd/components/PieChart/Arc/Arc.styles.js +16 -0
- package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -0
- package/lib-amd/components/PieChart/Arc/Arc.types.d.ts +73 -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 +43 -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 +47 -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 +10 -0
- package/lib-amd/components/PieChart/PieChart.base.js +46 -0
- package/lib-amd/components/PieChart/PieChart.base.js.map +1 -0
- package/lib-amd/components/PieChart/PieChart.d.ts +7 -0
- package/lib-amd/components/PieChart/PieChart.js +12 -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 +75 -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 +90 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +930 -0
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.d.ts +7 -0
- package/lib-amd/components/SankeyChart/SankeyChart.js +12 -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 +65 -0
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -0
- package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +146 -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 +23 -0
- package/lib-amd/components/Sparkline/Sparkline.base.js +84 -0
- package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
- package/lib-amd/components/Sparkline/Sparkline.d.ts +7 -0
- package/lib-amd/components/Sparkline/Sparkline.js +12 -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 +59 -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 +70 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +412 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.d.ts +7 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +12 -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 +89 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +213 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js +14 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.d.ts +63 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +349 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.d.ts +7 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.js +12 -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 +107 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -0
- package/lib-amd/components/StackedBarChart/StackedBarChart.types.d.ts +222 -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 +320 -0
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -0
- package/lib-amd/components/TreeChart/TreeChart.d.ts +7 -0
- package/lib-amd/components/TreeChart/TreeChart.js +11 -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 +216 -0
- package/lib-amd/components/TreeChart/TreeChart.types.js +34 -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 +84 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +738 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.d.ts +7 -0
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +12 -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 +145 -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 +92 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +754 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.d.ts +7 -0
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +12 -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 +172 -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 +21 -0
- package/lib-amd/index.js +25 -0
- package/lib-amd/index.js.map +1 -0
- package/lib-amd/types/IDataPoint.d.ts +687 -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 +103 -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/SVGTooltipText.d.ts +95 -0
- package/lib-amd/utilities/SVGTooltipText.js +175 -0
- package/lib-amd/utilities/SVGTooltipText.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 +4 -0
- package/lib-amd/utilities/index.js +9 -0
- package/lib-amd/utilities/index.js.map +1 -0
- package/lib-amd/utilities/locale-util.d.ts +3 -0
- package/lib-amd/utilities/locale-util.js +24 -0
- package/lib-amd/utilities/locale-util.js.map +1 -0
- package/lib-amd/utilities/test-data.d.ts +27 -0
- package/lib-amd/utilities/test-data.js +214 -0
- package/lib-amd/utilities/test-data.js.map +1 -0
- package/lib-amd/utilities/utilities.d.ts +411 -0
- package/lib-amd/utilities/utilities.js +1085 -0
- package/lib-amd/utilities/utilities.js.map +1 -0
- package/lib-amd/utilities/vbc-utils.d.ts +2 -0
- package/lib-amd/utilities/vbc-utils.js +38 -0
- package/lib-amd/utilities/vbc-utils.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.js.map +1 -1
- package/lib-commonjs/CartesianChart.js.map +1 -1
- package/lib-commonjs/DonutChart.js.map +1 -1
- package/lib-commonjs/GaugeChart.js.map +1 -1
- package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/HeatMapChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/Legends.js.map +1 -1
- package/lib-commonjs/LineChart.js.map +1 -1
- package/lib-commonjs/PieChart.js.map +1 -1
- package/lib-commonjs/SankeyChart.js.map +1 -1
- package/lib-commonjs/Sparkline.js.map +1 -1
- package/lib-commonjs/StackedBarChart.js.map +1 -1
- package/lib-commonjs/Styling.js.map +1 -1
- package/lib-commonjs/TreeChart.js.map +1 -1
- package/lib-commonjs/Utilities.js.map +1 -1
- package/lib-commonjs/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
- package/lib-commonjs/components/AreaChart/index.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/index.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/index.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.types.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
- package/lib-commonjs/components/Legends/index.js.map +1 -1
- package/lib-commonjs/components/Legends/shape.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/LabelLink.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib-commonjs/components/LineChart/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.types.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.types.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.types.js.map +1 -1
- package/lib-commonjs/components/PieChart/index.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -1
- package/lib-commonjs/components/Sparkline/index.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.types.js.map +1 -1
- package/lib-commonjs/components/TreeChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/IDataPoint.js.map +1 -1
- package/lib-commonjs/types/IEventAnnotation.js.map +1 -1
- package/lib-commonjs/types/ILegendDataItem.js.map +1 -1
- package/lib-commonjs/types/index.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.types.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/colors.js.map +1 -1
- package/lib-commonjs/utilities/index.js.map +1 -1
- package/lib-commonjs/utilities/locale-util.js.map +1 -1
- package/lib-commonjs/utilities/test-data.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/utilities/vbc-utils.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +4 -4
- package/project.json +1 -1
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { ITheme, IStyle } from '@fluentui/react/lib/Styling';
|
|
2
|
+
import { ICalloutProps } from '@fluentui/react/lib/Callout';
|
|
3
|
+
import { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';
|
|
4
|
+
import { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';
|
|
5
|
+
import { IFocusZoneProps } from '@fluentui/react-focus';
|
|
6
|
+
import { ILegendsProps } from '../Legends/index';
|
|
7
|
+
export interface IStackedBarChart {
|
|
8
|
+
}
|
|
9
|
+
import { IChartProps, IChartDataPoint } from './index';
|
|
10
|
+
/**
|
|
11
|
+
* Stacked Bar Chart properties
|
|
12
|
+
* {@docCategory StackedBarChart}
|
|
13
|
+
*/
|
|
14
|
+
export interface IStackedBarChartProps {
|
|
15
|
+
/**
|
|
16
|
+
* Data to render in the chart.
|
|
17
|
+
*/
|
|
18
|
+
data?: IChartProps;
|
|
19
|
+
/**
|
|
20
|
+
* Benchmark Data to render in the chart.
|
|
21
|
+
*/
|
|
22
|
+
benchmarkData?: IChartDataPoint;
|
|
23
|
+
/**
|
|
24
|
+
* Target Data to render in the chart.
|
|
25
|
+
*/
|
|
26
|
+
targetData?: IChartDataPoint;
|
|
27
|
+
/**
|
|
28
|
+
* Width of the chart.
|
|
29
|
+
*/
|
|
30
|
+
width?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Height of each bar in the chart.
|
|
33
|
+
*/
|
|
34
|
+
barHeight?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Do not show the legend at the bottom of chart
|
|
37
|
+
* when there are more than two datapoints
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
hideLegend?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Do not show number/ratio on top of bar
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
hideNumberDisplay?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Do not show tooltips in chart
|
|
50
|
+
*
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
hideTooltip?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Additional CSS class(es) to apply to the StackedBarChart.
|
|
56
|
+
*/
|
|
57
|
+
className?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Theme (provided through customization.)
|
|
60
|
+
*/
|
|
61
|
+
theme?: ITheme;
|
|
62
|
+
/**
|
|
63
|
+
* Call to provide customized styling that will layer on top of the variant rules.
|
|
64
|
+
*/
|
|
65
|
+
styles?: IStyleFunctionOrObject<IStackedBarChartStyleProps, IStackedBarChartStyles>;
|
|
66
|
+
/**
|
|
67
|
+
* Color setting of bar background color, this will show while all data points value is 0
|
|
68
|
+
*/
|
|
69
|
+
barBackgroundColor?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Url that the data-viz needs to redirect to upon clicking on it
|
|
72
|
+
*/
|
|
73
|
+
href?: string;
|
|
74
|
+
/**
|
|
75
|
+
* If this value is set, the fixed display pattern for less than 2 data points chart will be ignore
|
|
76
|
+
*/
|
|
77
|
+
ignoreFixStyle?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* If this value is set to true the denominator will not be shown for the ratio above the chart
|
|
80
|
+
*/
|
|
81
|
+
hideDenominator?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Enable the legends to wrap lines if there is not enough space to show all legends on a single line
|
|
84
|
+
*/
|
|
85
|
+
enabledLegendsWrapLines?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* overflow props for the legend
|
|
88
|
+
*/
|
|
89
|
+
legendsOverflowProps?: Partial<IOverflowSetProps>;
|
|
90
|
+
/**
|
|
91
|
+
* text for overflow legends string
|
|
92
|
+
*/
|
|
93
|
+
legendsOverflowText?: string;
|
|
94
|
+
/**
|
|
95
|
+
* focus zone props in hover card for legends
|
|
96
|
+
*/
|
|
97
|
+
focusZonePropsForLegendsInHoverCard?: IFocusZoneProps;
|
|
98
|
+
/**
|
|
99
|
+
* props for the legends in the chart
|
|
100
|
+
*/
|
|
101
|
+
legendProps?: Partial<ILegendsProps>;
|
|
102
|
+
/**
|
|
103
|
+
* Define a custom callout renderer for a data point
|
|
104
|
+
*/
|
|
105
|
+
onRenderCalloutPerDataPoint?: IRenderFunction<IChartDataPoint>;
|
|
106
|
+
/**
|
|
107
|
+
* props for the callout in the chart
|
|
108
|
+
*/
|
|
109
|
+
calloutProps?: Partial<ICalloutProps>;
|
|
110
|
+
/**
|
|
111
|
+
* The prop used to define the culture to localized the numbers
|
|
112
|
+
*/
|
|
113
|
+
culture?: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Stacked Bar Chart style properties
|
|
117
|
+
* {@docCategory StackedBarChart}
|
|
118
|
+
*/
|
|
119
|
+
export interface IStackedBarChartStyleProps {
|
|
120
|
+
/**
|
|
121
|
+
* Theme (provided through customization.)
|
|
122
|
+
*/
|
|
123
|
+
theme: ITheme;
|
|
124
|
+
/**
|
|
125
|
+
* Additional CSS class(es) to apply to the StackedBarChart.
|
|
126
|
+
*/
|
|
127
|
+
className?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Width of the chart.
|
|
130
|
+
*/
|
|
131
|
+
width?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Height of bar in the chart.
|
|
134
|
+
*/
|
|
135
|
+
barHeight?: number;
|
|
136
|
+
/**
|
|
137
|
+
* prop to show data of the chart with appropriate legend color
|
|
138
|
+
*/
|
|
139
|
+
legendColor?: string;
|
|
140
|
+
/**
|
|
141
|
+
* prop to check if the chart is selcted or hovered upon to determine opacity
|
|
142
|
+
*/
|
|
143
|
+
shouldHighlight?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* prop to check which specific section of the stacked bar chart is selected or hovered upon
|
|
146
|
+
*/
|
|
147
|
+
isChartSelected?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* prop to check to decide cursor type
|
|
150
|
+
*/
|
|
151
|
+
href?: string;
|
|
152
|
+
/**
|
|
153
|
+
* the color for the benchmark triangle
|
|
154
|
+
*/
|
|
155
|
+
benchmarkColor?: string;
|
|
156
|
+
/**
|
|
157
|
+
* the ratio position for the benchmark triangle
|
|
158
|
+
*/
|
|
159
|
+
benchmarkRatio?: number;
|
|
160
|
+
/**
|
|
161
|
+
* the color for the target triangle
|
|
162
|
+
*/
|
|
163
|
+
targetColor?: string;
|
|
164
|
+
/**
|
|
165
|
+
* the ratio position for the target triangle
|
|
166
|
+
*/
|
|
167
|
+
targetRatio?: number;
|
|
168
|
+
/**
|
|
169
|
+
* prop to check if benchmark data or target data is provided
|
|
170
|
+
*/
|
|
171
|
+
showTriangle?: boolean;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Stacked Bar Chart styles
|
|
175
|
+
* {@docCategory StackedBarChart}
|
|
176
|
+
*/
|
|
177
|
+
export interface IStackedBarChartStyles {
|
|
178
|
+
/**
|
|
179
|
+
* Style for the root element.
|
|
180
|
+
*/
|
|
181
|
+
root: IStyle;
|
|
182
|
+
/**
|
|
183
|
+
* Style for the chart.
|
|
184
|
+
*/
|
|
185
|
+
chart: IStyle;
|
|
186
|
+
/**
|
|
187
|
+
* Style for the chart Title.
|
|
188
|
+
*/
|
|
189
|
+
chartTitle: IStyle;
|
|
190
|
+
/**
|
|
191
|
+
* Style for left side text of the chart title
|
|
192
|
+
*/
|
|
193
|
+
chartTitleLeft: IStyle;
|
|
194
|
+
/**
|
|
195
|
+
* Style for the legend container div
|
|
196
|
+
*/
|
|
197
|
+
legendContainer: IStyle;
|
|
198
|
+
/**
|
|
199
|
+
* Style to change the opacity of bars in dataviz when we hover on a single bar or legends
|
|
200
|
+
*/
|
|
201
|
+
opacityChangeOnHover: IStyle;
|
|
202
|
+
/**
|
|
203
|
+
* Style for the chart ratio numerator
|
|
204
|
+
*/
|
|
205
|
+
ratioNumerator: IStyle;
|
|
206
|
+
/**
|
|
207
|
+
* Style for the chart ratio denominator
|
|
208
|
+
*/
|
|
209
|
+
ratioDenominator: IStyle;
|
|
210
|
+
/**
|
|
211
|
+
* Style for the benchmark container
|
|
212
|
+
*/
|
|
213
|
+
benchmarkContainer: IStyle;
|
|
214
|
+
/**
|
|
215
|
+
* Style for the benchmark triangle
|
|
216
|
+
*/
|
|
217
|
+
benchmark: IStyle;
|
|
218
|
+
/**
|
|
219
|
+
* Style for the target triangle
|
|
220
|
+
*/
|
|
221
|
+
target: IStyle;
|
|
222
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackedBarChart.types.js","sourceRoot":"../src/","sources":["components/StackedBarChart/StackedBarChart.types.ts"],"names":[],"mappings":"","sourcesContent":["import { ITheme, IStyle } from '@fluentui/react/lib/Styling';\nimport { ICalloutProps } from '@fluentui/react/lib/Callout';\nimport { IRenderFunction, IStyleFunctionOrObject } from '@fluentui/react/lib/Utilities';\nimport { IOverflowSetProps } from '@fluentui/react/lib/OverflowSet';\nimport { IFocusZoneProps } from '@fluentui/react-focus';\nimport { ILegendsProps } from '../Legends/index';\n\nexport interface IStackedBarChart {}\nimport { IChartProps, IChartDataPoint } from './index';\n\n/**\n * Stacked Bar Chart properties\n * {@docCategory StackedBarChart}\n */\nexport interface IStackedBarChartProps {\n /**\n * Data to render in the chart.\n */\n data?: IChartProps;\n\n /**\n * Benchmark Data to render in the chart.\n */\n benchmarkData?: IChartDataPoint;\n\n /**\n * Target Data to render in the chart.\n */\n targetData?: IChartDataPoint;\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of each bar in the chart.\n */\n barHeight?: number;\n\n /**\n * Do not show the legend at the bottom of chart\n * when there are more than two datapoints\n *\n * @default false\n */\n hideLegend?: boolean;\n\n /**\n * Do not show number/ratio on top of bar\n *\n * @default false\n */\n hideNumberDisplay?: boolean;\n\n /**\n * Do not show tooltips in chart\n *\n * @default false\n */\n hideTooltip?: boolean;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\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<IStackedBarChartStyleProps, IStackedBarChartStyles>;\n\n /**\n * Color setting of bar background color, this will show while all data points value is 0\n */\n barBackgroundColor?: string;\n\n /**\n * Url that the data-viz needs to redirect to upon clicking on it\n */\n href?: string;\n\n /**\n * If this value is set, the fixed display pattern for less than 2 data points chart will be ignore\n */\n ignoreFixStyle?: boolean;\n\n /**\n * If this value is set to true the denominator will not be shown for the ratio above the chart\n */\n hideDenominator?: boolean;\n\n /**\n * Enable the legends to wrap lines if there is not enough space to show all legends on a single line\n */\n enabledLegendsWrapLines?: boolean;\n\n /**\n * overflow props for the legend\n */\n legendsOverflowProps?: Partial<IOverflowSetProps>;\n\n /**\n * text for overflow legends string\n */\n legendsOverflowText?: string;\n\n /**\n * focus zone props in hover card for legends\n */\n focusZonePropsForLegendsInHoverCard?: IFocusZoneProps;\n\n /**\n * props for the legends in the chart\n */\n legendProps?: Partial<ILegendsProps>;\n\n /**\n * Define a custom callout renderer for a data point\n */\n onRenderCalloutPerDataPoint?: IRenderFunction<IChartDataPoint>;\n\n /**\n * props for the callout in the chart\n */\n calloutProps?: Partial<ICalloutProps>;\n\n /**\n * The prop used to define the culture to localized the numbers\n */\n culture?: string;\n}\n\n/**\n * Stacked Bar Chart style properties\n * {@docCategory StackedBarChart}\n */\nexport interface IStackedBarChartStyleProps {\n /**\n * Theme (provided through customization.)\n */\n theme: ITheme;\n\n /**\n * Additional CSS class(es) to apply to the StackedBarChart.\n */\n className?: string;\n\n /**\n * Width of the chart.\n */\n width?: number;\n\n /**\n * Height of bar in the chart.\n */\n barHeight?: number;\n\n /**\n * prop to show data of the chart with appropriate legend color\n */\n legendColor?: string;\n\n /**\n * prop to check if the chart is selcted or hovered upon to determine opacity\n */\n shouldHighlight?: boolean;\n\n /**\n * prop to check which specific section of the stacked bar chart is selected or hovered upon\n */\n isChartSelected?: boolean;\n\n /**\n * prop to check to decide cursor type\n */\n href?: string;\n\n /**\n * the color for the benchmark triangle\n */\n benchmarkColor?: string;\n\n /**\n * the ratio position for the benchmark triangle\n */\n benchmarkRatio?: number;\n\n /**\n * the color for the target triangle\n */\n targetColor?: string;\n\n /**\n * the ratio position for the target triangle\n */\n targetRatio?: number;\n\n /**\n * prop to check if benchmark data or target data is provided\n */\n showTriangle?: boolean;\n}\n\n/**\n * Stacked Bar Chart styles\n * {@docCategory StackedBarChart}\n */\nexport interface IStackedBarChartStyles {\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 /**\n * Style for left side text of the chart title\n */\n chartTitleLeft: IStyle;\n\n /**\n * Style for the legend container div\n */\n legendContainer: IStyle;\n\n /**\n * Style to change the opacity of bars in dataviz when we hover on a single bar or legends\n */\n opacityChangeOnHover: IStyle;\n\n /**\n * Style for the chart ratio numerator\n */\n ratioNumerator: IStyle;\n\n /**\n * Style for the chart ratio denominator\n */\n ratioDenominator: IStyle;\n\n /**\n * Style for the benchmark container\n */\n benchmarkContainer: IStyle;\n\n /**\n * Style for the benchmark triangle\n */\n benchmark: IStyle;\n\n /**\n * Style for the target triangle\n */\n target: IStyle;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
define(["require", "exports", "tslib", "./StackedBarChart", "./MultiStackedBarChart", "./StackedBarChart.types", "./MultiStackedBarChart.types", "../../types/index"], function (require, exports, tslib_1, StackedBarChart_1, MultiStackedBarChart_1, StackedBarChart_types_1, MultiStackedBarChart_types_1, index_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
tslib_1.__exportStar(StackedBarChart_1, exports);
|
|
5
|
+
tslib_1.__exportStar(MultiStackedBarChart_1, exports);
|
|
6
|
+
tslib_1.__exportStar(StackedBarChart_types_1, exports);
|
|
7
|
+
tslib_1.__exportStar(MultiStackedBarChart_types_1, exports);
|
|
8
|
+
tslib_1.__exportStar(index_1, exports);
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/StackedBarChart/index.ts"],"names":[],"mappings":";;;IAAA,iDAAkC;IAClC,sDAAuC;IACvC,uDAAwC;IACxC,4DAA6C;IAC7C,uCAAkC","sourcesContent":["export * from './StackedBarChart';\nexport * from './MultiStackedBarChart';\nexport * from './StackedBarChart.types';\nexport * from './MultiStackedBarChart.types';\nexport * from '../../types/index';\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ITreeProps, ITreeState } from '../../index';
|
|
3
|
+
export declare class TreeChartBase extends React.Component<ITreeProps, ITreeState> {
|
|
4
|
+
private _treeData;
|
|
5
|
+
private _width;
|
|
6
|
+
private _height;
|
|
7
|
+
private _composition;
|
|
8
|
+
private _classNames;
|
|
9
|
+
private _margin;
|
|
10
|
+
private _nodeElements;
|
|
11
|
+
private _linkElements;
|
|
12
|
+
private _treeTraversal;
|
|
13
|
+
constructor(props: ITreeProps);
|
|
14
|
+
componentDidMount(): void;
|
|
15
|
+
componentDidUpdate(prevProps: ITreeProps): void;
|
|
16
|
+
createTreeChart(): void;
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
define(["require", "exports", "tslib", "react", "d3-hierarchy", "@fluentui/react/lib/Utilities", "d3-selection", "@fluentui/react-focus", "d3-array"], function (require, exports, tslib_1, React, d3_hierarchy_1, Utilities_1, d3_selection_1, react_focus_1, d3_array_1) {
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TreeChartBase = void 0;
|
|
5
|
+
var getClassNames = (0, Utilities_1.classNamesFunction)();
|
|
6
|
+
// Create a parent class for common tree components
|
|
7
|
+
var StandardTree = /** @class */ (function () {
|
|
8
|
+
function StandardTree(treeData, styleClassNames, _nodeElements, _linkElements) {
|
|
9
|
+
if (_nodeElements === void 0) { _nodeElements = []; }
|
|
10
|
+
if (_linkElements === void 0) { _linkElements = []; }
|
|
11
|
+
this._nodeElements = [];
|
|
12
|
+
this._linkElements = [];
|
|
13
|
+
this.treeData = treeData;
|
|
14
|
+
this.styleClassNames = styleClassNames;
|
|
15
|
+
this._nodeElements = _nodeElements;
|
|
16
|
+
this._linkElements = _linkElements;
|
|
17
|
+
}
|
|
18
|
+
StandardTree.prototype.truncateText = function (text, rectangleWidth, padding, styleClass) {
|
|
19
|
+
var truncatedText = '';
|
|
20
|
+
var words = text.split(/\s+/).reverse();
|
|
21
|
+
var word = '';
|
|
22
|
+
var tspan = (0, d3_selection_1.select)('.svgTree').append('text').attr('class', 'tempText').append('tspan').text(null);
|
|
23
|
+
if (styleClass) {
|
|
24
|
+
tspan.attr('class', styleClass);
|
|
25
|
+
}
|
|
26
|
+
var line = [];
|
|
27
|
+
while ((word = words.pop())) {
|
|
28
|
+
line.push(word);
|
|
29
|
+
tspan.text(line.join(' ') + ' ');
|
|
30
|
+
if (tspan.node() !== null) {
|
|
31
|
+
var w = tspan.node().getComputedTextLength();
|
|
32
|
+
if (w > rectangleWidth - padding) {
|
|
33
|
+
line.pop();
|
|
34
|
+
line.push('...');
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
truncatedText = line.join(' ') + ' ';
|
|
40
|
+
tspan.text(null);
|
|
41
|
+
(0, d3_selection_1.selectAll)('.tempText').remove();
|
|
42
|
+
return truncatedText;
|
|
43
|
+
};
|
|
44
|
+
// Append node elements
|
|
45
|
+
// nodeId to create unique key
|
|
46
|
+
StandardTree.prototype.addNodeShapetoSVG = function (name, subname, bodytext, metricName, xCenterCoordinate, yCoordinate, fillColor, rectangleWidth, rectangleHeight, nodeId, parentInfo) {
|
|
47
|
+
var ariaLabel = "nodeId: ".concat(nodeId, " \nnodeMainText: ").concat(name, "\nsubText ").concat(subname, " ").concat(parentInfo);
|
|
48
|
+
var xCoordinate = xCenterCoordinate - rectangleWidth / 2;
|
|
49
|
+
if (metricName || nodeId !== 0 || !bodytext) {
|
|
50
|
+
this._nodeElements.push(React.createElement("rect", { width: rectangleWidth, height: rectangleHeight, x: xCoordinate, y: yCoordinate, tabIndex: 0, role: 'text', "data-is-focusable": true, "aria-label": ariaLabel, className: this.styleClassNames.rectNode, stroke: fillColor, key: "".concat(nodeId).concat(this.styleClassNames.rectNode) }));
|
|
51
|
+
}
|
|
52
|
+
if (subname) {
|
|
53
|
+
subname = this.truncateText(subname, rectangleWidth, rectangleWidth / 4, this.styleClassNames.rectSubText);
|
|
54
|
+
}
|
|
55
|
+
if (bodytext) {
|
|
56
|
+
bodytext = this.truncateText(bodytext, rectangleWidth, rectangleWidth / 4, this.styleClassNames.rectBodyText);
|
|
57
|
+
}
|
|
58
|
+
if (metricName) {
|
|
59
|
+
metricName = this.truncateText(metricName, rectangleWidth, rectangleWidth / 4, this.styleClassNames.rectMetricText);
|
|
60
|
+
}
|
|
61
|
+
name = this.truncateText(name, rectangleWidth, rectangleWidth / 4, this.styleClassNames.rectText);
|
|
62
|
+
// Text position y = y + rectHeight/2, 2 is ratio for depth
|
|
63
|
+
// Text position x = x + rectWidth/2, 2 is ratio for length
|
|
64
|
+
// Sub-text position x = x + rectWidth/2, 2 is ratio for length
|
|
65
|
+
var subValue = metricName ? (React.createElement("tspan", { className: this.styleClassNames.rectMetricText, dy: "1.4em", x: xCoordinate + rectangleWidth / 2 }, metricName)) : bodytext ? (React.createElement(React.Fragment, null,
|
|
66
|
+
React.createElement("tspan", { className: this.styleClassNames.rectSubText, dy: "1.4em", x: xCoordinate + rectangleWidth / 2 }, subname),
|
|
67
|
+
React.createElement("tspan", { className: this.styleClassNames.rectBodyText, dy: "1.4em", x: xCoordinate + rectangleWidth / 2 }, bodytext))) : (React.createElement("tspan", { className: this.styleClassNames.rectSubText, dy: "1.4em", x: xCoordinate + rectangleWidth / 2 }, subname));
|
|
68
|
+
if (!subname && !metricName && !bodytext) {
|
|
69
|
+
this._nodeElements.push(React.createElement("text", { textAnchor: "middle", className: this.styleClassNames.rectMetricText, dy: yCoordinate + rectangleHeight / 1.6, x: xCoordinate + rectangleWidth / 2, key: "".concat(nodeId).concat(this.styleClassNames.rectText), "data-is-focusable": nodeId === 0 }, name));
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
this._nodeElements.push(React.createElement("text", { textAnchor: "middle", className: metricName ? this.styleClassNames.rectSubText : this.styleClassNames.rectText, dy: metricName ? yCoordinate + rectangleHeight / 2.5 : yCoordinate + rectangleHeight / 2, x: xCoordinate + rectangleWidth / 2, key: "".concat(nodeId).concat(this.styleClassNames.rectText), "data-is-focusable": nodeId === 0 },
|
|
73
|
+
name,
|
|
74
|
+
subValue));
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
// Create a rectangular path from parent to the child nodes
|
|
78
|
+
StandardTree.prototype.createPathLink = function (parentX, parentY, childX, childY, leaf, rectWidth, rectHeight, gap, childXMax) {
|
|
79
|
+
// gap adds ratio for parent.y to child.y
|
|
80
|
+
/*Below code is used to draw lines(___|) to show the parent child relation i.e a vertical line
|
|
81
|
+
emerging from the parent and
|
|
82
|
+
then a horzontal line encompassing all the its children which are
|
|
83
|
+
shown below it .so it gives a visual representation of tree branches.
|
|
84
|
+
|
|
85
|
+
So for making this path firstly we are moving to the childX which is the mid point of the node and then
|
|
86
|
+
we are subtracting the half of rectwidth to move the complete width of the rectangle and
|
|
87
|
+
we are subtracting gap from y cordinate as we are making this line at a little gap from node.
|
|
88
|
+
Then we are building that line horizonatlly till childXmax, again adding half rectwidth to complete
|
|
89
|
+
the line till end as childXmax will be midpoint.
|
|
90
|
+
Then last part is for making line vertical for that we move to the parentx position and
|
|
91
|
+
then draw the vertical till parenty + rectHeight + gap/2
|
|
92
|
+
We have seperate path for leaf node as we are using different composition like compact, long etc.*/
|
|
93
|
+
var path = "M".concat(childX - rectWidth / 2, ",").concat(childY - gap, " H").concat(childXMax + rectWidth / 2, " M").concat(parentX, ",").concat(childY - gap, "\n V").concat(parentY + rectHeight + gap / 2);
|
|
94
|
+
var leafpath = "M".concat(parentX, ",").concat(parentY + rectHeight + gap / 2, " V").concat(parentY + gap * 5, "\n H").concat(parentX - rectWidth / 2, " H").concat(parentX + rectWidth / 2);
|
|
95
|
+
// based on the type of node return leafpath or path element
|
|
96
|
+
return leaf ? leafpath : path;
|
|
97
|
+
};
|
|
98
|
+
// Append path link element
|
|
99
|
+
StandardTree.prototype.addLinktoSVG = function (nodeId, parentX, parentY, childX, childY, leaf, rectWidth, rectHeight, gap, childXMax) {
|
|
100
|
+
if (childXMax === void 0) { childXMax = 0; }
|
|
101
|
+
this._linkElements.push(React.createElement("path", { className: this.styleClassNames.link, d: this.createPathLink(parentX, parentY, childX, childY, leaf, rectWidth, rectHeight, gap, childXMax), key: "".concat(nodeId).concat(this.styleClassNames.link) }));
|
|
102
|
+
};
|
|
103
|
+
return StandardTree;
|
|
104
|
+
}());
|
|
105
|
+
// Create child class to Add Tree component based on treeHeight
|
|
106
|
+
var LayeredTree = /** @class */ (function (_super) {
|
|
107
|
+
tslib_1.__extends(LayeredTree, _super);
|
|
108
|
+
function LayeredTree(treeData, composition, styleClassNames, _nodeElements, _linkElements, _treeTraversal) {
|
|
109
|
+
if (_nodeElements === void 0) { _nodeElements = []; }
|
|
110
|
+
if (_linkElements === void 0) { _linkElements = []; }
|
|
111
|
+
var _this = _super.call(this, treeData, styleClassNames, _nodeElements, _linkElements) || this;
|
|
112
|
+
_this.composition = composition;
|
|
113
|
+
_this._treeTraversal = _treeTraversal;
|
|
114
|
+
return _this;
|
|
115
|
+
}
|
|
116
|
+
LayeredTree.prototype.createTree = function (givenLayoutWidth, screenWidth) {
|
|
117
|
+
var _a, _b, _c, _d, _e, _f;
|
|
118
|
+
givenLayoutWidth = givenLayoutWidth < 65 ? 65 : givenLayoutWidth > 90 ? 90 : givenLayoutWidth;
|
|
119
|
+
var layoutWidth = givenLayoutWidth || 75;
|
|
120
|
+
var root = (0, d3_hierarchy_1.hierarchy)(this.treeData, function (d) {
|
|
121
|
+
return d.children;
|
|
122
|
+
});
|
|
123
|
+
// Find tree Height
|
|
124
|
+
var treeHeight = (root === null || root === void 0 ? void 0 : root.height) + 1;
|
|
125
|
+
// Create tree layout, width: layoutWidth, height: layoutWidth/1.5 and add node separation
|
|
126
|
+
var treeChart = (0, d3_hierarchy_1.tree)()
|
|
127
|
+
.nodeSize([layoutWidth, layoutWidth / 1.5])
|
|
128
|
+
.separation(function (a, b) {
|
|
129
|
+
return a.parent === root && b.parent === root ? 3.5 : 1;
|
|
130
|
+
});
|
|
131
|
+
// Assigns the x and y position for the nodes
|
|
132
|
+
var treeData = treeChart(root);
|
|
133
|
+
// Compute the new tree layout.
|
|
134
|
+
var nodes = treeData.descendants();
|
|
135
|
+
// Normalize for fixed-depth and width
|
|
136
|
+
// Normalise y coordinate by depth of each node by a factor of 130
|
|
137
|
+
// Normalise x coordinate by start coordinate 0 with screenSize/3
|
|
138
|
+
nodes.forEach(function (d) {
|
|
139
|
+
d.y = d.depth === 0 ? 10 : d.depth * 130;
|
|
140
|
+
d.x += screenWidth / 2;
|
|
141
|
+
});
|
|
142
|
+
// <------------------ Traversal section ------------------>
|
|
143
|
+
// Create tree data structure
|
|
144
|
+
var treeDataStructure = [];
|
|
145
|
+
var TreeID = 0;
|
|
146
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
147
|
+
var createTreeDataStructure = function (d) {
|
|
148
|
+
var _a, _b;
|
|
149
|
+
d.id = TreeID;
|
|
150
|
+
treeDataStructure.push({
|
|
151
|
+
id: TreeID,
|
|
152
|
+
children: d.children,
|
|
153
|
+
dataName: d.data.name,
|
|
154
|
+
subName: d.data.subname,
|
|
155
|
+
bodyText: d.data.bodytext,
|
|
156
|
+
metricName: (_a = d.data) === null || _a === void 0 ? void 0 : _a.metric,
|
|
157
|
+
fill: d.data.fill,
|
|
158
|
+
x: d.x,
|
|
159
|
+
y: d.y,
|
|
160
|
+
parentID: (_b = d.parent) === null || _b === void 0 ? void 0 : _b.id,
|
|
161
|
+
});
|
|
162
|
+
TreeID++;
|
|
163
|
+
};
|
|
164
|
+
this._treeTraversal === 0
|
|
165
|
+
? root.each(function (d) {
|
|
166
|
+
createTreeDataStructure(d);
|
|
167
|
+
})
|
|
168
|
+
: root.eachBefore(function (d) {
|
|
169
|
+
createTreeDataStructure(d);
|
|
170
|
+
});
|
|
171
|
+
var rectWidth = layoutWidth * 3;
|
|
172
|
+
var rectHeight = rectWidth / 3.45;
|
|
173
|
+
var gap = 20;
|
|
174
|
+
var parentSet = new Set();
|
|
175
|
+
for (var _i = 0, treeDataStructure_1 = treeDataStructure; _i < treeDataStructure_1.length; _i++) {
|
|
176
|
+
var d = treeDataStructure_1[_i];
|
|
177
|
+
var parentInfo = d.id === 0
|
|
178
|
+
? 'Root Node'
|
|
179
|
+
: "Parent info parentId: ".concat(d.parentID, "\n ").concat(treeDataStructure[d.parentID].dataName, "\n ").concat(treeDataStructure[d.parentID].subName);
|
|
180
|
+
// check for leaf nodes
|
|
181
|
+
if (!d.children && !parentSet.has(d.parentID) && treeHeight === 3) {
|
|
182
|
+
var compactNodeWidth = (rectWidth - gap) / 2;
|
|
183
|
+
var compactNodeHeight = rectHeight;
|
|
184
|
+
parentSet.add(d.parentID);
|
|
185
|
+
// <------------------ Links section ------------------>
|
|
186
|
+
this.addLinktoSVG(d.id, treeDataStructure[d.parentID].x, treeDataStructure[d.parentID].y, treeDataStructure[d.id].x, treeDataStructure[d.id].y, true, rectWidth, rectHeight, gap);
|
|
187
|
+
// <------------------ Nodes section ------------------>
|
|
188
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
189
|
+
var children = (_a = treeDataStructure[d.parentID]) === null || _a === void 0 ? void 0 : _a.children;
|
|
190
|
+
var compactNodeCenterX1 = ((_b = treeDataStructure[d.parentID]) === null || _b === void 0 ? void 0 : _b.x) - compactNodeWidth / 2 - gap / 2;
|
|
191
|
+
var compactNodeCenterX2 = ((_c = treeDataStructure[d.parentID]) === null || _c === void 0 ? void 0 : _c.x) + compactNodeWidth / 2 + gap / 2;
|
|
192
|
+
var longNodeCenterX = (_d = treeDataStructure[d.parentID]) === null || _d === void 0 ? void 0 : _d.x;
|
|
193
|
+
var dy = (_e = children[0]) === null || _e === void 0 ? void 0 : _e.y;
|
|
194
|
+
for (var itr = 0; itr < children.length; ++itr) {
|
|
195
|
+
var child = children[itr];
|
|
196
|
+
// Given Composition
|
|
197
|
+
if (this.composition !== undefined) {
|
|
198
|
+
// For compact compostion
|
|
199
|
+
if (this.composition === 0) {
|
|
200
|
+
this.addNodeShapetoSVG(child.data.name, child.data.subname, child.data.bodytext, child.data.metricName,
|
|
201
|
+
// If the leaf node count is 1 ,
|
|
202
|
+
//irrespective of provided composition we should always use long composition
|
|
203
|
+
itr % 2 === 0 ? (children.length === 1 ? longNodeCenterX : compactNodeCenterX1) : compactNodeCenterX2, dy, child.data.fill, children.length === 1 ? rectWidth : compactNodeWidth, rectHeight, child.id, parentInfo);
|
|
204
|
+
if (itr % 2 === 1) {
|
|
205
|
+
dy += compactNodeHeight + gap;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
// For long compostion
|
|
209
|
+
else {
|
|
210
|
+
this.addNodeShapetoSVG(child.data.name, child.data.subname, child.data.bodytext, child.data.metricName, longNodeCenterX, dy, child.data.fill, rectWidth, rectHeight, child.id, parentInfo);
|
|
211
|
+
dy += compactNodeHeight + gap;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
// Automatic Node Composition
|
|
215
|
+
else {
|
|
216
|
+
if (children.length > 2) {
|
|
217
|
+
this.addNodeShapetoSVG(child.data.name, child.data.subname, child.data.bodytext, child.data.metricName, itr % 2 === 0 ? compactNodeCenterX1 : compactNodeCenterX2, dy, child.data.fill, children.length === 1 ? rectWidth : compactNodeWidth, rectHeight, child.id, parentInfo);
|
|
218
|
+
if (itr % 2 === 1) {
|
|
219
|
+
dy += compactNodeHeight + gap;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
this.addNodeShapetoSVG(child.data.name, child.data.subname, child.data.bodytext, child.data.metricName, longNodeCenterX, dy, child.data.fill, rectWidth, rectHeight, child.id, parentInfo);
|
|
224
|
+
dy += compactNodeHeight + gap;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
if (d.children || treeHeight <= 2) {
|
|
230
|
+
// <------------------ Nodes section ------------------>
|
|
231
|
+
// Since the height <=2 we will be using long compositon.
|
|
232
|
+
this.addNodeShapetoSVG(d.dataName, d.subName, d.bodyText, d.metricName, d.x, d.y, d.fill, rectWidth, rectHeight, d.id, parentInfo);
|
|
233
|
+
// <------------------ Links section ------------------>
|
|
234
|
+
if (d.id === 0 && d.children) {
|
|
235
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
236
|
+
var children = (_f = treeDataStructure[d.id]) === null || _f === void 0 ? void 0 : _f.children;
|
|
237
|
+
var childXMin = (0, d3_array_1.min)(children, function (child) { return child.x; });
|
|
238
|
+
var childXMax = (0, d3_array_1.max)(children, function (child) { return child.x; });
|
|
239
|
+
this.addLinktoSVG(d.id, d.x, d.y, childXMin, d.children[0].y, false, rectWidth, rectHeight, gap, childXMax);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
return LayeredTree;
|
|
245
|
+
}(StandardTree));
|
|
246
|
+
var TreeChartBase = /** @class */ (function (_super) {
|
|
247
|
+
tslib_1.__extends(TreeChartBase, _super);
|
|
248
|
+
function TreeChartBase(props) {
|
|
249
|
+
var _this = this;
|
|
250
|
+
var _a, _b, _c, _d, _e;
|
|
251
|
+
_this = _super.call(this, props) || this;
|
|
252
|
+
_this._nodeElements = [];
|
|
253
|
+
_this._linkElements = [];
|
|
254
|
+
_this._margin = {
|
|
255
|
+
top: ((_a = _this.props.margins) === null || _a === void 0 ? void 0 : _a.top) || 30,
|
|
256
|
+
bottom: ((_b = _this.props.margins) === null || _b === void 0 ? void 0 : _b.bottom) || 30,
|
|
257
|
+
left: ((_c = _this.props.margins) === null || _c === void 0 ? void 0 : _c.left) || 50,
|
|
258
|
+
right: ((_d = _this.props.margins) === null || _d === void 0 ? void 0 : _d.right) || 20,
|
|
259
|
+
};
|
|
260
|
+
_this._width = _this.props.width || 1500;
|
|
261
|
+
_this._height = _this.props.height || 700;
|
|
262
|
+
_this._treeData = _this.props.treeData;
|
|
263
|
+
_this._composition = (_e = _this.props) === null || _e === void 0 ? void 0 : _e.composition;
|
|
264
|
+
_this._treeTraversal = _this.props.treeTraversal;
|
|
265
|
+
_this.state = {
|
|
266
|
+
_width: _this._width,
|
|
267
|
+
_height: _this._height,
|
|
268
|
+
};
|
|
269
|
+
return _this;
|
|
270
|
+
}
|
|
271
|
+
TreeChartBase.prototype.componentDidMount = function () {
|
|
272
|
+
var _a = this.props, theme = _a.theme, className = _a.className, styles = _a.styles;
|
|
273
|
+
// Get classNames to create component styling
|
|
274
|
+
this._classNames = getClassNames(styles, {
|
|
275
|
+
theme: theme,
|
|
276
|
+
className: className,
|
|
277
|
+
});
|
|
278
|
+
// Call createTreeChart function in componentDidMount
|
|
279
|
+
this.createTreeChart();
|
|
280
|
+
this.setState({
|
|
281
|
+
_width: this.props.width || 1500,
|
|
282
|
+
_height: this.props.height || 700,
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
TreeChartBase.prototype.componentDidUpdate = function (prevProps) {
|
|
286
|
+
if (prevProps.layoutWidth !== this.props.layoutWidth) {
|
|
287
|
+
var svgText = (0, d3_selection_1.selectAll)('text');
|
|
288
|
+
var svgRect = (0, d3_selection_1.selectAll)('rect');
|
|
289
|
+
var svgLink = (0, d3_selection_1.selectAll)('path');
|
|
290
|
+
if (this._nodeElements.length === 0 && this._linkElements.length === 0) {
|
|
291
|
+
svgText.remove();
|
|
292
|
+
svgRect.remove();
|
|
293
|
+
svgLink.remove();
|
|
294
|
+
}
|
|
295
|
+
this.createTreeChart();
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
TreeChartBase.prototype.createTreeChart = function () {
|
|
299
|
+
var nodeElements = [];
|
|
300
|
+
var linkElements = [];
|
|
301
|
+
// Instantiate inherited class and call createTree function for the object
|
|
302
|
+
var treeObject = new LayeredTree(this._treeData, this._composition, this._classNames, nodeElements, linkElements, this._treeTraversal);
|
|
303
|
+
var width = this.state._width - this._margin.left - this._margin.right;
|
|
304
|
+
treeObject.createTree(this.props.layoutWidth, width);
|
|
305
|
+
this._nodeElements = nodeElements;
|
|
306
|
+
this._linkElements = linkElements;
|
|
307
|
+
};
|
|
308
|
+
TreeChartBase.prototype.render = function () {
|
|
309
|
+
var _a;
|
|
310
|
+
return (React.createElement(react_focus_1.FocusZone, null,
|
|
311
|
+
React.createElement("div", { className: (_a = this._classNames) === null || _a === void 0 ? void 0 : _a.root },
|
|
312
|
+
React.createElement("svg", { className: "svgTree", width: this.state._width - this._margin.left - this._margin.right, height: this.state._height - this._margin.top - this._margin.bottom },
|
|
313
|
+
React.createElement("g", { className: "svgNode" }, this._nodeElements.map(function (element) { return element; })),
|
|
314
|
+
React.createElement("g", { className: "svgLink" }, this._linkElements.map(function (element) { return element; }))))));
|
|
315
|
+
};
|
|
316
|
+
return TreeChartBase;
|
|
317
|
+
}(React.Component));
|
|
318
|
+
exports.TreeChartBase = TreeChartBase;
|
|
319
|
+
});
|
|
320
|
+
//# sourceMappingURL=TreeChart.base.js.map
|