@fluentui/react-charting 5.19.22 → 5.19.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.json +34 -1
  2. package/CHANGELOG.md +14 -2
  3. package/dist/react-charting.d.ts +14 -1
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +10 -1
  7. package/lib/components/GaugeChart/GaugeChart.base.d.ts +10 -3
  8. package/lib/components/GaugeChart/GaugeChart.base.js +74 -37
  9. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  10. package/lib/components/GaugeChart/GaugeChart.types.d.ts +13 -1
  11. package/lib/components/GaugeChart/GaugeChart.types.js +8 -0
  12. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  13. package/lib/version.js +1 -1
  14. package/lib/version.js.map +1 -1
  15. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +10 -3
  16. package/lib-amd/components/GaugeChart/GaugeChart.base.js +77 -37
  17. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  18. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +13 -1
  19. package/lib-amd/components/GaugeChart/GaugeChart.types.js +9 -1
  20. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
  21. package/lib-amd/version.js +1 -1
  22. package/lib-amd/version.js.map +1 -1
  23. package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +10 -3
  24. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +77 -37
  25. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  26. package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +13 -1
  27. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +9 -1
  28. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  29. package/lib-commonjs/version.js +1 -1
  30. package/lib-commonjs/version.js.map +1 -1
  31. package/package.json +3 -3
  32. package/src/components/GaugeChart/GaugeChart.types.ts +15 -1
@@ -38,6 +38,14 @@ export enum GaugeValueFormat {
38
38
  Fraction = 'fraction',
39
39
  }
40
40
 
41
+ /**
42
+ * {@docCategory GaugeChart}
43
+ */
44
+ export enum GaugeChartVariant {
45
+ SingleSegment = 'single-segment',
46
+ MultipleSegments = 'multiple-segments',
47
+ }
48
+
41
49
  /**
42
50
  * Gauge Chart properties
43
51
  * {@docCategory GaugeChart}
@@ -94,7 +102,7 @@ export interface IGaugeChartProps {
94
102
  * Format of the chart value
95
103
  * @defaultvalue GaugeValueFormat.Percentage
96
104
  */
97
- chartValueFormat?: GaugeValueFormat | ((sweepFraction: number[]) => string);
105
+ chartValueFormat?: GaugeValueFormat | ((sweepFraction: [number, number]) => string);
98
106
 
99
107
  /**
100
108
  * Decides whether to show/hide legends
@@ -137,6 +145,12 @@ export interface IGaugeChartProps {
137
145
  * Props for the callout in the chart
138
146
  */
139
147
  calloutProps?: Partial<ICalloutProps>;
148
+
149
+ /**
150
+ * Specifies the variant of GaugeChart to be rendered
151
+ * @defaultvalue GaugeChartVariant.MultipleSegments
152
+ */
153
+ variant?: GaugeChartVariant;
140
154
  }
141
155
 
142
156
  /**