@fluentui/react-charting 5.23.41 → 5.23.43

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 (114) hide show
  1. package/CHANGELOG.json +69 -1
  2. package/CHANGELOG.md +25 -2
  3. package/bundle-size/DeclarativeChart.fixture.js +7 -0
  4. package/dist/react-charting.d.ts +5 -0
  5. package/dist/react-charting.js +1 -1
  6. package/dist/react-charting.min.js +1 -1
  7. package/etc/react-charting.api.md +1 -0
  8. package/lib/Styling.js +3 -3
  9. package/lib/Styling.js.map +1 -1
  10. package/lib/Utilities.js +1 -19
  11. package/lib/Utilities.js.map +1 -1
  12. package/lib/components/AreaChart/AreaChart.base.d.ts +3 -3
  13. package/lib/components/AreaChart/AreaChart.base.js +53 -30
  14. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  15. package/lib/components/AreaChart/AreaChart.types.d.ts +5 -0
  16. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  17. package/lib/components/DeclarativeChart/DeclarativeChart.js +66 -49
  18. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  19. package/lib/components/DeclarativeChart/PlotlySchema.d.ts +1516 -0
  20. package/lib/components/DeclarativeChart/PlotlySchema.js +4 -0
  21. package/lib/components/DeclarativeChart/PlotlySchema.js.map +1 -0
  22. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +16 -13
  23. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +232 -118
  24. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  25. package/lib/components/DonutChart/DonutChart.base.js +3 -1
  26. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  27. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  28. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  29. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +5 -4
  30. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  31. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  32. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  33. package/lib/components/StackedBarChart/StackedBarChart.base.js +3 -1
  34. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  35. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +10 -1
  36. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  37. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
  38. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  39. package/lib/utilities/SVGTooltipText.js +1 -1
  40. package/lib/utilities/SVGTooltipText.js.map +1 -1
  41. package/lib/utilities/utilities.js +2 -9
  42. package/lib/utilities/utilities.js.map +1 -1
  43. package/lib-amd/Styling.js +3 -3
  44. package/lib-amd/Styling.js.map +1 -1
  45. package/lib-amd/Utilities.js +0 -9
  46. package/lib-amd/Utilities.js.map +1 -1
  47. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -3
  48. package/lib-amd/components/AreaChart/AreaChart.base.js +53 -30
  49. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  50. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +5 -0
  51. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -1
  52. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +64 -47
  53. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  54. package/lib-amd/components/DeclarativeChart/PlotlySchema.d.ts +1516 -0
  55. package/lib-amd/components/DeclarativeChart/PlotlySchema.js +7 -0
  56. package/lib-amd/components/DeclarativeChart/PlotlySchema.js.map +1 -0
  57. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +16 -13
  58. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +233 -119
  59. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  60. package/lib-amd/components/DonutChart/DonutChart.base.js +3 -1
  61. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  62. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  63. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  64. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +5 -4
  65. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  66. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  67. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  68. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +3 -1
  69. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  70. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +10 -1
  71. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  72. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
  73. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  74. package/lib-amd/utilities/SVGTooltipText.js +1 -1
  75. package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
  76. package/lib-amd/utilities/utilities.js +2 -9
  77. package/lib-amd/utilities/utilities.js.map +1 -1
  78. package/lib-commonjs/Styling.js +3 -3
  79. package/lib-commonjs/Styling.js.map +1 -1
  80. package/lib-commonjs/Utilities.js +0 -9
  81. package/lib-commonjs/Utilities.js.map +1 -1
  82. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -3
  83. package/lib-commonjs/components/AreaChart/AreaChart.base.js +53 -30
  84. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  85. package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +5 -0
  86. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  87. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +65 -48
  88. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  89. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.d.ts +1516 -0
  90. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js +5 -0
  91. package/lib-commonjs/components/DeclarativeChart/PlotlySchema.js.map +1 -0
  92. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.d.ts +16 -13
  93. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +233 -118
  94. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  95. package/lib-commonjs/components/DonutChart/DonutChart.base.js +3 -1
  96. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  97. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  98. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  99. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +5 -4
  100. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  101. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  102. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  103. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +3 -1
  104. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  105. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +10 -1
  106. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  107. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
  108. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  109. package/lib-commonjs/utilities/SVGTooltipText.js +1 -1
  110. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  111. package/lib-commonjs/utilities/utilities.js +2 -9
  112. package/lib-commonjs/utilities/utilities.js.map +1 -1
  113. package/package.json +1 -1
  114. package/src/components/AreaChart/AreaChart.types.ts +6 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,75 @@
2
2
  "name": "@fluentui/react-charting",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 17 Jan 2025 07:20:26 GMT",
