@fluentui/react-charting 5.24.8 → 5.24.10

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 (135) hide show
  1. package/CHANGELOG.json +49 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/react-charting.d.ts +150 -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 +41 -1
  7. package/lib/FunnelChart.d.ts +1 -0
  8. package/lib/FunnelChart.js +2 -0
  9. package/lib/FunnelChart.js.map +1 -0
  10. package/lib/components/DeclarativeChart/DeclarativeChart.js +7 -1
  11. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  12. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +2 -0
  13. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +123 -2
  14. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  15. package/lib/components/FunnelChart/FunnelChart.base.d.ts +3 -0
  16. package/lib/components/FunnelChart/FunnelChart.base.js +264 -0
  17. package/lib/components/FunnelChart/FunnelChart.base.js.map +1 -0
  18. package/lib/components/FunnelChart/FunnelChart.d.ts +7 -0
  19. package/lib/components/FunnelChart/FunnelChart.js +9 -0
  20. package/lib/components/FunnelChart/FunnelChart.js.map +1 -0
  21. package/lib/components/FunnelChart/FunnelChart.styles.d.ts +2 -0
  22. package/lib/components/FunnelChart/FunnelChart.styles.js +38 -0
  23. package/lib/components/FunnelChart/FunnelChart.styles.js.map +1 -0
  24. package/lib/components/FunnelChart/FunnelChart.types.d.ts +139 -0
  25. package/lib/components/FunnelChart/FunnelChart.types.js +2 -0
  26. package/lib/components/FunnelChart/FunnelChart.types.js.map +1 -0
  27. package/lib/components/FunnelChart/funnelGeometry.d.ts +77 -0
  28. package/lib/components/FunnelChart/funnelGeometry.js +194 -0
  29. package/lib/components/FunnelChart/funnelGeometry.js.map +1 -0
  30. package/lib/components/FunnelChart/index.d.ts +2 -0
  31. package/lib/components/FunnelChart/index.js +3 -0
  32. package/lib/components/FunnelChart/index.js.map +1 -0
  33. package/lib/components/HeatMapChart/HeatMapChart.base.d.ts +0 -1
  34. package/lib/components/HeatMapChart/HeatMapChart.base.js +2 -16
  35. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  36. package/lib/components/LineChart/LineChart.base.d.ts +4 -0
  37. package/lib/components/LineChart/LineChart.base.js +77 -56
  38. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  39. package/lib/components/LineChart/LineChart.types.d.ts +6 -0
  40. package/lib/components/LineChart/LineChart.types.js.map +1 -1
  41. package/lib/index.d.ts +2 -0
  42. package/lib/index.js +1 -0
  43. package/lib/index.js.map +1 -1
  44. package/lib/types/IDataPoint.d.ts +1 -1
  45. package/lib/types/IDataPoint.js.map +1 -1
  46. package/lib/utilities/utilities.d.ts +3 -0
  47. package/lib/utilities/utilities.js +14 -0
  48. package/lib/utilities/utilities.js.map +1 -1
  49. package/lib-amd/FunnelChart.d.ts +1 -0
  50. package/lib-amd/FunnelChart.js +6 -0
  51. package/lib-amd/FunnelChart.js.map +1 -0
  52. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +6 -1
  53. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  54. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +2 -0
  55. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +125 -3
  56. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  57. package/lib-amd/components/FunnelChart/FunnelChart.base.d.ts +3 -0
  58. package/lib-amd/components/FunnelChart/FunnelChart.base.js +258 -0
  59. package/lib-amd/components/FunnelChart/FunnelChart.base.js.map +1 -0
  60. package/lib-amd/components/FunnelChart/FunnelChart.d.ts +7 -0
  61. package/lib-amd/components/FunnelChart/FunnelChart.js +11 -0
  62. package/lib-amd/components/FunnelChart/FunnelChart.js.map +1 -0
  63. package/lib-amd/components/FunnelChart/FunnelChart.styles.d.ts +2 -0
  64. package/lib-amd/components/FunnelChart/FunnelChart.styles.js +43 -0
  65. package/lib-amd/components/FunnelChart/FunnelChart.styles.js.map +1 -0
  66. package/lib-amd/components/FunnelChart/FunnelChart.types.d.ts +139 -0
  67. package/lib-amd/components/FunnelChart/FunnelChart.types.js +5 -0
  68. package/lib-amd/components/FunnelChart/FunnelChart.types.js.map +1 -0
  69. package/lib-amd/components/FunnelChart/funnelGeometry.d.ts +77 -0
  70. package/lib-amd/components/FunnelChart/funnelGeometry.js +204 -0
  71. package/lib-amd/components/FunnelChart/funnelGeometry.js.map +1 -0
  72. package/lib-amd/components/FunnelChart/index.d.ts +2 -0
  73. package/lib-amd/components/FunnelChart/index.js +7 -0
  74. package/lib-amd/components/FunnelChart/index.js.map +1 -0
  75. package/lib-amd/components/HeatMapChart/HeatMapChart.base.d.ts +0 -1
  76. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +2 -15
  77. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  78. package/lib-amd/components/LineChart/LineChart.base.d.ts +4 -0
  79. package/lib-amd/components/LineChart/LineChart.base.js +77 -56
  80. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  81. package/lib-amd/components/LineChart/LineChart.types.d.ts +6 -0
  82. package/lib-amd/components/LineChart/LineChart.types.js.map +1 -1
  83. package/lib-amd/index.d.ts +2 -0
  84. package/lib-amd/index.js +3 -2
  85. package/lib-amd/index.js.map +1 -1
  86. package/lib-amd/types/IDataPoint.d.ts +1 -1
  87. package/lib-amd/types/IDataPoint.js.map +1 -1
  88. package/lib-amd/utilities/utilities.d.ts +3 -0
  89. package/lib-amd/utilities/utilities.js +17 -2
  90. package/lib-amd/utilities/utilities.js.map +1 -1
  91. package/lib-commonjs/FunnelChart.d.ts +1 -0
  92. package/lib-commonjs/FunnelChart.js +5 -0
  93. package/lib-commonjs/FunnelChart.js.map +1 -0
  94. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +6 -0
  95. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  96. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +2 -0
  97. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +125 -3
  98. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  99. package/lib-commonjs/components/FunnelChart/FunnelChart.base.d.ts +3 -0
  100. package/lib-commonjs/components/FunnelChart/FunnelChart.base.js +267 -0
  101. package/lib-commonjs/components/FunnelChart/FunnelChart.base.js.map +1 -0
  102. package/lib-commonjs/components/FunnelChart/FunnelChart.d.ts +7 -0
  103. package/lib-commonjs/components/FunnelChart/FunnelChart.js +12 -0
  104. package/lib-commonjs/components/FunnelChart/FunnelChart.js.map +1 -0
  105. package/lib-commonjs/components/FunnelChart/FunnelChart.styles.d.ts +2 -0
  106. package/lib-commonjs/components/FunnelChart/FunnelChart.styles.js +42 -0
  107. package/lib-commonjs/components/FunnelChart/FunnelChart.styles.js.map +1 -0
  108. package/lib-commonjs/components/FunnelChart/FunnelChart.types.d.ts +139 -0
  109. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js +3 -0
  110. package/lib-commonjs/components/FunnelChart/FunnelChart.types.js.map +1 -0
  111. package/lib-commonjs/components/FunnelChart/funnelGeometry.d.ts +77 -0
  112. package/lib-commonjs/components/FunnelChart/funnelGeometry.js +202 -0
  113. package/lib-commonjs/components/FunnelChart/funnelGeometry.js.map +1 -0
  114. package/lib-commonjs/components/FunnelChart/index.d.ts +2 -0
  115. package/lib-commonjs/components/FunnelChart/index.js +6 -0
  116. package/lib-commonjs/components/FunnelChart/index.js.map +1 -0
  117. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.d.ts +0 -1
  118. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +1 -15
  119. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  120. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +4 -0
  121. package/lib-commonjs/components/LineChart/LineChart.base.js +77 -56
  122. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  123. package/lib-commonjs/components/LineChart/LineChart.types.d.ts +6 -0
  124. package/lib-commonjs/components/LineChart/LineChart.types.js.map +1 -1
  125. package/lib-commonjs/index.d.ts +2 -0
  126. package/lib-commonjs/index.js +3 -1
  127. package/lib-commonjs/index.js.map +1 -1
  128. package/lib-commonjs/types/IDataPoint.d.ts +1 -1
  129. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  130. package/lib-commonjs/utilities/utilities.d.ts +3 -0
  131. package/lib-commonjs/utilities/utilities.js +17 -1
  132. package/lib-commonjs/utilities/utilities.js.map +1 -1
  133. package/package.json +2 -2
  134. package/src/components/FunnelChart/FunnelChart.types.ts +153 -0
  135. package/src/components/LineChart/LineChart.types.ts +7 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,55 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 24 Jun 2025 07:20:21 GMT",
