@fluentui/react-charting 5.23.55 → 5.23.57

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 (118) hide show
  1. package/CHANGELOG.json +49 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/react-charting.d.ts +69 -0
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +35 -0
  7. package/lib/ResponsiveContainer.d.ts +1 -0
  8. package/lib/ResponsiveContainer.js +2 -0
  9. package/lib/ResponsiveContainer.js.map +1 -0
  10. package/lib/components/CommonComponents/CartesianChart.base.js +1 -0
  11. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  12. package/lib/components/CommonComponents/CartesianChart.styles.js +2 -4
  13. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  14. package/lib/components/CommonComponents/CartesianChart.types.d.ts +4 -0
  15. package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
  16. package/lib/components/DeclarativeChart/DeclarativeChart.js +23 -12
  17. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  18. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +38 -35
  19. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  20. package/lib/components/ResponsiveContainer/ResponsiveContainer.d.ts +7 -0
  21. package/lib/components/ResponsiveContainer/ResponsiveContainer.js +83 -0
  22. package/lib/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  23. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.d.ts +52 -0
  24. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js +2 -0
  25. package/lib/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  26. package/lib/components/ResponsiveContainer/index.d.ts +3 -0
  27. package/lib/components/ResponsiveContainer/index.js +4 -0
  28. package/lib/components/ResponsiveContainer/index.js.map +1 -0
  29. package/lib/components/ResponsiveContainer/withResponsiveContainer.d.ts +7 -0
  30. package/lib/components/ResponsiveContainer/withResponsiveContainer.js +17 -0
  31. package/lib/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -0
  32. package/lib/components/SankeyChart/SankeyChart.base.js +3 -2
  33. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  34. package/lib/components/SankeyChart/SankeyChart.styles.js +2 -4
  35. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  36. package/lib/components/SankeyChart/SankeyChart.types.d.ts +1 -0
  37. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  38. package/lib/index.d.ts +2 -0
  39. package/lib/index.js +1 -0
  40. package/lib/index.js.map +1 -1
  41. package/lib/utilities/utilities.js +2 -2
  42. package/lib/utilities/utilities.js.map +1 -1
  43. package/lib-amd/ResponsiveContainer.d.ts +1 -0
  44. package/lib-amd/ResponsiveContainer.js +6 -0
  45. package/lib-amd/ResponsiveContainer.js.map +1 -0
  46. package/lib-amd/components/CommonComponents/CartesianChart.base.js +1 -0
  47. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  48. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +2 -4
  49. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  50. package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +4 -0
  51. package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
  52. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +23 -13
  53. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  54. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +38 -35
  55. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  56. package/lib-amd/components/ResponsiveContainer/ResponsiveContainer.d.ts +7 -0
  57. package/lib-amd/components/ResponsiveContainer/ResponsiveContainer.js +86 -0
  58. package/lib-amd/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  59. package/lib-amd/components/ResponsiveContainer/ResponsiveContainer.types.d.ts +52 -0
  60. package/lib-amd/components/ResponsiveContainer/ResponsiveContainer.types.js +5 -0
  61. package/lib-amd/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  62. package/lib-amd/components/ResponsiveContainer/index.d.ts +3 -0
  63. package/lib-amd/components/ResponsiveContainer/index.js +8 -0
  64. package/lib-amd/components/ResponsiveContainer/index.js.map +1 -0
  65. package/lib-amd/components/ResponsiveContainer/withResponsiveContainer.d.ts +7 -0
  66. package/lib-amd/components/ResponsiveContainer/withResponsiveContainer.js +19 -0
  67. package/lib-amd/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -0
  68. package/lib-amd/components/SankeyChart/SankeyChart.base.js +3 -2
  69. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  70. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +2 -4
  71. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  72. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +1 -0
  73. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
  74. package/lib-amd/index.d.ts +2 -0
  75. package/lib-amd/index.js +4 -2
  76. package/lib-amd/index.js.map +1 -1
  77. package/lib-amd/utilities/utilities.js +2 -2
  78. package/lib-amd/utilities/utilities.js.map +1 -1
  79. package/lib-commonjs/ResponsiveContainer.d.ts +1 -0
  80. package/lib-commonjs/ResponsiveContainer.js +5 -0
  81. package/lib-commonjs/ResponsiveContainer.js.map +1 -0
  82. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +1 -0
  83. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  84. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +2 -4
  85. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  86. package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +4 -0
  87. package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
  88. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +23 -12
  89. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  90. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +38 -35
  91. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  92. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.d.ts +7 -0
  93. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js +87 -0
  94. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.js.map +1 -0
  95. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.d.ts +52 -0
  96. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js +3 -0
  97. package/lib-commonjs/components/ResponsiveContainer/ResponsiveContainer.types.js.map +1 -0
  98. package/lib-commonjs/components/ResponsiveContainer/index.d.ts +3 -0
  99. package/lib-commonjs/components/ResponsiveContainer/index.js +7 -0
  100. package/lib-commonjs/components/ResponsiveContainer/index.js.map +1 -0
  101. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.d.ts +7 -0
  102. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js +21 -0
  103. package/lib-commonjs/components/ResponsiveContainer/withResponsiveContainer.js.map +1 -0
  104. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +3 -2
  105. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  106. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +2 -4
  107. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  108. package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +1 -0
  109. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  110. package/lib-commonjs/index.d.ts +2 -0
  111. package/lib-commonjs/index.js +4 -1
  112. package/lib-commonjs/index.js.map +1 -1
  113. package/lib-commonjs/utilities/utilities.js +2 -2
  114. package/lib-commonjs/utilities/utilities.js.map +1 -1
  115. package/package.json +5 -5
  116. package/src/components/CommonComponents/CartesianChart.types.ts +5 -0
  117. package/src/components/ResponsiveContainer/ResponsiveContainer.types.ts +59 -0
  118. package/src/components/SankeyChart/SankeyChart.types.ts +1 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,55 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 19 Feb 2025 07:20:12 GMT",
