@mui/x-charts 7.0.0-beta.2 → 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 (124) hide show
  1. package/BarChart/BarChart.d.ts +21 -5
  2. package/BarChart/BarChart.js +27 -5
  3. package/CHANGELOG.md +73 -9
  4. package/ChartsGrid/ChartsGrid.d.ts +30 -0
  5. package/ChartsGrid/ChartsGrid.js +128 -0
  6. package/ChartsGrid/chartsGridClasses.d.ts +13 -0
  7. package/ChartsGrid/chartsGridClasses.js +14 -0
  8. package/ChartsGrid/index.d.ts +2 -0
  9. package/ChartsGrid/index.js +27 -0
  10. package/ChartsGrid/package.json +6 -0
  11. package/ChartsSurface.js +6 -4
  12. package/ChartsXAxis/ChartsXAxis.js +2 -2
  13. package/ChartsYAxis/ChartsYAxis.js +2 -2
  14. package/Gauge/Gauge.d.ts +13 -0
  15. package/Gauge/Gauge.js +156 -0
  16. package/Gauge/GaugeContainer.d.ts +19 -0
  17. package/Gauge/GaugeContainer.js +216 -0
  18. package/Gauge/GaugeProvider.d.ts +117 -0
  19. package/Gauge/GaugeProvider.js +96 -0
  20. package/Gauge/GaugeReferenceArc.d.ts +2 -0
  21. package/Gauge/GaugeReferenceArc.js +44 -0
  22. package/Gauge/GaugeValueArc.d.ts +2 -0
  23. package/Gauge/GaugeValueArc.js +51 -0
  24. package/Gauge/GaugeValueText.d.ts +15 -0
  25. package/Gauge/GaugeValueText.js +77 -0
  26. package/Gauge/gaugeClasses.d.ts +14 -0
  27. package/Gauge/gaugeClasses.js +15 -0
  28. package/Gauge/index.d.ts +7 -0
  29. package/Gauge/index.js +87 -0
  30. package/Gauge/package.json +6 -0
  31. package/Gauge/utils.d.ts +19 -0
  32. package/Gauge/utils.js +75 -0
  33. package/LineChart/LineChart.d.ts +24 -5
  34. package/LineChart/LineChart.js +31 -5
  35. package/PieChart/PieArc.d.ts +4 -4
  36. package/PieChart/PieArc.js +9 -9
  37. package/PieChart/PieArcLabelPlot.js +13 -13
  38. package/PieChart/PieChart.d.ts +22 -0
  39. package/PieChart/PieChart.js +22 -0
  40. package/ResponsiveChartContainer/ResponsiveChartContainer.js +2 -66
  41. package/ResponsiveChartContainer/useChartContainerDimensions.d.ts +2 -0
  42. package/ResponsiveChartContainer/useChartContainerDimensions.js +76 -0
  43. package/ScatterChart/ScatterChart.d.ts +18 -0
  44. package/ScatterChart/ScatterChart.js +25 -0
  45. package/esm/BarChart/BarChart.js +27 -5
  46. package/esm/ChartsGrid/ChartsGrid.js +121 -0
  47. package/esm/ChartsGrid/chartsGridClasses.js +6 -0
  48. package/esm/ChartsGrid/index.js +2 -0
  49. package/esm/ChartsSurface.js +6 -4
  50. package/esm/ChartsXAxis/ChartsXAxis.js +1 -1
  51. package/esm/ChartsYAxis/ChartsYAxis.js +1 -1
  52. package/esm/Gauge/Gauge.js +149 -0
  53. package/esm/Gauge/GaugeContainer.js +211 -0
  54. package/esm/Gauge/GaugeProvider.js +85 -0
  55. package/esm/Gauge/GaugeReferenceArc.js +35 -0
  56. package/esm/Gauge/GaugeValueArc.js +42 -0
  57. package/esm/Gauge/GaugeValueText.js +69 -0
  58. package/esm/Gauge/gaugeClasses.js +7 -0
  59. package/esm/Gauge/index.js +7 -0
  60. package/esm/Gauge/utils.js +68 -0
  61. package/esm/LineChart/LineChart.js +31 -5
  62. package/esm/PieChart/PieArc.js +9 -9
  63. package/esm/PieChart/PieArcLabelPlot.js +13 -13
  64. package/esm/PieChart/PieChart.js +22 -0
  65. package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +2 -66
  66. package/esm/ResponsiveChartContainer/useChartContainerDimensions.js +66 -0
  67. package/esm/ScatterChart/ScatterChart.js +25 -0
  68. package/esm/hooks/useTicks.js +2 -3
  69. package/esm/index.js +2 -0
  70. package/hooks/useTicks.d.ts +1 -2
  71. package/hooks/useTicks.js +2 -3
  72. package/index.d.ts +2 -0
  73. package/index.js +23 -1
  74. package/legacy/BarChart/BarChart.js +27 -5
  75. package/legacy/ChartsGrid/ChartsGrid.js +119 -0
  76. package/legacy/ChartsGrid/chartsGridClasses.js +6 -0
  77. package/legacy/ChartsGrid/index.js +2 -0
  78. package/legacy/ChartsSurface.js +5 -3
  79. package/legacy/ChartsXAxis/ChartsXAxis.js +1 -1
  80. package/legacy/ChartsYAxis/ChartsYAxis.js +1 -1
  81. package/legacy/Gauge/Gauge.js +146 -0
  82. package/legacy/Gauge/GaugeContainer.js +215 -0
  83. package/legacy/Gauge/GaugeProvider.js +87 -0
  84. package/legacy/Gauge/GaugeReferenceArc.js +37 -0
  85. package/legacy/Gauge/GaugeValueArc.js +44 -0
  86. package/legacy/Gauge/GaugeValueText.js +66 -0
  87. package/legacy/Gauge/gaugeClasses.js +7 -0
  88. package/legacy/Gauge/index.js +7 -0
  89. package/legacy/Gauge/utils.js +84 -0
  90. package/legacy/LineChart/LineChart.js +31 -5
  91. package/legacy/PieChart/PieArc.js +10 -10
  92. package/legacy/PieChart/PieArcLabelPlot.js +14 -14
  93. package/legacy/PieChart/PieChart.js +22 -0
  94. package/legacy/ResponsiveChartContainer/ResponsiveChartContainer.js +7 -77
  95. package/legacy/ResponsiveChartContainer/useChartContainerDimensions.js +73 -0
  96. package/legacy/ScatterChart/ScatterChart.js +25 -0
  97. package/legacy/hooks/useTicks.js +2 -3
  98. package/legacy/index.js +3 -1
  99. package/modern/BarChart/BarChart.js +27 -5
  100. package/modern/ChartsGrid/ChartsGrid.js +121 -0
  101. package/modern/ChartsGrid/chartsGridClasses.js +6 -0
  102. package/modern/ChartsGrid/index.js +2 -0
  103. package/modern/ChartsSurface.js +6 -4
  104. package/modern/ChartsXAxis/ChartsXAxis.js +1 -1
  105. package/modern/ChartsYAxis/ChartsYAxis.js +1 -1
  106. package/modern/Gauge/Gauge.js +149 -0
  107. package/modern/Gauge/GaugeContainer.js +208 -0
  108. package/modern/Gauge/GaugeProvider.js +85 -0
  109. package/modern/Gauge/GaugeReferenceArc.js +35 -0
  110. package/modern/Gauge/GaugeValueArc.js +42 -0
  111. package/modern/Gauge/GaugeValueText.js +69 -0
  112. package/modern/Gauge/gaugeClasses.js +7 -0
  113. package/modern/Gauge/index.js +7 -0
  114. package/modern/Gauge/utils.js +68 -0
  115. package/modern/LineChart/LineChart.js +31 -5
  116. package/modern/PieChart/PieArc.js +9 -9
  117. package/modern/PieChart/PieArcLabelPlot.js +13 -13
  118. package/modern/PieChart/PieChart.js +22 -0
  119. package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +2 -66
  120. package/modern/ResponsiveChartContainer/useChartContainerDimensions.js +66 -0
  121. package/modern/ScatterChart/ScatterChart.js +25 -0
  122. package/modern/hooks/useTicks.js +2 -3
  123. package/modern/index.js +3 -1
  124. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["slots", "slotProps", "innerRadius", "outerRadius", "arcLabelRadius", "cornerRadius", "paddingAngle", "id", "highlightScope", "highlighted", "faded", "data", "arcLabel", "arcLabelMinAngle", "skipAnimation"],
