@fluentui/react-charting 5.24.20 → 5.24.22

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 (84) hide show
  1. package/CHANGELOG.json +61 -1
  2. package/CHANGELOG.md +25 -2
  3. package/bundle-size/ScatterChart.fixture.js +7 -0
  4. package/dist/react-charting.d.ts +27 -2
  5. package/dist/react-charting.js +1 -1
  6. package/dist/react-charting.min.js +1 -1
  7. package/etc/react-charting.api.md +8 -2
  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/PlotlySchemaAdapter.d.ts +10 -0
  15. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +187 -11
  16. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  17. package/lib/components/LineChart/LineChart.base.d.ts +0 -9
  18. package/lib/components/LineChart/LineChart.base.js +82 -138
  19. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  20. package/lib/components/ScatterChart/ScatterChart.base.js +37 -62
  21. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  22. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
  23. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  24. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
  25. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  26. package/lib/index.d.ts +1 -1
  27. package/lib/index.js.map +1 -1
  28. package/lib/types/IDataPoint.d.ts +9 -0
  29. package/lib/types/IDataPoint.js.map +1 -1
  30. package/lib/utilities/utilities.d.ts +29 -28
  31. package/lib/utilities/utilities.js +127 -110
  32. package/lib/utilities/utilities.js.map +1 -1
  33. package/lib-amd/components/AreaChart/AreaChart.base.js +2 -2
  34. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  35. package/lib-amd/components/CommonComponents/CartesianChart.base.js +4 -4
  36. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  37. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  38. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  39. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  40. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
  41. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  42. package/lib-amd/components/LineChart/LineChart.base.d.ts +0 -9
  43. package/lib-amd/components/LineChart/LineChart.base.js +80 -136
  44. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  45. package/lib-amd/components/ScatterChart/ScatterChart.base.js +35 -60
  46. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  47. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
  48. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  49. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  50. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  51. package/lib-amd/index.d.ts +1 -1
  52. package/lib-amd/index.js.map +1 -1
  53. package/lib-amd/types/IDataPoint.d.ts +9 -0
  54. package/lib-amd/types/IDataPoint.js.map +1 -1
  55. package/lib-amd/utilities/utilities.d.ts +29 -28
  56. package/lib-amd/utilities/utilities.js +133 -113
  57. package/lib-amd/utilities/utilities.js.map +1 -1
  58. package/lib-commonjs/components/AreaChart/AreaChart.base.js +2 -2
  59. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  60. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +4 -4
  61. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  62. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +18 -3
  63. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  64. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +10 -0
  65. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +188 -11
  66. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  67. package/lib-commonjs/components/LineChart/LineChart.base.d.ts +0 -9
  68. package/lib-commonjs/components/LineChart/LineChart.base.js +80 -136
  69. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  70. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +35 -60
  71. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  72. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +1 -1
  73. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  74. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  75. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  76. package/lib-commonjs/index.d.ts +1 -1
  77. package/lib-commonjs/index.js.map +1 -1
  78. package/lib-commonjs/types/IDataPoint.d.ts +9 -0
  79. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  80. package/lib-commonjs/utilities/utilities.d.ts +29 -28
  81. package/lib-commonjs/utilities/utilities.js +134 -114
  82. package/lib-commonjs/utilities/utilities.js.map +1 -1
  83. package/package.json +4 -4
  84. package/src/components/CommonComponents/CartesianChart.types.ts +22 -2
package/CHANGELOG.json CHANGED
@@ -2,7 +2,67 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 29 Jul 2025 07:20:34 GMT",
5
+ "date": "Wed, 06 Aug 2025 07:20:15 GMT",
6
+ "tag": "@fluentui/react-charting_v5.24.22",
7
+ "version": "5.24.22",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kumarkshitij@microsoft.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "ed4b52619397ff7a0a30cfa83aba40274b03036f",
14
+ "comment": "feat: add support for log scale in scatter charts"
15
+ },
16
+ {
17
+ "author": "120183316+srmukher@users.noreply.github.com",
18
+ "package": "@fluentui/react-charting",
19
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62",
20
+ "comment": "fix(react-charting): Handling y object values for bar chart."
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-charting",
25
+ "comment": "Bump @fluentui/chart-utilities to v1.1.27",
26
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-charting",
31
+ "comment": "Bump @fluentui/theme-samples to v8.7.213",
32
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-charting",
37
+ "comment": "Bump @fluentui/react to v8.123.4",
38
+ "commit": "e326819eee3a15603f963de9796860ef3c9f8f62"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Mon, 04 Aug 2025 07:21:26 GMT",
45
+ "tag": "@fluentui/react-charting_v5.24.21",
46
+ "version": "5.24.21",
47
+ "comments": {
48
+ "patch": [
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-charting",
52
+ "comment": "Bump @fluentui/theme-samples to v8.7.212",
53
+ "commit": "570f122fba34fa8effaaaa61bf6c9acd4caffc45"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-charting",
58
+ "comment": "Bump @fluentui/react to v8.123.3",
59
+ "commit": "570f122fba34fa8effaaaa61bf6c9acd4caffc45"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Tue, 29 Jul 2025 07:20:56 GMT",
6
66
  "tag": "@fluentui/react-charting_v5.24.20",
7
67
  "version": "5.24.20",
8
68
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,35 @@
1
1
  # Change Log - @fluentui/react-charting
2
2
 
3
- This log was last generated on Tue, 29 Jul 2025 07:20:34 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 06 Aug 2025 07:20:15 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.24.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.22)
8
+
9
+ Wed, 06 Aug 2025 07:20:15 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.21..@fluentui/react-charting_v5.24.22)
11
+
12
+ ### Patches
13
+
14
+ - feat: add support for log scale in scatter charts ([PR #34902](https://github.com/microsoft/fluentui/pull/34902) by kumarkshitij@microsoft.com)
15
+ - 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)
16
+ - Bump @fluentui/chart-utilities to v1.1.27 ([PR #34963](https://github.com/microsoft/fluentui/pull/34963) by beachball)
17
+ - Bump @fluentui/theme-samples to v8.7.213 ([PR #34963](https://github.com/microsoft/fluentui/pull/34963) by beachball)
18
+ - Bump @fluentui/react to v8.123.4 ([PR #34963](https://github.com/microsoft/fluentui/pull/34963) by beachball)
19
+
20
+ ## [5.24.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.21)
21
+
22
+ Mon, 04 Aug 2025 07:21:26 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.20..@fluentui/react-charting_v5.24.21)
24
+
25
+ ### Patches
26
+
27
+ - Bump @fluentui/theme-samples to v8.7.212 ([commit](https://github.com/microsoft/fluentui/commit/570f122fba34fa8effaaaa61bf6c9acd4caffc45) by beachball)
28
+ - Bump @fluentui/react to v8.123.3 ([commit](https://github.com/microsoft/fluentui/commit/570f122fba34fa8effaaaa61bf6c9acd4caffc45) by beachball)
29
+
7
30
  ## [5.24.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.24.20)
8
31
 
9
- Tue, 29 Jul 2025 07:20:34 GMT
32
+ Tue, 29 Jul 2025 07:20:56 GMT
10
33
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.24.19..@fluentui/react-charting_v5.24.20)
11
34
 
12
35
  ### 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
  /**
@@ -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
  */