@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.
- package/CHANGELOG.json +34 -1
- package/CHANGELOG.md +14 -2
- package/dist/react-charting.d.ts +14 -1
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/etc/react-charting.api.md +10 -1
- package/lib/components/GaugeChart/GaugeChart.base.d.ts +10 -3
- package/lib/components/GaugeChart/GaugeChart.base.js +74 -37
- package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib/components/GaugeChart/GaugeChart.types.d.ts +13 -1
- package/lib/components/GaugeChart/GaugeChart.types.js +8 -0
- package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +10 -3
- package/lib-amd/components/GaugeChart/GaugeChart.base.js +77 -37
- package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +13 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.js +9 -1
- package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +10 -3
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +77 -37
- package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +13 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +9 -1
- package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +3 -3
- 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
|
|
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
|
/**
|