@fluentui/react-charting 5.20.2 → 5.21.0

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 +54 -1
  2. package/CHANGELOG.md +20 -2
  3. package/dist/react-charting.d.ts +13 -6
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +1 -0
  7. package/lib/components/AreaChart/AreaChart.base.js +1 -2
  8. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  9. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +1 -0
  10. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +10 -6
  11. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  12. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +3 -2
  13. package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  14. package/lib/components/SankeyChart/SankeyChart.base.d.ts +2 -0
  15. package/lib/components/SankeyChart/SankeyChart.base.js +21 -17
  16. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  17. package/lib/components/SankeyChart/SankeyChart.types.d.ts +4 -0
  18. package/lib/components/SankeyChart/SankeyChart.types.js.map +1 -1
  19. package/lib/components/VerticalBarChart/VerticalBarChart.base.d.ts +1 -0
  20. package/lib/components/VerticalBarChart/VerticalBarChart.base.js +23 -22
  21. package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  22. package/lib/components/VerticalBarChart/VerticalBarChart.types.d.ts +3 -2
  23. package/lib/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  24. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
  25. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +27 -49
  26. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  27. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +3 -2
  28. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  29. package/lib/utilities/index.d.ts +1 -0
  30. package/lib/utilities/index.js +1 -0
  31. package/lib/utilities/index.js.map +1 -1
  32. package/lib/utilities/utilities.d.ts +1 -1
  33. package/lib/utilities/utilities.js +10 -11
  34. package/lib/utilities/utilities.js.map +1 -1
  35. package/lib/utilities/vbc-utils.d.ts +2 -0
  36. package/lib/utilities/vbc-utils.js +31 -0
  37. package/lib/utilities/vbc-utils.js.map +1 -0
  38. package/lib/version.js +1 -1
  39. package/lib/version.js.map +1 -1
  40. package/lib-amd/components/AreaChart/AreaChart.base.js +1 -2
  41. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  42. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +1 -0
  43. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +10 -6
  44. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  45. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +3 -2
  46. package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  47. package/lib-amd/components/SankeyChart/SankeyChart.base.d.ts +2 -0
  48. package/lib-amd/components/SankeyChart/SankeyChart.base.js +21 -17
  49. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  50. package/lib-amd/components/SankeyChart/SankeyChart.types.d.ts +4 -0
  51. package/lib-amd/components/SankeyChart/SankeyChart.types.js.map +1 -1
  52. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.d.ts +1 -0
  53. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +22 -21
  54. package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  55. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.d.ts +3 -2
  56. package/lib-amd/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  57. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
  58. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +26 -48
  59. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  60. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +3 -2
  61. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  62. package/lib-amd/utilities/index.d.ts +1 -0
  63. package/lib-amd/utilities/index.js +2 -1
  64. package/lib-amd/utilities/index.js.map +1 -1
  65. package/lib-amd/utilities/utilities.d.ts +1 -1
  66. package/lib-amd/utilities/utilities.js +10 -11
  67. package/lib-amd/utilities/utilities.js.map +1 -1
  68. package/lib-amd/utilities/vbc-utils.d.ts +2 -0
  69. package/lib-amd/utilities/vbc-utils.js +38 -0
  70. package/lib-amd/utilities/vbc-utils.js.map +1 -0
  71. package/lib-amd/version.js +1 -1
  72. package/lib-amd/version.js.map +1 -1
  73. package/lib-commonjs/components/AreaChart/AreaChart.base.js +1 -2
  74. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  75. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.d.ts +1 -0
  76. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +10 -6
  77. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
  78. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.d.ts +3 -2
  79. package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.types.js.map +1 -1
  80. package/lib-commonjs/components/SankeyChart/SankeyChart.base.d.ts +2 -0
  81. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +21 -17
  82. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  83. package/lib-commonjs/components/SankeyChart/SankeyChart.types.d.ts +4 -0
  84. package/lib-commonjs/components/SankeyChart/SankeyChart.types.js.map +1 -1
  85. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.d.ts +1 -0
  86. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +22 -21
  87. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
  88. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.d.ts +3 -2
  89. package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.types.js.map +1 -1
  90. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.d.ts +1 -0
  91. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +26 -48
  92. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  93. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.d.ts +3 -2
  94. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.types.js.map +1 -1
  95. package/lib-commonjs/utilities/index.d.ts +1 -0
  96. package/lib-commonjs/utilities/index.js +1 -0
  97. package/lib-commonjs/utilities/index.js.map +1 -1
  98. package/lib-commonjs/utilities/utilities.d.ts +1 -1
  99. package/lib-commonjs/utilities/utilities.js +10 -11
  100. package/lib-commonjs/utilities/utilities.js.map +1 -1
  101. package/lib-commonjs/utilities/vbc-utils.d.ts +2 -0
  102. package/lib-commonjs/utilities/vbc-utils.js +36 -0
  103. package/lib-commonjs/utilities/vbc-utils.js.map +1 -0
  104. package/lib-commonjs/version.js +1 -1
  105. package/lib-commonjs/version.js.map +1 -1
  106. package/package.json +5 -5
  107. package/src/components/SankeyChart/SankeyChart.types.ts +5 -0
  108. package/src/components/VerticalBarChart/VerticalBarChart.types.ts +3 -2
  109. package/src/components/VerticalStackedBarChart/VerticalStackedBarChart.types.ts +3 -2
@@ -24,8 +24,8 @@ export interface IVerticalBarChartProps extends ICartesianChartProps {
24
24
  onRenderCalloutPerDataPoint?: IRenderFunction<IVerticalBarChartDataPoint>;
25
25
 
26
26
  /**
27
- * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px.
28
- * When set to `auto` (which is only applicable to string x-axis), the bar width is calculated from padding values.
27
+ * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
28
+ * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
29
29
  * @default 16
30
30
  */
31
31
  barWidth?: number | 'default' | 'auto';
@@ -88,6 +88,7 @@ export interface IVerticalBarChartProps extends ICartesianChartProps {
88
88
 
89
89
  /**
90
90
  * Maximum width of a bar, in pixels.
91
+ * @default 24
91
92
  */
92
93
  maxBarWidth?: number;
93
94
 
@@ -22,8 +22,8 @@ export interface IVerticalStackedBarChartProps extends ICartesianChartProps {
22
22
  data: IVerticalStackedChartProps[];
23
23
 
24
24
  /**
25
- * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px.
26
- * When set to `auto` (which is only applicable to string x-axis), the bar width is calculated from padding values.
25
+ * Width of each bar in the chart. When set to `undefined` or `'default'`, the bar width defaults to 16px,
26
+ * which may decrease to prevent overlap. When set to `'auto'`, the bar width is calculated from padding values.
27
27
  */
28
28
  barWidth?: number | 'default' | 'auto';
29
29
 
@@ -126,6 +126,7 @@ export interface IVerticalStackedBarChartProps extends ICartesianChartProps {
126
126
 
127
127
  /**
128
128
  * Maximum width of a bar, in pixels.
129
+ * @default 24
129
130
  */
130
131
  maxBarWidth?: number;
131
132