@fluentui/react-charting 5.24.21 → 5.24.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 (109) hide show
  1. package/CHANGELOG.json +55 -1
  2. package/CHANGELOG.md +24 -2
  3. package/bundle-size/ScatterChart.fixture.js +7 -0
  4. package/dist/react-charting.d.ts +29 -4
  5. package/dist/react-charting.js +1 -1
  6. package/dist/react-charting.min.js +1 -1
  7. package/etc/react-charting.api.md +10 -4
  8. package/lib/components/AreaChart/AreaChart.base.js +3 -3
  9. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  10. package/lib/components/CommonComponents/CartesianChart.base.js +4 -4
  11. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  12. package/lib/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  13. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  14. package/lib/components/DeclarativeChart/DeclarativeChart.js +2 -1
  15. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  16. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  17. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +187 -11
  18. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  19. package/lib/components/HeatMapChart/HeatMapChart.base.js +1 -1
  20. package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  21. package/lib/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  22. package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  23. package/lib/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  24. package/lib/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  25. package/lib/components/LineChart/LineChart.base.d.ts +0 -9
  26. package/lib/components/LineChart/LineChart.base.js +82 -138
  27. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  28. package/lib/components/ScatterChart/ScatterChart.base.js +37 -62
  29. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  30. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
  31. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  32. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
  33. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  34. package/lib/index.d.ts +1 -1
  35. package/lib/index.js.map +1 -1
  36. package/lib/types/IDataPoint.d.ts +9 -0
  37. package/lib/types/IDataPoint.js.map +1 -1
  38. package/lib/utilities/utilities.d.ts +29 -28
  39. package/lib/utilities/utilities.js +127 -110
  40. package/lib/utilities/utilities.js.map +1 -1
  41. package/lib-amd/components/AreaChart/AreaChart.base.js +2 -2
  42. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  43. package/lib-amd/components/CommonComponents/CartesianChart.base.js +4 -4
  44. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  45. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  46. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  47. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +2 -1
  48. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  49. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  50. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
  51. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  52. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +1 -1
  53. package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  54. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  55. package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  56. package/lib-amd/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  57. package/lib-amd/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  58. package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -9
  59. package/lib-amd/components/LineChart/LineChart.base.js +80 -136
  60. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  61. package/lib-amd/components/ScatterChart/ScatterChart.base.js +35 -60
  62. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  63. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
  64. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  65. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  66. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  67. package/lib-amd/index.d.ts +1 -1
  68. package/lib-amd/index.js.map +1 -1
  69. package/lib-amd/types/IDataPoint.d.ts +9 -0
  70. package/lib-amd/types/IDataPoint.js.map +1 -1
  71. package/lib-amd/utilities/utilities.d.ts +29 -28
  72. package/lib-amd/utilities/utilities.js +133 -113
  73. package/lib-amd/utilities/utilities.js.map +1 -1
  74. package/lib-commonjs/components/AreaChart/AreaChart.base.js +2 -2
  75. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  76. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +4 -4
  77. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  78. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  79. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  80. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +2 -1
  81. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  82. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  83. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
  84. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  85. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +1 -1
  86. package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
  87. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js +1 -8
  88. package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
  89. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.d.ts +2 -2
  90. package/lib-commonjs/components/HeatMapChart/HeatMapChart.types.js.map +1 -1
  91. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +0 -9
  92. package/lib-commonjs/components/LineChart/LineChart.base.js +80 -136
  93. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  94. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +35 -60
  95. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  96. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
  97. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  98. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  99. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  100. package/lib-commonjs/index.d.ts +1 -1
  101. package/lib-commonjs/index.js.map +1 -1
  102. package/lib-commonjs/types/IDataPoint.d.ts +9 -0
  103. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  104. package/lib-commonjs/utilities/utilities.d.ts +29 -28
  105. package/lib-commonjs/utilities/utilities.js +134 -114
  106. package/lib-commonjs/utilities/utilities.js.map +1 -1
  107. package/package.json +4 -4
  108. package/src/components/CommonComponents/CartesianChart.types.ts +22 -2
  109. package/src/components/HeatMapChart/HeatMapChart.types.ts +2 -2
package/CHANGELOG.json CHANGED
@@ -2,7 +2,61 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 04 Aug 2025 07:20:17 GMT",
5
+ "date": "Fri, 08 Aug 2025 07:20:47 GMT",
6
+ "tag": "@fluentui/react-charting_v5.24.23",
7
+ "version": "5.24.23",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kumarkshitij@microsoft.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "17fd271ab5b27d509c4d446a7015be72a639f3cb",
14
+ "comment": "refactor: set max-width for heatmap callout without using subComponentStyles"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 06 Aug 2025 07:21:21 GMT",
21
+ "tag": "@fluentui/react-charting_v5.24.22",
22
+ "version": "5.24.22",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "kumarkshitij@microsoft.com",
27
+ "package": "@fluentui/react-charting",
28
+ "commit": "ed4b52619397ff7a0a30cfa83aba40274b03036f",
29
+ "comment": "feat: add support for log scale in scatter charts"
30
+ },
31
+ {
32
+ "author": "120183316+srmukher@users.noreply.github.com",
33
+ "package": "@fluentui/react-charting",
34
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62",
35
+ "comment": "fix(react-charting): Handling y object values for bar chart."
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui/react-charting",
40
+ "comment": "Bump @fluentui/chart-utilities to v1.1.27",
41
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui/react-charting",
46
+ "comment": "Bump @fluentui/theme-samples to v8.7.213",
47
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-charting",
52
+ "comment": "Bump @fluentui/react to v8.123.4",
53
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ "date": "Mon, 04 Aug 2025 07:21:26 GMT",
6
60
  "tag": "@fluentui/react-charting_v5.24.21",
7
61
  "version": "5.24.21",
8
62
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,34 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Mon, 04 Aug 2025 07:20:17 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 08 Aug 2025 07:20:47 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.24.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.23)
8
+
9
+ Fri, 08 Aug 2025 07:20:47 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.22..@fluentui/react-charting_v5.24.23)
11
+
12
+ ### Patches
13
+
14
+ - refactor: set max-width for heatmap callout without using subComponentStyles ([PR #34992](https://github.com/microsoft/fluentui/pull/34992) by kumarkshitij@microsoft.com)
15
+
16
+ ## [5.24.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.22)
17
+
18
+ Wed, 06 Aug 2025 07:21:21 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.21..@fluentui/react-charting_v5.24.22)
20
+
21
+ ### Patches
22
+
23
+ - feat: add support for log scale in scatter charts ([PR #34902](https://github.com/microsoft/fluentui/pull/34902) by kumarkshitij@microsoft.com)
24
+ - fix(react-charting): Handling y object values for bar chart. ([PR #34963](https://github.com/microsoft/fluentui/pull/34963) by 120183316+srmukher@users.noreply.github.com)
25
+ - Bump @fluentui/chart-utilities to v1.1.27 ([PR #34963](https://github.com/microsoft/fluentui/pull/34963) by beachball)
26
+ - Bump @fluentui/theme-samples to v8.7.213 ([PR #34963](https://github.com/microsoft/fluentui/pull/34963) by beachball)
27
+ - Bump @fluentui/react to v8.123.4 ([PR #34963](https://github.com/microsoft/fluentui/pull/34963) by beachball)
28
+
7
29
  ## [5.24.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.21)
8
30
 
9
- Mon, 04 Aug 2025 07:20:17 GMT
31
+ Mon, 04 Aug 2025 07:21:26 GMT
10
32
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.20..@fluentui/react-charting_v5.24.21)
11
33
 
12
34
  ### Patches
@@ -0,0 +1,7 @@
1
+ import { ScatterChart } from '@fluentui/react-charting';
2
+
3
+ console.log(ScatterChart);
4
+
5
+ export default {
6
+ name: 'ScatterChart',
7
+ };
@@ -47,6 +47,16 @@ export declare const AreaChart: React_2.FunctionComponent<IAreaChartProps>;
47
47
  */
48
48
  export declare type AxisCategoryOrder = 'default' | 'data' | string[] | 'category ascending' | 'category descending' | 'total ascending' | 'total descending' | 'min ascending' | 'min descending' | 'max ascending' | 'max descending' | 'sum ascending' | 'sum descending' | 'mean ascending' | 'mean descending' | 'median ascending' | 'median descending';
49
49
 
50
+ /**
51
+ * Available scale types for axes.
52
+ *
53
+ * - `'default'`: Uses an automatic scale (linear, band, or time) based on axis data type.
54
+ * - `'log'`: Uses a logarithmic scale. Only supported for numeric axes in LineChart and ScatterChart.
55
+ *
56
+ * {@docCategory CartesianChart}
57
+ */
58
+ export declare type AxisScaleType = 'default' | 'log';
59
+
50
60
  /**
51
61
  * Cartesian Chart component
52
62
  * {@docCategory CartesianChart}
@@ -689,6 +699,21 @@ export declare interface ICartesianChartProps {
689
699
  * @default 'default'
690
700
  */
691
701
  yAxisCategoryOrder?: AxisCategoryOrder;
702
+ /**
703
+ * Defines the scale type for the x-axis.
704
+ * @default 'default'
705
+ */
706
+ xScaleType?: AxisScaleType;
707
+ /**
708
+ * Defines the scale type for the primary y-axis.
709
+ * @default 'default'
710
+ */
711
+ yScaleType?: AxisScaleType;
712
+ /**
713
+ * Defines the scale type for the secondary y-axis.
714
+ * @default 'default'
715
+ */
716
+ secondaryYScaleType?: AxisScaleType;
692
717
  }
693
718
 
694
719
  /**
@@ -2222,8 +2247,8 @@ export declare interface IHeatMapChartStyles {
2222
2247
  root?: IStyle;
2223
2248
  text?: IStyle;
2224
2249
  subComponentStyles: {
2225
- cartesianStyles: IStyleFunctionOrObject<ICartesianChartStyleProps, ICartesianChartStyles>;
2226
- calloutStyles: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;
2250
+ cartesianStyles?: IStyleFunctionOrObject<ICartesianChartStyleProps, ICartesianChartStyles>;
2251
+ calloutStyles?: IStyleFunctionOrObject<ICalloutContentStyleProps, ICalloutContentStyles>;
2227
2252
  };
2228
2253
  }
2229
2254
 
@@ -3303,14 +3328,14 @@ export declare interface IModifiedCartesianChartProps extends ICartesianChartPro
3303
3328
  /**
3304
3329
  * Get the min and max values of the y-axis
3305
3330
  */
3306
- getMinMaxOfYAxis: (points: ILineChartPoints[] | IHorizontalBarChartWithAxisDataPoint[] | IVerticalBarChartDataPoint[] | IDataPoint[] | IScatterChartDataPoint[] | IGanttChartDataPoint[], yAxisType: YAxisType | undefined, useSecondaryYScale?: boolean) => {
3331
+ getMinMaxOfYAxis: (points: ILineChartPoints[] | IHorizontalBarChartWithAxisDataPoint[] | IVerticalBarChartDataPoint[] | IDataPoint[] | IScatterChartPoints[] | IGanttChartDataPoint[], yAxisType: YAxisType | undefined, useSecondaryYScale?: boolean) => {
3307
3332
  startValue: number;
3308
3333
  endValue: number;
3309
3334
  };
3310
3335
  /**
3311
3336
  * Create the y-axis
3312
3337
  */
3313
- createYAxis: (yAxisParams: IYAxisParams, isRtl: boolean, axisData: IAxisData, isIntegralDataset: boolean, useSecondaryYScale?: boolean, supportNegativeData?: boolean, roundedTicks?: boolean) => ScaleLinear<number, number, never>;
3338
+ createYAxis: (yAxisParams: IYAxisParams, isRtl: boolean, axisData: IAxisData, isIntegralDataset: boolean, useSecondaryYScale?: boolean, supportNegativeData?: boolean, roundedTicks?: boolean, scaleType?: AxisScaleType) => ScaleLinear<number, number, never>;
3314
3339
  /**
3315
3340
  * Get the domain and range values
3316
3341
  */