5
+ "date": "Tue, 25 Feb 2025 07:20:24 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.57",
7
+ "version": "5.23.57",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "110246001+krkshitij@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "1115b9326cc915802278305d826b345d318c16f2",
14
+ "comment": "feat: make charts responsive"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Fri, 21 Feb 2025 07:22:41 GMT",
21
+ "tag": "@fluentui/react-charting_v5.23.56",
22
+ "version": "5.23.56",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "beachball",
27
+ "package": "@fluentui/react-charting",
28
+ "comment": "Bump @fluentui/react-focus to v8.9.21",
29
+ "commit": "37cb222b6d035ea02d490aa26a2aaf7dfd94c761"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui/react-charting",
34
+ "comment": "Bump @fluentui/theme-samples to v8.7.200",
35
+ "commit": "37cb222b6d035ea02d490aa26a2aaf7dfd94c761"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui/react-charting",
40
+ "comment": "Bump @fluentui/set-version to v8.2.24",
41
+ "commit": "37cb222b6d035ea02d490aa26a2aaf7dfd94c761"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui/react-charting",
46
+ "comment": "Bump @fluentui/react to v8.122.11",
47
+ "commit": "37cb222b6d035ea02d490aa26a2aaf7dfd94c761"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Wed, 19 Feb 2025 07:21:16 GMT",
6
54
  "tag": "@fluentui/react-charting_v5.23.55",
7
55
  "version": "5.23.55",
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 Wed, 19 Feb 2025 07:20:12 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 25 Feb 2025 07:20:24 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.57](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.57)
8
+
9
+ Tue, 25 Feb 2025 07:20:24 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.56..@fluentui/react-charting_v5.23.57)
11
+
12
+ ### Patches
13
+
14
+ - feat: make charts responsive ([PR #33723](https://github.com/microsoft/fluentui/pull/33723) by 110246001+krkshitij@users.noreply.github.com)
15
+
16
+ ## [5.23.56](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.56)
17
+
18
+ Fri, 21 Feb 2025 07:22:41 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.55..@fluentui/react-charting_v5.23.56)
20
+
21
+ ### Patches
22
+
23
+ - Bump @fluentui/react-focus to v8.9.21 ([PR #33879](https://github.com/microsoft/fluentui/pull/33879) by beachball)
24
+ - Bump @fluentui/theme-samples to v8.7.200 ([PR #33879](https://github.com/microsoft/fluentui/pull/33879) by beachball)
25
+ - Bump @fluentui/set-version to v8.2.24 ([PR #33879](https://github.com/microsoft/fluentui/pull/33879) by beachball)
26
+ - Bump @fluentui/react to v8.122.11 ([PR #33879](https://github.com/microsoft/fluentui/pull/33879) by beachball)
27
+
7
28
  ## [5.23.55](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.55)
8
29
 
9
- Wed, 19 Feb 2025 07:20:12 GMT
30
+ Wed, 19 Feb 2025 07:21:16 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.54..@fluentui/react-charting_v5.23.55)
11
32
 
12
33
  ### Patches
@@ -624,6 +624,10 @@ export declare interface ICartesianChartStyleProps {
624
624
  * boolean flag which determines if shape is drawn in callout
625
625
  */
626
626
  toDrawShape?: boolean;
627
+ /**
628
+ * Prop to disable shrinking of the chart beyond a certain limit and enable scrolling when the chart overflows
629
+ */
630
+ enableReflow?: boolean;
627
631
  }
628
632
 
629
633
  /**
@@ -3111,6 +3115,58 @@ export declare interface IRefArrayData {
3111
3115
  refElement?: SVGGElement;
3112
3116
  }
3113
3117
 
3118
+ /**
3119
+ * Responsive Child props
3120
+ * {@docCategory ResponsiveContainer}
3121
+ */
3122
+ export declare interface IResponsiveChildProps {
3123
+ width?: number;
3124
+ height?: number;
3125
+ shouldResize?: number;
3126
+ styles?: IStyleFunctionOrObject_2<{}, {
3127
+ root: IStyle_2;
3128
+ }>;
3129
+ }
3130
+
3131
+ /**
3132
+ * Responsive Container props
3133
+ * {@docCategory ResponsiveContainer}
3134
+ */
3135
+ export declare interface IResponsiveContainerProps {
3136
+ /**
3137
+ * Aspect ratio (width / height) of the container. If specified, the height will be calculated by width / aspect.
3138
+ */
3139
+ aspect?: number;
3140
+ /**
3141
+ * Width of the container
3142
+ */
3143
+ width?: number | string;
3144
+ /**
3145
+ * Height of the container
3146
+ */
3147
+ height?: number | string;
3148
+ /**
3149
+ * Minimum width of the container
3150
+ */
3151
+ minWidth?: number | string;
3152
+ /**
3153
+ * Minimum height of the container
3154
+ */
3155
+ minHeight?: number | string;
3156
+ /**
3157
+ * Maximum height of the container
3158
+ */
3159
+ maxHeight?: number;
3160
+ /**
3161
+ * Callback providing the updated chart width and height values when the container is resized
3162
+ */
3163
+ onResize?: (width: number, height: number) => void;
3164
+ /**
3165
+ * Child component to be rendered within the container
3166
+ */
3167
+ children: React_2.ReactElement<IResponsiveChildProps>;
3168
+ }
3169
+
3114
3170
  /**
3115
3171
  * Set of strings which are used when rendering accessibility information within the chart.
3116
3172
  */
@@ -3238,6 +3294,7 @@ export declare interface ISankeyChartStyleProps {
3238
3294
  width: number;
3239
3295
  height: number;
3240
3296
  pathColor?: string;
3297
+ enableReflow?: boolean;
3241
3298
  }
3242
3299
 
3243
3300
  /**
@@ -4379,6 +4436,12 @@ declare enum Points {
4379
4436
  octagon = 7
4380
4437
  }
4381
4438
 
4439
+ /**
4440
+ * Responsive Container component
4441
+ * {@docCategory ResponsiveContainer}
4442
+ */
4443
+ export declare const ResponsiveContainer: React_2.FC<IResponsiveContainerProps>;
4444
+
4382
4445
  /**
4383
4446
  * Sankeychart component
4384
4447
  * {@docCategory SankeyChart}
@@ -4448,6 +4511,12 @@ export declare const VerticalBarChart: React_2.FunctionComponent<IVerticalBarCha
4448
4511
  */
4449
4512
  export declare const VerticalStackedBarChart: React_2.FunctionComponent<IVerticalStackedBarChartProps>;
4450
4513
 
4514
+ /**
4515
+ * An HOC to update wrapped component on container resize.
4516
+ * {@docCategory ResponsiveContainer}
4517
+ */
4518
+ export declare function withResponsiveContainer<TProps extends Omit<IResponsiveContainerProps, 'children'>>(WrappedComponent: React_2.ComponentType<TProps>): React_2.FC<TProps>;
4519
+
4451
4520
  declare enum XAxisTypes {
4452
4521
  NumericAxis = 0,
4453
4522
  DateAxis = 1,