5
+ "date": "Tue, 21 Jan 2025 07:13:31 GMT",
6
+ "tag": "@fluentui/react-charting_v5.23.43",
7
+ "version": "5.23.43",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "110246001+krkshitij@users.noreply.github.com",
12
+ "package": "@fluentui/react-charting",
13
+ "commit": "08575f8e7d2362e9b986bccee516546f88fe562a",
14
+ "comment": "fix: resolve overlapping bars issue in histogram"
15
+ },
16
+ {
17
+ "author": "120183316+srmukher@users.noreply.github.com",
18
+ "package": "@fluentui/react-charting",
19
+ "commit": "b929a867df391be107630afe2de281c5d06594e7",
20
+ "comment": "Adding fallback and fixes for test app crashes for 12 schema data "
21
+ },
22
+ {
23
+ "author": "98592573+AtishayMsft@users.noreply.github.com",
24
+ "package": "@fluentui/react-charting",
25
+ "commit": "b929a867df391be107630afe2de281c5d06594e7",
26
+ "comment": "Use strongly typed interfaces for plotly schema"
27
+ },
28
+ {
29
+ "author": "110246001+krkshitij@users.noreply.github.com",
30
+ "package": "@fluentui/react-charting",
31
+ "commit": "b929a867df391be107630afe2de281c5d06594e7",
32
+ "comment": "fix: resolve bugs in declarative chart"
33
+ },
34
+ {
35
+ "author": "74965306+Anush2303@users.noreply.github.com",
36
+ "package": "@fluentui/react-charting",
37
+ "commit": "b929a867df391be107630afe2de281c5d06594e7",
38
+ "comment": "StronglyType plotly schema bug fix"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Mon, 20 Jan 2025 07:21:43 GMT",
45
+ "tag": "@fluentui/react-charting_v5.23.42",
46
+ "version": "5.23.42",
47
+ "comments": {
48
+ "patch": [
49
+ {
50
+ "author": "120183316+srmukher@users.noreply.github.com",
51
+ "package": "@fluentui/react-charting",
52
+ "commit": "556fc8e7b9a921cedbb07c2f0670dfabcf8ec0ed",
53
+ "comment": "Support tozeroy mode for Area Charts"
54
+ },
55
+ {
56
+ "author": "74965306+Anush2303@users.noreply.github.com",
57
+ "package": "@fluentui/react-charting",
58
+ "commit": "dc365b11fcca7eb0077460510eb78d93d3315ecd",
59
+ "comment": "Declarative chart bug fixes"
60
+ }
61
+ ],
62
+ "none": [
63
+ {
64
+ "author": "vgenaev@gmail.com",
65
+ "package": "@fluentui/react-charting",
66
+ "commit": "fd420e1e0b66e04c8a423cff3eea6d21d9434d2d",
67
+ "comment": "chore: migrate from deprecation plugin to ts-eslint/no-deprecated rule"
68
+ }
69
+ ]
70
+ }
71
+ },
72
+ {
73
+ "date": "Fri, 17 Jan 2025 07:21:32 GMT",
6
74
  "tag": "@fluentui/react-charting_v5.23.41",
7
75
  "version": "5.23.41",
8
76
  "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 Fri, 17 Jan 2025 07:20:26 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 21 Jan 2025 07:13:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [5.23.43](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.43)
8
+
9
+ Tue, 21 Jan 2025 07:13:31 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.42..@fluentui/react-charting_v5.23.43)
11
+
12
+ ### Patches
13
+
14
+ - fix: resolve overlapping bars issue in histogram ([PR #33695](https://github.com/microsoft/fluentui/pull/33695) by 110246001+krkshitij@users.noreply.github.com)
15
+ - Adding fallback and fixes for test app crashes for 12 schema data ([PR #33621](https://github.com/microsoft/fluentui/pull/33621) by 120183316+srmukher@users.noreply.github.com)
16
+ - Use strongly typed interfaces for plotly schema ([PR #33621](https://github.com/microsoft/fluentui/pull/33621) by 98592573+AtishayMsft@users.noreply.github.com)
17
+ - fix: resolve bugs in declarative chart ([PR #33621](https://github.com/microsoft/fluentui/pull/33621) by 110246001+krkshitij@users.noreply.github.com)
18
+ - StronglyType plotly schema bug fix ([PR #33621](https://github.com/microsoft/fluentui/pull/33621) by 74965306+Anush2303@users.noreply.github.com)
19
+
20
+ ## [5.23.42](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.42)
21
+
22
+ Mon, 20 Jan 2025 07:21:43 GMT
23
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.41..@fluentui/react-charting_v5.23.42)
24
+
25
+ ### Patches
26
+
27
+ - Support tozeroy mode for Area Charts ([PR #33581](https://github.com/microsoft/fluentui/pull/33581) by 120183316+srmukher@users.noreply.github.com)
28
+ - Declarative chart bug fixes ([PR #33567](https://github.com/microsoft/fluentui/pull/33567) by 74965306+Anush2303@users.noreply.github.com)
29
+
7
30
  ## [5.23.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.23.41)
8
31
 
9
- Fri, 17 Jan 2025 07:20:26 GMT
32
+ Fri, 17 Jan 2025 07:21:32 GMT
10
33
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.23.40..@fluentui/react-charting_v5.23.41)
11
34
 
12
35
  ### Patches
@@ -0,0 +1,7 @@
1
+ import { DeclarativeChart } from '@fluentui/react-charting';
2
+
3
+ console.log(DeclarativeChart);
4
+
5
+ export default {
6
+ name: 'DeclarativeChart',
7
+ };
@@ -293,6 +293,11 @@ export declare interface IAreaChartProps extends ICartesianChartProps {
293
293
  * The prop used to enable gradient fill color for the chart.
294
294
  */
295
295
  enableGradient?: boolean;
296
+ /**
297
+ * @default tonexty
298
+ * The prop used to define the Y axis mode (tonexty or tozeroy)
299
+ */
300
+ mode?: 'tozeroy' | 'tonexty';
296
301
  }
297
302
 
298
303
  /**