@mui/x-charts 7.0.0-beta.1 → 7.0.0-beta.3

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 (234) hide show
  1. package/BarChart/BarChart.d.ts +21 -5
  2. package/BarChart/BarChart.js +37 -13
  3. package/BarChart/BarElement.d.ts +20 -13
  4. package/BarChart/BarElement.js +1 -0
  5. package/BarChart/BarPlot.d.ts +3 -5
  6. package/BarChart/BarPlot.js +9 -10
  7. package/CHANGELOG.md +223 -1
  8. package/ChartContainer/ChartContainer.js +6 -4
  9. package/ChartsAxis/ChartsAxis.js +4 -4
  10. package/ChartsGrid/ChartsGrid.d.ts +30 -0
  11. package/ChartsGrid/ChartsGrid.js +128 -0
  12. package/ChartsGrid/chartsGridClasses.d.ts +13 -0
  13. package/ChartsGrid/chartsGridClasses.js +14 -0
  14. package/ChartsGrid/index.d.ts +2 -0
  15. package/ChartsGrid/index.js +27 -0
  16. package/ChartsGrid/package.json +6 -0
  17. package/ChartsLegend/ChartsLegend.d.ts +5 -54
  18. package/ChartsLegend/ChartsLegend.js +2 -307
  19. package/ChartsLegend/DefaultChartsLegend.d.ts +60 -0
  20. package/ChartsLegend/DefaultChartsLegend.js +294 -0
  21. package/ChartsLegend/index.d.ts +1 -0
  22. package/ChartsLegend/index.js +11 -0
  23. package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  24. package/ChartsReferenceLine/common.d.ts +2 -1
  25. package/ChartsSurface.js +6 -4
  26. package/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
  27. package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +1 -1
  28. package/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
  29. package/ChartsTooltip/utils.d.ts +1 -0
  30. package/ChartsTooltip/utils.js +7 -0
  31. package/ChartsXAxis/ChartsXAxis.js +15 -11
  32. package/ChartsYAxis/ChartsYAxis.js +3 -3
  33. package/Gauge/Gauge.d.ts +13 -0
  34. package/Gauge/Gauge.js +156 -0
  35. package/Gauge/GaugeContainer.d.ts +19 -0
  36. package/Gauge/GaugeContainer.js +216 -0
  37. package/Gauge/GaugeProvider.d.ts +117 -0
  38. package/Gauge/GaugeProvider.js +96 -0
  39. package/Gauge/GaugeReferenceArc.d.ts +2 -0
  40. package/Gauge/GaugeReferenceArc.js +44 -0
  41. package/Gauge/GaugeValueArc.d.ts +2 -0
  42. package/Gauge/GaugeValueArc.js +51 -0
  43. package/Gauge/GaugeValueText.d.ts +15 -0
  44. package/Gauge/GaugeValueText.js +77 -0
  45. package/Gauge/gaugeClasses.d.ts +14 -0
  46. package/Gauge/gaugeClasses.js +15 -0
  47. package/Gauge/index.d.ts +7 -0
  48. package/Gauge/index.js +87 -0
  49. package/Gauge/package.json +6 -0
  50. package/Gauge/utils.d.ts +19 -0
  51. package/Gauge/utils.js +75 -0
  52. package/LineChart/AnimatedArea.js +1 -1
  53. package/LineChart/AnimatedLine.js +1 -1
  54. package/LineChart/AreaElement.d.ts +2 -1
  55. package/LineChart/AreaElement.js +1 -1
  56. package/LineChart/LineChart.d.ts +24 -5
  57. package/LineChart/LineChart.js +41 -13
  58. package/LineChart/LineElement.d.ts +2 -1
  59. package/LineChart/LineElement.js +1 -1
  60. package/LineChart/LineHighlightElement.d.ts +3 -2
  61. package/LineChart/LineHighlightElement.js +2 -1
  62. package/LineChart/MarkElement.d.ts +3 -2
  63. package/LineChart/MarkElement.js +1 -0
  64. package/PieChart/PieArc.d.ts +7 -6
  65. package/PieChart/PieArc.js +10 -9
  66. package/PieChart/PieArcLabel.d.ts +3 -2
  67. package/PieChart/PieArcLabel.js +1 -0
  68. package/PieChart/PieArcLabelPlot.js +14 -14
  69. package/PieChart/PieArcPlot.js +1 -1
  70. package/PieChart/PieChart.d.ts +22 -0
  71. package/PieChart/PieChart.js +32 -8
  72. package/ResponsiveChartContainer/ResponsiveChartContainer.js +8 -70
  73. package/ResponsiveChartContainer/useChartContainerDimensions.d.ts +2 -0
  74. package/ResponsiveChartContainer/useChartContainerDimensions.js +76 -0
  75. package/ScatterChart/ScatterChart.d.ts +18 -0
  76. package/ScatterChart/ScatterChart.js +35 -8
  77. package/SparkLineChart/SparkLineChart.d.ts +1 -1
  78. package/SparkLineChart/SparkLineChart.js +5 -4
  79. package/context/CartesianContextProvider.js +8 -6
  80. package/esm/BarChart/BarChart.js +37 -13
  81. package/esm/BarChart/BarElement.js +1 -0
  82. package/esm/BarChart/BarPlot.js +8 -10
  83. package/esm/ChartContainer/ChartContainer.js +6 -4
  84. package/esm/ChartsAxis/ChartsAxis.js +4 -4
  85. package/esm/ChartsGrid/ChartsGrid.js +121 -0
  86. package/esm/ChartsGrid/chartsGridClasses.js +6 -0
  87. package/esm/ChartsGrid/index.js +2 -0
  88. package/esm/ChartsLegend/ChartsLegend.js +2 -307
  89. package/esm/ChartsLegend/DefaultChartsLegend.js +286 -0
  90. package/esm/ChartsLegend/index.js +1 -0
  91. package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  92. package/esm/ChartsSurface.js +6 -4
  93. package/esm/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
  94. package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -2
  95. package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
  96. package/esm/ChartsTooltip/utils.js +6 -0
  97. package/esm/ChartsXAxis/ChartsXAxis.js +14 -10
  98. package/esm/ChartsYAxis/ChartsYAxis.js +2 -2
  99. package/esm/Gauge/Gauge.js +149 -0
  100. package/esm/Gauge/GaugeContainer.js +211 -0
  101. package/esm/Gauge/GaugeProvider.js +85 -0
  102. package/esm/Gauge/GaugeReferenceArc.js +35 -0
  103. package/esm/Gauge/GaugeValueArc.js +42 -0
  104. package/esm/Gauge/GaugeValueText.js +69 -0
  105. package/esm/Gauge/gaugeClasses.js +7 -0
  106. package/esm/Gauge/index.js +7 -0
  107. package/esm/Gauge/utils.js +68 -0
  108. package/esm/LineChart/AnimatedArea.js +1 -1
  109. package/esm/LineChart/AnimatedLine.js +1 -1
  110. package/esm/LineChart/AreaElement.js +1 -1
  111. package/esm/LineChart/LineChart.js +41 -13
  112. package/esm/LineChart/LineElement.js +1 -1
  113. package/esm/LineChart/LineHighlightElement.js +2 -1
  114. package/esm/LineChart/MarkElement.js +1 -0
  115. package/esm/PieChart/PieArc.js +10 -9
  116. package/esm/PieChart/PieArcLabel.js +1 -0
  117. package/esm/PieChart/PieArcLabelPlot.js +14 -14
  118. package/esm/PieChart/PieArcPlot.js +1 -1
  119. package/esm/PieChart/PieChart.js +32 -8
  120. package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +8 -70
  121. package/esm/ResponsiveChartContainer/useChartContainerDimensions.js +66 -0
  122. package/esm/ScatterChart/ScatterChart.js +35 -8
  123. package/esm/SparkLineChart/SparkLineChart.js +5 -4
  124. package/esm/context/CartesianContextProvider.js +8 -6
  125. package/esm/hooks/useTicks.js +2 -3
  126. package/esm/index.js +2 -0
  127. package/hooks/useTicks.d.ts +1 -2
  128. package/hooks/useTicks.js +2 -3
  129. package/index.d.ts +2 -0
  130. package/index.js +23 -1
  131. package/internals/defaultizeColor.d.ts +16 -16
  132. package/internals/defaultizeValueFormatter.d.ts +4 -7
  133. package/internals/stackSeries.d.ts +4 -7
  134. package/legacy/BarChart/BarChart.js +37 -13
  135. package/legacy/BarChart/BarElement.js +1 -0
  136. package/legacy/BarChart/BarPlot.js +10 -10
  137. package/legacy/ChartContainer/ChartContainer.js +6 -4
  138. package/legacy/ChartsAxis/ChartsAxis.js +4 -4
  139. package/legacy/ChartsGrid/ChartsGrid.js +119 -0
  140. package/legacy/ChartsGrid/chartsGridClasses.js +6 -0
  141. package/legacy/ChartsGrid/index.js +2 -0
  142. package/legacy/ChartsLegend/ChartsLegend.js +2 -323
  143. package/legacy/ChartsLegend/DefaultChartsLegend.js +302 -0
  144. package/legacy/ChartsLegend/index.js +1 -0
  145. package/legacy/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  146. package/legacy/ChartsSurface.js +5 -3
  147. package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
  148. package/legacy/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -2
  149. package/legacy/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
  150. package/legacy/ChartsTooltip/utils.js +6 -0
  151. package/legacy/ChartsXAxis/ChartsXAxis.js +13 -9
  152. package/legacy/ChartsYAxis/ChartsYAxis.js +2 -2
  153. package/legacy/Gauge/Gauge.js +146 -0
  154. package/legacy/Gauge/GaugeContainer.js +215 -0
  155. package/legacy/Gauge/GaugeProvider.js +87 -0
  156. package/legacy/Gauge/GaugeReferenceArc.js +37 -0
  157. package/legacy/Gauge/GaugeValueArc.js +44 -0
  158. package/legacy/Gauge/GaugeValueText.js +66 -0
  159. package/legacy/Gauge/gaugeClasses.js +7 -0
  160. package/legacy/Gauge/index.js +7 -0
  161. package/legacy/Gauge/utils.js +84 -0
  162. package/legacy/LineChart/AnimatedArea.js +1 -1
  163. package/legacy/LineChart/AnimatedLine.js +1 -1
  164. package/legacy/LineChart/AreaElement.js +1 -1
  165. package/legacy/LineChart/LineChart.js +41 -13
  166. package/legacy/LineChart/LineElement.js +1 -1
  167. package/legacy/LineChart/LineHighlightElement.js +2 -1
  168. package/legacy/LineChart/MarkElement.js +1 -0
  169. package/legacy/PieChart/PieArc.js +11 -10
  170. package/legacy/PieChart/PieArcLabel.js +1 -0
  171. package/legacy/PieChart/PieArcLabelPlot.js +15 -15
  172. package/legacy/PieChart/PieArcPlot.js +1 -1
  173. package/legacy/PieChart/PieChart.js +32 -8
  174. package/legacy/ResponsiveChartContainer/ResponsiveChartContainer.js +13 -81
  175. package/legacy/ResponsiveChartContainer/useChartContainerDimensions.js +73 -0
  176. package/legacy/ScatterChart/ScatterChart.js +35 -8
  177. package/legacy/SparkLineChart/SparkLineChart.js +6 -5
  178. package/legacy/context/CartesianContextProvider.js +8 -6
  179. package/legacy/hooks/useTicks.js +2 -3
  180. package/legacy/index.js +3 -1
  181. package/models/axis.d.ts +7 -2
  182. package/models/seriesType/common.d.ts +2 -1
  183. package/models/seriesType/config.d.ts +7 -12
  184. package/models/seriesType/line.d.ts +2 -2
  185. package/models/seriesType/pie.d.ts +7 -3
  186. package/models/seriesType/scatter.d.ts +5 -2
  187. package/modern/BarChart/BarChart.js +37 -13
  188. package/modern/BarChart/BarElement.js +1 -0
  189. package/modern/BarChart/BarPlot.js +8 -10
  190. package/modern/ChartContainer/ChartContainer.js +6 -4
  191. package/modern/ChartsAxis/ChartsAxis.js +4 -4
  192. package/modern/ChartsGrid/ChartsGrid.js +121 -0
  193. package/modern/ChartsGrid/chartsGridClasses.js +6 -0
  194. package/modern/ChartsGrid/index.js +2 -0
  195. package/modern/ChartsLegend/ChartsLegend.js +2 -307
  196. package/modern/ChartsLegend/DefaultChartsLegend.js +286 -0
  197. package/modern/ChartsLegend/index.js +1 -0
  198. package/modern/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
  199. package/modern/ChartsSurface.js +6 -4
  200. package/modern/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
  201. package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +2 -2
  202. package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
  203. package/modern/ChartsTooltip/utils.js +6 -0
  204. package/modern/ChartsXAxis/ChartsXAxis.js +14 -10
  205. package/modern/ChartsYAxis/ChartsYAxis.js +2 -2
  206. package/modern/Gauge/Gauge.js +149 -0
  207. package/modern/Gauge/GaugeContainer.js +208 -0
  208. package/modern/Gauge/GaugeProvider.js +85 -0
  209. package/modern/Gauge/GaugeReferenceArc.js +35 -0
  210. package/modern/Gauge/GaugeValueArc.js +42 -0
  211. package/modern/Gauge/GaugeValueText.js +69 -0
  212. package/modern/Gauge/gaugeClasses.js +7 -0
  213. package/modern/Gauge/index.js +7 -0
  214. package/modern/Gauge/utils.js +68 -0
  215. package/modern/LineChart/AnimatedArea.js +1 -1
  216. package/modern/LineChart/AnimatedLine.js +1 -1
  217. package/modern/LineChart/AreaElement.js +1 -1
  218. package/modern/LineChart/LineChart.js +41 -13
  219. package/modern/LineChart/LineElement.js +1 -1
  220. package/modern/LineChart/LineHighlightElement.js +2 -1
  221. package/modern/LineChart/MarkElement.js +1 -0
  222. package/modern/PieChart/PieArc.js +10 -9
  223. package/modern/PieChart/PieArcLabel.js +1 -0
  224. package/modern/PieChart/PieArcLabelPlot.js +14 -14
  225. package/modern/PieChart/PieArcPlot.js +1 -1
  226. package/modern/PieChart/PieChart.js +32 -8
  227. package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +8 -70
  228. package/modern/ResponsiveChartContainer/useChartContainerDimensions.js +66 -0
  229. package/modern/ScatterChart/ScatterChart.js +35 -8
  230. package/modern/SparkLineChart/SparkLineChart.js +5 -4
  231. package/modern/context/CartesianContextProvider.js +8 -6
  232. package/modern/hooks/useTicks.js +2 -3
  233. package/modern/index.js +3 -1
  234. package/package.json +4 -4