5
+ "date": "Wed, 02 Jul 2025 07:19:48 GMT",
6
+ "tag": "@fluentui/react-charting_v5.24.10",
7
+ "version": "5.24.10",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "anushgupta@microsoft.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "c9a5c5b2f5c2e568f8d184b5b712632ef11b617a",
14
+ "comment": "implement single value callout in line chart"
15
+ },
16
+ {
17
+ "author": "email not defined",
18
+ "package": "@fluentui/react-charting",
19
+ "commit": "096558dbd97e7f91d95c43b7b0494f9af521819b",
20
+ "comment": "feat(react-charting): Support for Funnel Chart"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-charting",
25
+ "comment": "Bump @fluentui/chart-utilities to v1.1.20",
26
+ "commit": "096558dbd97e7f91d95c43b7b0494f9af521819b"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Mon, 30 Jun 2025 07:19:37 GMT",
33
+ "tag": "@fluentui/react-charting_v5.24.9",
34
+ "version": "5.24.9",
35
+ "comments": {
36
+ "patch": [
37
+ {
38
+ "author": "120183316+srmukher@users.noreply.github.com",
39
+ "package": "@fluentui/react-charting",
40
+ "commit": "75a5aa640d1a15ba9a558bfdef7051d8edbf3abb",
41
+ "comment": "fix(react-charting): Adding support for marker texts for modes containing text"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui/react-charting",
46
+ "comment": "Bump @fluentui/chart-utilities to v1.1.19",
47
+ "commit": "2eee98645c74001a4b8125c75b3951870ef317a2"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Tue, 24 Jun 2025 07:20:41 GMT",
6
54
  "tag": "@fluentui/react-charting_v5.24.8",
7
55
  "version": "5.24.8",
8
56
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Tue, 24 Jun 2025 07:20:21 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 02 Jul 2025 07:19:48 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.24.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.10)
8
+
9
+ Wed, 02 Jul 2025 07:19:48 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.9..@fluentui/react-charting_v5.24.10)
11
+
12
+ ### Patches
13
+
14
+ - implement single value callout in line chart ([PR #34757](https://github.com/microsoft/fluentui/pull/34757) by anushgupta@microsoft.com)
15
+ - feat(react-charting): Support for Funnel Chart ([PR #34688](https://github.com/microsoft/fluentui/pull/34688) by email not defined)
16
+ - Bump @fluentui/chart-utilities to v1.1.20 ([PR #34688](https://github.com/microsoft/fluentui/pull/34688) by beachball)
17
+
18
+ ## [5.24.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.9)
19
+
20
+ Mon, 30 Jun 2025 07:19:37 GMT
21
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.8..@fluentui/react-charting_v5.24.9)
22
+
23
+ ### Patches
24
+
25
+ - fix(react-charting): Adding support for marker texts for modes containing text ([PR #34708](https://github.com/microsoft/fluentui/pull/34708) by 120183316+srmukher@users.noreply.github.com)
26
+ - Bump @fluentui/chart-utilities to v1.1.19 ([PR #34731](https://github.com/microsoft/fluentui/pull/34731) by beachball)
27
+
7
28
  ## [5.24.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.8)
8
29
 
9
- Tue, 24 Jun 2025 07:20:21 GMT
30
+ Tue, 24 Jun 2025 07:20:41 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.7..@fluentui/react-charting_v5.24.8)
11
32
 
12
33
  ### Patches
@@ -206,6 +206,12 @@ export declare interface DeclarativeChartProps extends React_2.RefAttributes<HTM
206
206
  */
207
207
  export declare const DonutChart: React_2.FunctionComponent<IDonutChartProps>;
208
208
 
209
+ /**
210
+ * Funnelchart component.
211
+ * {@docCategory FunnelChart}
212
+ */
213
+ export declare const FunnelChart: React_2.FunctionComponent<IFunnelChartProps>;
214
+
209
215
  /**
210
216
  * Gaugechart component.
211
217
  * {@docCategory GaugeChart}
@@ -1285,6 +1291,143 @@ export declare interface IEventsAnnotationProps {
1285
1291
  mergedLabel: (count: number) => string;
1286
1292
  }
1287
1293
 
1294
+ /**
1295
+ * Data point for funnel chart
1296
+ * {@docCategory FunnelChart}
1297
+ */
1298
+ declare interface IFunnelChartDataPoint {
1299
+ /**
1300
+ * Stage name or identifier
1301
+ */
1302
+ stage: string | number;
1303
+ /**
1304
+ * Sub-values for stacked funnel charts
1305
+ * Each sub-value represents a category within the stage
1306
+ */
1307
+ subValues?: Array<{
1308
+ category: string;
1309
+ value: number;
1310
+ color: string;
1311
+ }>;
1312
+ /**
1313
+ * Value for the stage (used for non-stacked funnel charts)
1314
+ */
1315
+ value?: number;
1316
+ /**
1317
+ * Color for the stage (used for non-stacked funnel charts)
1318
+ */
1319
+ color?: string;
1320
+ }
1321
+
1322
+ /**
1323
+ * Funnel Chart component props
1324
+ * {@docCategory FunnelChart}
1325
+ */
1326
+ export declare interface IFunnelChartProps {
1327
+ /**
1328
+ * Data points for the funnel chart
1329
+ */
1330
+ data: IFunnelChartDataPoint[];
1331
+ /**
1332
+ * Title for the chart
1333
+ */
1334
+ chartTitle?: string;
1335
+ /**
1336
+ * Width of the chart
1337
+ */
1338
+ width?: number;
1339
+ /**
1340
+ * Height of the chart
1341
+ */
1342
+ height?: number;
1343
+ /**
1344
+ * Decides whether to show/hide legends
1345
+ * @defaultvalue false
1346
+ */
1347
+ hideLegend?: boolean;
1348
+ /**
1349
+ * Props for the legends in the chart
1350
+ */
1351
+ legendProps?: Partial<ILegendsProps>;
1352
+ /**
1353
+ * Props for the callout in the chart
1354
+ */
1355
+ calloutProps?: Partial<ICalloutProps>;
1356
+ /**
1357
+ * Theme (provided through customization)
1358
+ */
1359
+ theme?: ITheme;
1360
+ /**
1361
+ * Call to provide customized styling that will layer on top of the variant rules
1362
+ */
1363
+ styles?: IStyleFunctionOrObject<IFunnelChartStyleProps, IFunnelChartStyles>;
1364
+ /**
1365
+ * Defines the culture to localize the numbers and dates
1366
+ */
1367
+ culture?: string;
1368
+ /**
1369
+ * Reference to the chart component
1370
+ */
1371
+ componentRef?: React_2.RefObject<any>;
1372
+ /**
1373
+ * Additional CSS class(es) to apply to the chart
1374
+ */
1375
+ className?: string;
1376
+ /**
1377
+ * Orientation of the funnel chart
1378
+ * @defaultvalue 'horizontal'
1379
+ */
1380
+ orientation?: 'horizontal' | 'vertical';
1381
+ }
1382
+
1383
+ /**
1384
+ * Funnel Chart style properties
1385
+ * {@docCategory FunnelChart}
1386
+ */
1387
+ export declare interface IFunnelChartStyleProps {
1388
+ /**
1389
+ * Theme (provided through customization)
1390
+ */
1391
+ theme: ITheme;
1392
+ /**
1393
+ * Additional CSS class(es) to apply to the chart
1394
+ */
1395
+ className?: string;
1396
+ /**
1397
+ * Width of the chart
1398
+ */
1399
+ chartWidth: number;
1400
+ /**
1401
+ * Height of the chart
1402
+ */
1403
+ chartHeight: number;
1404
+ }
1405
+
1406
+ /**
1407
+ * Funnel Chart styles
1408
+ * {@docCategory FunnelChart}
1409
+ */
1410
+ export declare interface IFunnelChartStyles {
1411
+ /**
1412
+ * Styles for the root element
1413
+ */
1414
+ root?: IStyle;
1415
+ /**
1416
+ * Styles for the chart
1417
+ */
1418
+ chart?: IStyle;
1419
+ /**
1420
+ * Styles for text elements
1421
+ */
1422
+ text?: IStyle;
1423
+ /**
1424
+ * Styles for sub-components
1425
+ */
1426
+ subComponentStyles: {
1427
+ calloutStyles: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;
1428
+ };
1429
+ }
1430
+
1288
1431
  /**
1289
1432
  * Gauge Chart properties
1290
1433
  * {@docCategory GaugeChart}
@@ -2648,7 +2791,7 @@ export declare interface ILineChartLineOptions extends React_2.SVGProps<SVGPathE
2648
2791
  /**
2649
2792
  * Defines the mode of points to be rendered.
2650
2793
  */
2651
- mode?: 'lines' | 'markers' | 'text' | 'lines+markers' | 'text+markers' | 'text+lines' | 'text+lines+markers' | 'none' | 'gauge' | 'number' | 'delta' | 'number+delta' | 'gauge+number' | 'gauge+number+delta' | 'gauge+delta' | 'markers+text';
2794
+ mode?: 'lines' | 'markers' | 'text' | 'lines+markers' | 'text+markers' | 'text+lines' | 'text+lines+markers' | 'none' | 'gauge' | 'number' | 'delta' | 'number+delta' | 'gauge+number' | 'gauge+number+delta' | 'gauge+delta' | 'markers+text' | 'lines+text';
2652
2795
  }
2653
2796
 
2654
2797
  /**
@@ -2760,6 +2903,12 @@ export declare interface ILineChartProps extends ICartesianChartProps {
2760
2903
  * @deprecated this prop no longer used to identify scatter mode
2761
2904
  */
2762
2905
  lineMode?: 'default' | 'scatter';
2906
+ /**
2907
+ * To enable callout for individual line or complete stack.
2908
+ * @default false
2909
+ * @type \{boolean \}
2910
+ */
2911
+ isCalloutForStack?: boolean;
2763
2912
  }
2764
2913
 
2765
2914
  /**