3
+ const _excluded = ["arcLabel", "arcLabelMinAngle", "arcLabelRadius", "cornerRadius", "data", "faded", "highlighted", "highlightScope", "id", "innerRadius", "outerRadius", "paddingAngle", "skipAnimation", "slotProps", "slots"],
4
4
  _excluded2 = ["startAngle", "endAngle", "paddingAngle", "innerRadius", "outerRadius", "arcLabelRadius", "cornerRadius"];
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
@@ -25,23 +25,23 @@ function getItemLabel(arcLabel, arcLabelMinAngle, item) {
25
25
  }
26
26
  function PieArcLabelPlot(props) {
27
27
  const {
28
- slots,
29
- slotProps,
30
- innerRadius,
31
- outerRadius,
28
+ arcLabel,
29
+ arcLabelMinAngle = 0,
32
30
  arcLabelRadius,
33
31
  cornerRadius = 0,
34
- paddingAngle = 0,
35
- id,
36
- highlightScope,
37
- highlighted,
32
+ data,
38
33
  faded = {
39
34
  additionalRadius: -5
40
35
  },
41
- data,
42
- arcLabel,
43
- arcLabelMinAngle = 0,
44
- skipAnimation
36
+ highlighted,
37
+ highlightScope,
38
+ id,
39
+ innerRadius,
40
+ outerRadius,
41
+ paddingAngle = 0,
42
+ skipAnimation,
43
+ slotProps,
44
+ slots
45
45
  } = props,
46
46
  other = _objectWithoutPropertiesLoose(props, _excluded);
47
47
  const transformedData = useTransformData({
@@ -101,6 +101,11 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
101
101
  // | These PropTypes are generated from the TypeScript type definitions |
102
102
  // | To update them edit the TypeScript types and run "yarn proptypes" |
103
103
  // ----------------------------------------------------------------------
104
+ /**
105
+ * The configuration of axes highlight.
106
+ * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
107
+ * @default { x: 'none', y: 'none' }
108
+ */
104
109
  axisHighlight: PropTypes.shape({
105
110
  x: PropTypes.oneOf(['band', 'line', 'none']),
106
111
  y: PropTypes.oneOf(['band', 'line', 'none'])
@@ -183,6 +188,8 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
183
188
  tickSize: PropTypes.number
184
189
  }), PropTypes.string]),
185
190
  /**
191
+ * The props of the legend.
192
+ * @default { direction: 'column', position: { vertical: 'middle', horizontal: 'right' } }
186
193
  * @deprecated Consider using `slotProps.legend` instead.
187
194
  */
188
195
  legend: PropTypes.shape({
@@ -208,6 +215,9 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
208
215
  right: PropTypes.number,
209
216
  top: PropTypes.number
210
217
  }),
218
+ /**
219
+ * Callback fired when a pie arc is clicked.
220
+ */
211
221
  onItemClick: PropTypes.func,
212
222
  /**
213
223
  * Indicate which axis to display the right of the charts.
@@ -236,6 +246,9 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
236
246
  tickNumber: PropTypes.number,
237
247
  tickSize: PropTypes.number
238
248
  }), PropTypes.string]),
249
+ /**
250
+ * The series to display in the pie chart.
251
+ */
239
252
  series: PropTypes.arrayOf(PropTypes.object).isRequired,
240
253
  /**
241
254
  * If `true`, animations are skipped.
@@ -247,9 +260,18 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
247
260
  * @default {}
248
261
  */
249
262
  slotProps: PropTypes.object,
263
+ /**
264
+ * Overridable component slots.
265
+ * @default {}
266
+ */
250
267
  slots: PropTypes.object,
251
268
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
252
269
  title: PropTypes.string,
270
+ /**
271
+ * The configuration of the tooltip.
272
+ * @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
273
+ * @default { trigger: 'item' }
274
+ */
253
275
  tooltip: PropTypes.shape({
254
276
  axisContent: PropTypes.elementType,
255
277
  classes: PropTypes.object,
@@ -3,74 +3,10 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["width", "height"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
7
- import ownerWindow from '@mui/utils/ownerWindow';
8
6
  import { styled } from '@mui/material/styles';
9
7
  import { ChartContainer } from '../ChartContainer';
8
+ import { useChartContainerDimensions } from './useChartContainerDimensions';
10
9
  import { jsx as _jsx } from "react/jsx-runtime";
11
- const useChartDimensions = (inWidth, inHeight) => {
12
- const rootRef = React.useRef(null);
13
- const displayError = React.useRef(false);
14
- const [width, setWidth] = React.useState(0);
15
- const [height, setHeight] = React.useState(0);
16
-
17
- // Adaptation of the `computeSizeAndPublishResizeEvent` from the grid.
18
- const computeSize = React.useCallback(() => {
19
- const mainEl = rootRef?.current;
20
- if (!mainEl) {
21
- return;
22
- }
23
- const win = ownerWindow(mainEl);
24
- const computedStyle = win.getComputedStyle(mainEl);
25
- const newHeight = Math.floor(parseFloat(computedStyle.height)) || 0;
26
- const newWidth = Math.floor(parseFloat(computedStyle.width)) || 0;
27
- setWidth(newWidth);
28
- setHeight(newHeight);
29
- }, []);
30
- React.useEffect(() => {
31
- // Ensure the error detection occurs after the first rendering.
32
- displayError.current = true;
33
- }, []);
34
- useEnhancedEffect(() => {
35
- if (inWidth !== undefined && inHeight !== undefined) {
36
- return () => {};
37
- }
38
- computeSize();
39
- const elementToObserve = rootRef.current;
40
- if (typeof ResizeObserver === 'undefined') {
41
- return () => {};
42
- }
43
- let animationFrame;
44
- const observer = new ResizeObserver(() => {
45
- // See https://github.com/mui/mui-x/issues/8733
46
- animationFrame = requestAnimationFrame(() => {
47
- computeSize();
48
- });
49
- });
50
- if (elementToObserve) {
51
- observer.observe(elementToObserve);
52
- }
53
- return () => {
54
- if (animationFrame) {
55
- window.cancelAnimationFrame(animationFrame);
56
- }
57
- if (elementToObserve) {
58
- observer.unobserve(elementToObserve);
59
- }
60
- };
61
- }, [computeSize, inHeight, inWidth]);
62
- if (process.env.NODE_ENV !== 'production') {
63
- if (displayError.current && inWidth === undefined && width === 0) {
64
- console.error(`MUI X Charts: ChartContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
65
- displayError.current = false;
66
- }
67
- if (displayError.current && inHeight === undefined && height === 0) {
68
- console.error(`MUI X Charts: ChartContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
69
- displayError.current = false;
70
- }
71
- }
72
- return [rootRef, inWidth ?? width, inHeight ?? height];
73
- };
74
10
  const ResizableContainer = styled('div', {
75
11
  name: 'MuiResponsiveChart',
76
12
  slot: 'Container'
@@ -97,7 +33,7 @@ const ResponsiveChartContainer = /*#__PURE__*/React.forwardRef(function Responsi
97
33
  height: inHeight
98
34
  } = props,
99
35
  other = _objectWithoutPropertiesLoose(props, _excluded);
100
- const [containerRef, width, height] = useChartDimensions(inWidth, inHeight);
36
+ const [containerRef, width, height] = useChartContainerDimensions(inWidth, inHeight);
101
37
  return /*#__PURE__*/_jsx(ResizableContainer, {
102
38
  ref: containerRef,
103
39
  ownerState: {
@@ -0,0 +1,66 @@
1
+ import * as React from 'react';
2
+ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
3
+ import ownerWindow from '@mui/utils/ownerWindow';
4
+ export const useChartContainerDimensions = (inWidth, inHeight) => {
5
+ const rootRef = React.useRef(null);
6
+ const displayError = React.useRef(false);
7
+ const [width, setWidth] = React.useState(0);
8
+ const [height, setHeight] = React.useState(0);
9
+
10
+ // Adaptation of the `computeSizeAndPublishResizeEvent` from the grid.
11
+ const computeSize = React.useCallback(() => {
12
+ const mainEl = rootRef?.current;
13
+ if (!mainEl) {
14
+ return;
15
+ }
16
+ const win = ownerWindow(mainEl);
17
+ const computedStyle = win.getComputedStyle(mainEl);
18
+ const newHeight = Math.floor(parseFloat(computedStyle.height)) || 0;
19
+ const newWidth = Math.floor(parseFloat(computedStyle.width)) || 0;
20
+ setWidth(newWidth);
21
+ setHeight(newHeight);
22
+ }, []);
23
+ React.useEffect(() => {
24
+ // Ensure the error detection occurs after the first rendering.
25
+ displayError.current = true;
26
+ }, []);
27
+ useEnhancedEffect(() => {
28
+ if (inWidth !== undefined && inHeight !== undefined) {
29
+ return () => {};
30
+ }
31
+ computeSize();
32
+ const elementToObserve = rootRef.current;
33
+ if (typeof ResizeObserver === 'undefined') {
34
+ return () => {};
35
+ }
36
+ let animationFrame;
37
+ const observer = new ResizeObserver(() => {
38
+ // See https://github.com/mui/mui-x/issues/8733
39
+ animationFrame = requestAnimationFrame(() => {
40
+ computeSize();
41
+ });
42
+ });
43
+ if (elementToObserve) {
44
+ observer.observe(elementToObserve);
45
+ }
46
+ return () => {
47
+ if (animationFrame) {
48
+ window.cancelAnimationFrame(animationFrame);
49
+ }
50
+ if (elementToObserve) {
51
+ observer.unobserve(elementToObserve);
52
+ }
53
+ };
54
+ }, [computeSize, inHeight, inWidth]);
55
+ if (process.env.NODE_ENV !== 'production') {
56
+ if (displayError.current && inWidth === undefined && width === 0) {
57
+ console.error(`MUI X Charts: ChartContainer does not have \`width\` prop, and its container has no \`width\` defined.`);
58
+ displayError.current = false;
59
+ }
60
+ if (displayError.current && inHeight === undefined && height === 0) {
61
+ console.error(`MUI X Charts: ChartContainer does not have \`height\` prop, and its container has no \`height\` defined.`);
62
+ displayError.current = false;
63
+ }
64
+ }
65
+ return [rootRef, inWidth ?? width, inHeight ?? height];
66
+ };
@@ -8,6 +8,7 @@ import { ChartsTooltip } from '../ChartsTooltip';
8
8
  import { ChartsLegend } from '../ChartsLegend';
9
9
  import { ChartsAxisHighlight } from '../ChartsAxisHighlight';
10
10
  import { ChartsVoronoiHandler } from '../ChartsVoronoiHandler/ChartsVoronoiHandler';
11
+ import { ChartsGrid } from '../ChartsGrid';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
14
  /**
@@ -35,6 +36,7 @@ const ScatterChart = /*#__PURE__*/React.forwardRef(function ScatterChart(props,
35
36
  margin,
36
37
  colors,
37
38
  sx,
39
+ grid,
38
40
  topAxis,
39
41
  leftAxis,
40
42
  rightAxis,
@@ -66,6 +68,9 @@ const ScatterChart = /*#__PURE__*/React.forwardRef(function ScatterChart(props,
66
68
  bottomAxis: bottomAxis,
67
69
  slots: slots,
68
70
  slotProps: slotProps
71
+ }), grid && /*#__PURE__*/_jsx(ChartsGrid, {
72
+ vertical: grid.vertical,
73
+ horizontal: grid.horizontal
69
74
  }), /*#__PURE__*/_jsx(ScatterPlot, {
70
75
  slots: slots,
71
76
  slotProps: slotProps,
@@ -86,6 +91,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
86
91
  // | These PropTypes are generated from the TypeScript type definitions |
87
92
  // | To update them edit the TypeScript types and run "yarn proptypes" |
88
93
  // ----------------------------------------------------------------------
94
+ /**
95
+ * The configuration of axes highlight.
96
+ * @see See {@link https://mui.com/x/react-charts/tooltip/#highlights highlight docs} for more details.
97
+ * @default { x: 'none', y: 'none' }
98
+ */
89
99
  axisHighlight: PropTypes.shape({
90
100
  x: PropTypes.oneOf(['band', 'line', 'none']),
91
101
  y: PropTypes.oneOf(['band', 'line', 'none'])
@@ -140,6 +150,13 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
140
150
  * @default false
141
151
  */
142
152
  disableVoronoi: PropTypes.bool,
153
+ /**
154
+ * Option to display a cartesian grid in the background.
155
+ */
156
+ grid: PropTypes.shape({
157
+ horizontal: PropTypes.bool,
158
+ vertical: PropTypes.bool
159
+ }),
143
160
  /**
144
161
  * The height of the chart in px. If not defined, it takes the height of the parent element.
145
162
  * @default undefined
@@ -231,6 +248,9 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
231
248
  tickNumber: PropTypes.number,
232
249
  tickSize: PropTypes.number
233
250
  }), PropTypes.string]),
251
+ /**
252
+ * The series to display in the scatter chart.
253
+ */
234
254
  series: PropTypes.arrayOf(PropTypes.object).isRequired,
235
255
  /**
236
256
  * The props used for each component slot.
@@ -244,6 +264,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
244
264
  slots: PropTypes.object,
245
265
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
246
266
  title: PropTypes.string,
267
+ /**
268
+ * The configuration of the tooltip.
269
+ * @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
270
+ * @default { trigger: 'item' }
271
+ */
247
272
  tooltip: PropTypes.shape({
248
273
  axisContent: PropTypes.elementType,
249
274
  classes: PropTypes.object,
@@ -13,7 +13,7 @@ export function getTickNumber(params) {
13
13
  const defaultizedTickNumber = tickNumber ?? Math.floor(Math.abs(range[1] - range[0]) / 50);
14
14
  return Math.min(maxTicks, Math.max(minTicks, defaultizedTickNumber));
15
15
  }
16
- function useTicks(options) {
16
+ export function useTicks(options) {
17
17
  const {
18
18
  scale,
19
19
  tickNumber,
@@ -55,5 +55,4 @@ function useTicks(options) {
55
55
  labelOffset: 0
56
56
  }));
57
57
  }, [tickNumber, scale, valueFormatter, tickInterval]);
58
- }
59
- export default useTicks;
58
+ }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v7.0.0-beta.2
2
+ * @mui/x-charts v7.0.0-beta.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -15,6 +15,7 @@ export * from './ChartsReferenceLine';
15
15
  export * from './ChartsAxis';
16
16
  export * from './ChartsXAxis';
17
17
  export * from './ChartsYAxis';
18
+ export * from './ChartsGrid';
18
19
  export * from './ChartsText';
19
20
  export * from './ChartsTooltip';
20
21
  export * from './ChartsLegend';
@@ -26,6 +27,7 @@ export * from './LineChart';
26
27
  export * from './PieChart';
27
28
  export * from './ScatterChart';
28
29
  export * from './SparkLineChart';
30
+ export * from './Gauge';
29
31
  export * from './ChartContainer';
30
32
  export * from './ChartsSurface';
31
33
  export * from './ResponsiveChartContainer';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts",
3
- "version": "7.0.0-beta.2",
3
+ "version": "7.0.0-beta.3",
4
4
  "description": "The community edition of the charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.23.9",
32
- "@mui/base": "^5.0.0-beta.34",
33
- "@mui/system": "^5.15.7",
34
- "@mui/utils": "^5.15.7",
32
+ "@mui/base": "^5.0.0-beta.36",
33
+ "@mui/system": "^5.15.9",
34
+ "@mui/utils": "^5.15.9",
35
35
  "@react-spring/rafz": "^9.7.3",
36
36
  "@react-spring/web": "^9.7.3",
37
37
  "clsx": "^2.1.0",