@@ -8,20 +8,32 @@ import { ChartsTooltipProps, ChartsTooltipSlotProps, ChartsTooltipSlots } from '
8
8
  import { ChartsLegendProps, ChartsLegendSlots, ChartsLegendSlotProps } from '../ChartsLegend';
9
9
  import { ChartsAxisHighlightProps } from '../ChartsAxisHighlight';
10
10
  import { ChartsAxisSlots, ChartsAxisSlotProps } from '../models/axis';
11
+ import { ChartsGridProps } from '../ChartsGrid';
11
12
  import { ChartsOnAxisClickHandlerProps } from '../ChartsOnAxisClickHandler';
12
13
  export interface BarChartSlots extends ChartsAxisSlots, BarPlotSlots, ChartsLegendSlots, ChartsTooltipSlots {
13
14
  }
14
15
  export interface BarChartSlotProps extends ChartsAxisSlotProps, BarPlotSlotProps, ChartsLegendSlotProps, ChartsTooltipSlotProps {
15
16
  }
16
17
  export interface BarChartProps extends Omit<ResponsiveChartContainerProps, 'series'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<BarPlotProps, 'slots' | 'slotProps'>, ChartsOnAxisClickHandlerProps {
18
+ /**
19
+ * The series to display in the bar chart.
20
+ */
17
21
  series: MakeOptional<BarSeriesType, 'type'>[];
22
+ /**
23
+ * The configuration of the tooltip.
24
+ * @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
25
+ */
18
26
  tooltip?: ChartsTooltipProps;
19
27
  /**
20
- * Object `{ x, y }` that defines how the charts highlight the mouse position along the x- and y-axes.
21
- * The two properties accept the following values:
22
- * - 'none': display nothing.
23
- * - 'line': display a line at the current mouse position.
24
- * - 'band': display a band at the current mouse position. Only available with band scale.
28
+ * Option to display a cartesian grid in the background.
29
+ */
30
+ grid?: Pick<ChartsGridProps, 'vertical' | 'horizontal'>;
31
+ /**
32
+ * The configuration of axes highlight.
33
+ * Default is set to 'band' in the bar direction.
34
+ * Depends on `layout` prop.
35
+ * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
36
+ *
25
37
  */
26
38
  axisHighlight?: ChartsAxisHighlightProps;
27
39
  /**
@@ -38,6 +50,10 @@ export interface BarChartProps extends Omit<ResponsiveChartContainerProps, 'seri
38
50
  * @default {}
39
51
  */
40
52
  slotProps?: BarChartSlotProps;
53
+ /**
54
+ * The direction of the bar elements.
55
+ * @default 'vertical'
56
+ */
41
57
  layout?: BarSeriesType['layout'];
42
58
  }
43
59
  /**
@@ -17,6 +17,7 @@ var _ChartsTooltip = require("../ChartsTooltip");
17
17
  var _ChartsLegend = require("../ChartsLegend");
18
18
  var _ChartsAxisHighlight = require("../ChartsAxisHighlight");
19
19
  var _ChartsClipPath = require("../ChartsClipPath");
20
+ var _ChartsGrid = require("../ChartsGrid");
20
21
  var _ChartsOnAxisClickHandler = require("../ChartsOnAxisClickHandler");
21
22
  var _jsxRuntime = require("react/jsx-runtime");
22
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -47,6 +48,7 @@ const BarChart = exports.BarChart = /*#__PURE__*/React.forwardRef(function BarCh
47
48
  tooltip,
48
49
  axisHighlight,
49
50
  legend,
51
+ grid,
50
52
  topAxis,
51
53
  leftAxis,
52
54
  rightAxis,
@@ -94,6 +96,9 @@ const BarChart = exports.BarChart = /*#__PURE__*/React.forwardRef(function BarCh
94
96
  disableAxisListener: tooltip?.trigger !== 'axis' && axisHighlight?.x === 'none' && axisHighlight?.y === 'none' && !onAxisClick,
95
97
  children: [onAxisClick && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOnAxisClickHandler.ChartsOnAxisClickHandler, {
96
98
  onAxisClick: onAxisClick
99
+ }), grid && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, {
100
+ vertical: grid.vertical,
101
+ horizontal: grid.horizontal
97
102
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
98
103
  clipPath: `url(#${clipPathId})`,
99
104
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarPlot.BarPlot, {
@@ -126,11 +131,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
126
131
  // | To update them edit the TypeScript types and run "yarn proptypes" |
127
132
  // ----------------------------------------------------------------------
128
133
  /**
129
- * Object `{ x, y }` that defines how the charts highlight the mouse position along the x- and y-axes.
130
- * The two properties accept the following values:
131
- * - 'none': display nothing.
132
- * - 'line': display a line at the current mouse position.
133
- * - 'band': display a band at the current mouse position. Only available with band scale.
134
+ * The configuration of axes highlight.
135
+ * Default is set to 'band' in the bar direction.
136
+ * Depends on `layout` prop.
137
+ * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
134
138
  */
135
139
  axisHighlight: _propTypes.default.shape({
136
140
  x: _propTypes.default.oneOf(['band', 'line', 'none']),
@@ -142,7 +146,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
142
146
  * @default xAxisIds[0] The id of the first provided axis
143
147
  */
144
148
  bottomAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
145
- axisId: _propTypes.default.string,
149
+ axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
146
150
  classes: _propTypes.default.object,
147
151
  disableLine: _propTypes.default.bool,
148
152
  disableTicks: _propTypes.default.bool,
@@ -181,11 +185,22 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
181
185
  * @default false
182
186
  */
183
187
  disableAxisListener: _propTypes.default.bool,
188
+ /**
189
+ * Option to display a cartesian grid in the background.
190
+ */
191
+ grid: _propTypes.default.shape({
192
+ horizontal: _propTypes.default.bool,
193
+ vertical: _propTypes.default.bool
194
+ }),
184
195
  /**
185
196
  * The height of the chart in px. If not defined, it takes the height of the parent element.
186
197
  * @default undefined
187
198
  */
188
199
  height: _propTypes.default.number,
200
+ /**
201
+ * The direction of the bar elements.
202
+ * @default 'vertical'
203
+ */
189
204
  layout: _propTypes.default.oneOf(['horizontal', 'vertical']),
190
205
  /**
191
206
  * Indicate which axis to display the left of the charts.
@@ -193,7 +208,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
193
208
  * @default yAxisIds[0] The id of the first provided axis
194
209
  */
195
210
  leftAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
196
- axisId: _propTypes.default.string,
211
+ axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
197
212
  classes: _propTypes.default.object,
198
213
  disableLine: _propTypes.default.bool,
199
214
  disableTicks: _propTypes.default.bool,
@@ -259,7 +274,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
259
274
  * @default null
260
275
  */
261
276
  rightAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
262
- axisId: _propTypes.default.string,
277
+ axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
263
278
  classes: _propTypes.default.object,
264
279
  disableLine: _propTypes.default.bool,
265
280
  disableTicks: _propTypes.default.bool,
@@ -280,6 +295,9 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
280
295
  tickNumber: _propTypes.default.number,
281
296
  tickSize: _propTypes.default.number
282
297
  }), _propTypes.default.string]),
298
+ /**
299
+ * The series to display in the bar chart.
300
+ */
283
301
  series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
284
302
  /**
285
303
  * If `true`, animations are skipped.
@@ -298,6 +316,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
298
316
  slots: _propTypes.default.object,
299
317
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
300
318
  title: _propTypes.default.string,
319
+ /**
320
+ * The configuration of the tooltip.
321
+ * @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
322
+ */
301
323
  tooltip: _propTypes.default.shape({
302
324
  axisContent: _propTypes.default.elementType,
303
325
  classes: _propTypes.default.object,
@@ -312,7 +334,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
312
334
  * @default null
313
335
  */
314
336
  topAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
315
- axisId: _propTypes.default.string,
337
+ axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
316
338
  classes: _propTypes.default.object,
317
339
  disableLine: _propTypes.default.bool,
318
340
  disableTicks: _propTypes.default.bool,
@@ -349,7 +371,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
349
371
  * If not provided, a default axis config is used with id set to `DEFAULT_X_AXIS_KEY`.
350
372
  */
351
373
  xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
352
- axisId: _propTypes.default.string,
374
+ axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
353
375
  classes: _propTypes.default.object,
354
376
  data: _propTypes.default.array,
355
377
  dataKey: _propTypes.default.string,
@@ -357,13 +379,14 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
357
379
  disableTicks: _propTypes.default.bool,
358
380
  fill: _propTypes.default.string,
359
381
  hideTooltip: _propTypes.default.bool,
360
- id: _propTypes.default.string,
382
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
361
383
  label: _propTypes.default.string,
362
384
  labelFontSize: _propTypes.default.number,
363
385
  labelStyle: _propTypes.default.object,
364
386
  max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
365
387
  min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
366
388
  position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
389
+ reverse: _propTypes.default.bool,
367
390
  scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
368
391
  slotProps: _propTypes.default.object,
369
392
  slots: _propTypes.default.object,
@@ -383,7 +406,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
383
406
  * If not provided, a default axis config is used with id set to `DEFAULT_Y_AXIS_KEY`.
384
407
  */
385
408
  yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
386
- axisId: _propTypes.default.string,
409
+ axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
387
410
  classes: _propTypes.default.object,
388
411
  data: _propTypes.default.array,
389
412
  dataKey: _propTypes.default.string,
@@ -391,13 +414,14 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
391
414
  disableTicks: _propTypes.default.bool,
392
415
  fill: _propTypes.default.string,
393
416
  hideTooltip: _propTypes.default.bool,
394
- id: _propTypes.default.string,
417
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
395
418
  label: _propTypes.default.string,
396
419
  labelFontSize: _propTypes.default.number,
397
420
  labelStyle: _propTypes.default.object,
398
421
  max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
399
422
  min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
400
423
  position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
424
+ reverse: _propTypes.default.bool,
401
425
  scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
402
426
  slotProps: _propTypes.default.object,
403
427
  slots: _propTypes.default.object,
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
- import { SlotComponentProps } from '@mui/base/utils';
3
2
  import { HighlightScope } from '../context/HighlightProvider';
3
+ import { SeriesId } from '../models/seriesType/common';
4
4
  export interface BarElementClasses {
5
5
  /** Styles applied to the root element. */
6
6
  root: string;
7
7
  }
8
8
  export type BarElementClassKey = keyof BarElementClasses;
9
9
  export interface BarElementOwnerState {
10
- id: string;
10
+ id: SeriesId;
11
11
  dataIndex: number;
12
12
  color: string;
13
13
  isFaded: boolean;
@@ -1351,26 +1351,33 @@ export declare const BarElementPath: import("@emotion/styled").StyledComponent<P
1351
1351
  }, "string" | "end" | "accumulate" | "local" | "color" | "clip" | "style" | "unicode" | "fill" | "stroke" | "x" | "y" | "clipPath" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "mask" | "offset" | "overflow" | "textDecoration" | "azimuth" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "additive" | "path" | "ref" | "key" | "crossOrigin" | "href" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "suppressHydrationWarning" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accentHeight" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "scrollTop" | "scrollLeft"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
1352
1352
  ownerState: BarElementOwnerState;
1353
1353
  }, {}, {}>;
1354
- export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighlighted'> & React.ComponentPropsWithoutRef<'path'> & {
1354
+ interface BarProps extends Omit<React.ComponentPropsWithoutRef<'path'>, 'id' | 'color'> {
1355
+ highlightScope?: Partial<HighlightScope>;
1356
+ onClick?: (event: React.MouseEvent<SVGPathElement, MouseEvent>) => void;
1357
+ ownerState: BarElementOwnerState;
1358
+ }
1359
+ export interface BarElementSlots {
1360
+ /**
1361
+ * The component that renders the bar.
1362
+ * @default BarElementPath
1363
+ */
1364
+ bar?: React.JSXElementConstructor<BarProps>;
1365
+ }
1366
+ export interface BarElementSlotProps {
1367
+ bar?: Partial<BarProps>;
1368
+ }
1369
+ export type BarElementProps = Omit<BarElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.ComponentPropsWithoutRef<'path'>, 'id'> & {
1355
1370
  highlightScope?: Partial<HighlightScope>;
1356
1371
  /**
1357
1372
  * The props used for each component slot.
1358
1373
  * @default {}
1359
1374
  */
1360
- slotProps?: {
1361
- bar?: SlotComponentProps<'path', {}, BarElementOwnerState>;
1362
- };
1375
+ slotProps?: BarElementSlotProps;
1363
1376
  /**
1364
1377
  * Overridable component slots.
1365
1378
  * @default {}
1366
1379
  */
1367
- slots?: {
1368
- /**
1369
- * The component that renders the bar.
1370
- * @default BarElementPath
1371
- */
1372
- bar?: React.ElementType;
1373
- };
1380
+ slots?: BarElementSlots;
1374
1381
  };
1375
1382
  declare function BarElement(props: BarElementProps): React.JSX.Element;
1376
1383
  declare namespace BarElement {
@@ -116,6 +116,7 @@ process.env.NODE_ENV !== "production" ? BarElement.propTypes = {
116
116
  faded: _propTypes.default.oneOf(['global', 'none', 'series']),
117
117
  highlighted: _propTypes.default.oneOf(['item', 'none', 'series'])
118
118
  }),
119
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
119
120
  /**
120
121
  * The props used for each component slot.
121
122
  * @default {}
@@ -1,11 +1,9 @@
1
1
  import * as React from 'react';
2
- import { BarElementProps } from './BarElement';
2
+ import { BarElementProps, BarElementSlotProps, BarElementSlots } from './BarElement';
3
3
  import { BarItemIdentifier } from '../models';
4
- export interface BarPlotSlots {
5
- bar?: React.JSXElementConstructor<BarElementProps>;
4
+ export interface BarPlotSlots extends BarElementSlots {
6
5
  }
7
- export interface BarPlotSlotProps {
8
- bar?: Partial<BarElementProps>;
6
+ export interface BarPlotSlotProps extends BarElementSlotProps {
9
7
  }
10
8
  export interface BarPlotProps extends Pick<BarElementProps, 'slots' | 'slotProps'> {
11
9
  /**
@@ -17,6 +17,8 @@ var _axis = require("../models/axis");
17
17
  var _constants = require("../constants");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  const _excluded = ["skipAnimation", "onItemClick"];
20
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
22
  /**
21
23
  * Solution of the equations
22
24
  * W = barWidth * N + offset * (N-1)
@@ -26,8 +28,6 @@ const _excluded = ["skipAnimation", "onItemClick"];
26
28
  * @param gapRatio The ratio of the gap between bars over the bar width.
27
29
  * @returns The bar width and the offset between bars.
28
30
  */
29
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
30
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
31
31
  function getBandSize({
32
32
  bandWidth: W,
33
33
  numberOfGroups: N,
@@ -109,20 +109,19 @@ const useAggregatedData = () => {
109
109
  color
110
110
  } = series[seriesId];
111
111
  return stackedData.map((values, dataIndex) => {
112
- const bottom = Math.min(...values);
113
- const top = Math.max(...values);
112
+ const valueCoordinates = values.map(v => verticalLayout ? yScale(v) : xScale(v));
113
+ const minValueCoord = Math.min(...valueCoordinates);
114
+ const maxValueCoord = Math.max(...valueCoordinates);
114
115
  return {
115
- bottom,
116
- top,
117
116
  seriesId,
118
117
  dataIndex,
119
118
  layout: series[seriesId].layout,
120
- x: verticalLayout ? xScale(xAxis[xAxisKey].data?.[dataIndex]) + barOffset : xScale(bottom),
121
- y: verticalLayout ? yScale(top) : yScale(yAxis[yAxisKey].data?.[dataIndex]) + barOffset,
119
+ x: verticalLayout ? xScale(xAxis[xAxisKey].data?.[dataIndex]) + barOffset : minValueCoord,
120
+ y: verticalLayout ? minValueCoord : yScale(yAxis[yAxisKey].data?.[dataIndex]) + barOffset,
122
121
  xOrigin: xScale(0),
123
122
  yOrigin: yScale(0),
124
- height: verticalLayout ? Math.abs(yScale(bottom) - yScale(top)) : barWidth,
125
- width: verticalLayout ? barWidth : Math.abs(xScale(bottom) - xScale(top)),
123
+ height: verticalLayout ? maxValueCoord - minValueCoord : barWidth,
124
+ width: verticalLayout ? barWidth : maxValueCoord - minValueCoord,
126
125
  color,
127
126
  highlightScope: series[seriesId].highlightScope
128
127
  };
package/CHANGELOG.md CHANGED
@@ -3,6 +3,172 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## v7.0.0-beta.3
7
+
8
+ _Feb 16, 2024_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
13
+
14
+ <img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
15
+
16
+ - 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
17
+
18
+ <img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
19
+
20
+ - 🐞 Bugfixes
21
+
22
+ - 📚 Documentation improvements
23
+
24
+ ### Data Grid
25
+
26
+ #### Breaking changes
27
+
28
+ - The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
29
+
30
+ #### `@mui/x-data-grid@7.0.0-beta.3`
31
+
32
+ - [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
33
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
34
+ - [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
35
+
36
+ #### `@mui/x-data-grid-pro@7.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
39
+
40
+ #### `@mui/x-data-grid-premium@7.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
43
+
44
+ ### Charts / `@mui/x-charts@7.0.0-beta.3`
45
+
46
+ - [charts] Add Gauge component (#11996) @alexfauquette
47
+ - [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
48
+
49
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
50
+
51
+ - [TreeView] Remove instance existence checks (#12066) @flaviendelangle
52
+
53
+ ### Docs
54
+
55
+ - [docs] Complete charts API pages (#12038) @alexfauquette
56
+ - [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
57
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
58
+ - [docs] Fix Tree space to match the reset of the docs @oliviertassinari
59
+ - [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
60
+ - [docs] Fix redirection @oliviertassinari
61
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
62
+ - [docs] Removed `focused` prop from demo (#12092) @michelengelen
63
+
64
+ ### Core
65
+
66
+ - [core] Fix CodeSandbox CI template @oliviertassinari
67
+ - [core] Sort prop asc (#12033) @oliviertassinari
68
+ - [core] Bump monorepo (#12055) @alexfauquette
69
+
70
+ ## v7.0.0-beta.2
71
+
72
+ _Feb 9, 2024_
73
+
74
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
75
+
76
+ - 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
77
+ - 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
78
+ - 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
79
+ - 🐞 Bugfixes
80
+ - 📚 Documentation improvements
81
+
82
+ ### Data Grid
83
+
84
+ #### `@mui/x-data-grid@7.0.0-beta.2`
85
+
86
+ - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
87
+ - [DataGrid] Add slot typings (#11795) @romgrk
88
+ - [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
89
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
90
+ - [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
91
+ - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
92
+ - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
93
+
94
+ #### `@mui/x-data-grid-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
95
+
96
+ Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
97
+
98
+ #### `@mui/x-data-grid-premium@v7.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
99
+
100
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
101
+
102
+ - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
103
+ - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
104
+
105
+ ### Date Pickers
106
+
107
+ #### `@mui/x-date-pickers@7.0.0-beta.2`
108
+
109
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
110
+ - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
111
+
112
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
113
+
114
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
115
+
116
+ ### Charts / `@mui/x-charts@7.0.0-beta.2`
117
+
118
+ - [charts] Add `reverse` property to axes (#11899) @alexfauquette
119
+ - [charts] Allow series ids to be numbers (#11941) @alexfauquette
120
+ - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
121
+
122
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
123
+
124
+ - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
125
+ - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
126
+
127
+ ### License
128
+
129
+ #### Breaking changes
130
+
131
+ - If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
132
+
133
+ ```diff
134
+ -import { LicenseInfo } from '@mui/x-license-pro';
135
+ +import { LicenseInfo } from '@mui/x-license';
136
+ ```
137
+
138
+ `@mui/x-license@7.0.0-beta.2`
139
+
140
+ - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
141
+
142
+ ### Docs
143
+
144
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
145
+ - [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
146
+ - [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
147
+ - [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
148
+ - [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
149
+ - [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
150
+ - [docs] Avoid use of shorthand (#12000) @oliviertassinari
151
+ - [docs] Avoid the use of MUI Core @oliviertassinari
152
+ - [docs] Fix image size and dark mode @oliviertassinari
153
+ - [docs] Follow blank line convention with use client @oliviertassinari
154
+ - [docs] Stable layout between light and dark mode @oliviertassinari
155
+
156
+ ### Core
157
+
158
+ - [core] Add `docs:serve` script (#11935) @cherniavskii
159
+ - [core] Bump monorepo (#12001) @cherniavskii
160
+ - [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
161
+ - [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
162
+ - [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
163
+ - [core] Flatten grid packages folder (#11946) @cherniavskii
164
+ - [core] Improve license info deprecation message (#11974) @cherniavskii
165
+ - [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
166
+ - [core] Move next config to ESM (#11882) @Janpot
167
+ - [core] Add auto-message on closed issues (#11805) @michelengelen
168
+ - [core] Simplify bug reproduction (#11849) @oliviertassinari
169
+ - [core] Fix npm reference @oliviertassinari
170
+ - [core] Normalize issue template @oliviertassinari
171
+
6
172
  ## 7.0.0-beta.1
7
173
 
8
174
  _Feb 1, 2024_
@@ -2036,6 +2202,62 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2036
2202
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2037
2203
  - [license] Correctly throw errors (#10924) @oliviertassinari
2038
2204
 
2205
+ ## v6.19.4
2206
+
2207
+ _Feb 9, 2024_
2208
+
2209
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
2210
+
2211
+ - 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
2212
+ - 🐞 Bugfixes
2213
+ - 📚 Documentation improvements
2214
+
2215
+ ### Data Grid
2216
+
2217
+ #### `@mui/x-data-grid@v6.19.4`
2218
+
2219
+ - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2220
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
2221
+ - [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
2222
+ - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2223
+ - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2224
+
2225
+ #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2226
+
2227
+ Same changes as in `@mui/x-data-grid@v6.19.4`.
2228
+
2229
+ #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2230
+
2231
+ Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2232
+
2233
+ - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2234
+ - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2235
+
2236
+ ### Date Pickers
2237
+
2238
+ #### `@mui/x-date-pickers@v6.19.4`
2239
+
2240
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2241
+
2242
+ #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2243
+
2244
+ Same changes as in `@mui/x-date-pickers@v6.19.4`.
2245
+
2246
+ ### Charts / `@mui/x-charts@v6.19.4`
2247
+
2248
+ - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2249
+ - [charts] Allow series ids to be numbers (#11960) @alexfauquette
2250
+ - [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
2251
+
2252
+ ### Docs
2253
+
2254
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
2255
+ - [docs] Avoid the use of MUI Core @oliviertassinari
2256
+ - [docs] Fix API links (#11930) @alexfauquette
2257
+ - [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
2258
+ - [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
2259
+ - [code] Simplify bug reproduction (#11932) @alexfauquette
2260
+
2039
2261
  ## 6.19.3
2040
2262
 
2041
2263
  _Feb 1, 2024_
@@ -7123,7 +7345,7 @@ You can find more information about the new api, including how to set those tran
7123
7345
  - [core] Add link to the security page on the `README` (#6073) @oliviertassinari
7124
7346
  - [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
7125
7347
  - [core] Remove the Storybook (#6099) @flaviendelangle
7126
- - [core] Tag release as `next` in NPM (#6256) @m4theushw
7348
+ - [core] Tag release as `next` in npm (#6256) @m4theushw
7127
7349
  - [core] Update monorepo (#6180) @flaviendelangle
7128
7350
  - [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
7129
7351
  - [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari