@mui/x-charts 7.23.1 → 7.23.6

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 (74) hide show
  1. package/BarChart/BarChart.d.ts +1 -1
  2. package/BarChart/BarChart.js +1 -1
  3. package/BarChart/BarElement.d.ts +1 -479
  4. package/BarChart/BarLabel/BarLabel.d.ts +1 -479
  5. package/CHANGELOG.md +271 -0
  6. package/ChartContainer/useChartContainerProps.d.ts +16 -16
  7. package/ChartContainer/useDefaultizeAxis.d.ts +8 -8
  8. package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
  9. package/ChartsGrid/ChartsVerticalGrid.js +2 -2
  10. package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -2
  11. package/LineChart/AnimatedArea.d.ts +1 -479
  12. package/LineChart/AnimatedArea.js +4 -1
  13. package/LineChart/AnimatedLine.d.ts +1 -479
  14. package/LineChart/AnimatedLine.js +4 -1
  15. package/LineChart/AppearingMask.js +1 -0
  16. package/LineChart/CircleMarkElement.js +1 -0
  17. package/LineChart/LineChart.d.ts +1 -1
  18. package/LineChart/LineChart.js +1 -1
  19. package/LineChart/MarkElement.js +3 -1
  20. package/PieChart/PieArc.js +3 -1
  21. package/PieChart/PieArcLabel.js +13 -9
  22. package/PieChart/PieChart.d.ts +1 -1
  23. package/PieChart/PieChart.js +1 -1
  24. package/README.md +1 -1
  25. package/ResponsiveChartContainer/useChartContainerDimensions.d.ts +1 -1
  26. package/ResponsiveChartContainer/useResponsiveChartContainerProps.d.ts +1 -1
  27. package/ScatterChart/ScatterChart.d.ts +1 -1
  28. package/ScatterChart/ScatterChart.js +1 -1
  29. package/ScatterChart/extremums.js +1 -3
  30. package/ScatterChart/formatter.js +2 -2
  31. package/SparkLineChart/SparkLineChart.js +1 -4
  32. package/context/CartesianProvider/defaultizeAxis.d.ts +8 -8
  33. package/context/DrawingProvider.d.ts +2 -2
  34. package/context/PluginProvider/mergePlugins.d.ts +8 -8
  35. package/hooks/useSvgRef.d.ts +1 -1
  36. package/index.js +1 -1
  37. package/internals/defaultizeColor.d.ts +1 -1
  38. package/modern/BarChart/BarChart.js +1 -1
  39. package/modern/ChartsGrid/ChartsHorizontalGrid.js +2 -2
  40. package/modern/ChartsGrid/ChartsVerticalGrid.js +2 -2
  41. package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -2
  42. package/modern/LineChart/AnimatedArea.js +4 -1
  43. package/modern/LineChart/AnimatedLine.js +4 -1
  44. package/modern/LineChart/AppearingMask.js +1 -0
  45. package/modern/LineChart/CircleMarkElement.js +1 -0
  46. package/modern/LineChart/LineChart.js +1 -1
  47. package/modern/LineChart/MarkElement.js +3 -1
  48. package/modern/PieChart/PieArc.js +3 -1
  49. package/modern/PieChart/PieArcLabel.js +13 -9
  50. package/modern/PieChart/PieChart.js +1 -1
  51. package/modern/ScatterChart/ScatterChart.js +1 -1
  52. package/modern/ScatterChart/extremums.js +1 -3
  53. package/modern/ScatterChart/formatter.js +2 -2
  54. package/modern/SparkLineChart/SparkLineChart.js +1 -4
  55. package/modern/index.js +1 -1
  56. package/node/BarChart/BarChart.js +1 -1
  57. package/node/ChartsGrid/ChartsHorizontalGrid.js +2 -2
  58. package/node/ChartsGrid/ChartsVerticalGrid.js +2 -2
  59. package/node/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -2
  60. package/node/LineChart/AnimatedArea.js +4 -1
  61. package/node/LineChart/AnimatedLine.js +4 -1
  62. package/node/LineChart/AppearingMask.js +1 -0
  63. package/node/LineChart/CircleMarkElement.js +1 -0
  64. package/node/LineChart/LineChart.js +1 -1
  65. package/node/LineChart/MarkElement.js +3 -1
  66. package/node/PieChart/PieArc.js +3 -1
  67. package/node/PieChart/PieArcLabel.js +13 -9
  68. package/node/PieChart/PieChart.js +1 -1
  69. package/node/ScatterChart/ScatterChart.js +1 -1
  70. package/node/ScatterChart/extremums.js +1 -3
  71. package/node/ScatterChart/formatter.js +2 -2
  72. package/node/SparkLineChart/SparkLineChart.js +1 -4
  73. package/node/index.js +1 -1
  74. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,277 @@
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
+ ## 7.23.6
7
+
8
+ _Jan 9, 2025_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Chinese (Taiwan) (zh-TW) locale on the Date and Time Pickers
13
+ - 🌍 Improve Norwegian (nb-NO) locale on the Date and Time Pickers
14
+ - 🌍 Improve Dutch (nl-NL) locale on the Data Grid
15
+ - 🐞 Bugfixes
16
+
17
+ Special thanks go out to the community contributors who have helped make this release possible:
18
+ @josteinjhauge, @derek-0000, @nusr, @k-rajat19, @tomashauser.
19
+ Following are all team members who have contributed to this release:
20
+ @flaviendelangle, @LukasTy, @MBilalShafi, @arminmeh, @oliviertassinari, @cherniavskii.
21
+
22
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
23
+
24
+ ### Data Grid
25
+
26
+ #### `@mui/x-data-grid@7.23.6`
27
+
28
+ - [DataGrid] Improve React 19 support (#16048) @LukasTy
29
+ - [DataGrid] Add `name` attribute to selection checkboxes (#16041) @derek-0000
30
+ - [DataGrid] Fix number filter field formatting values while typing (#16068) @arminmeh
31
+ - [DataGrid] Fix select all checkbox state reset with server side data (#16039) @MBilalShafi
32
+
33
+ #### `@mui/x-data-grid-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.23.6`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.23.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.23.6`.
40
+
41
+ ### Date and Time Pickers
42
+
43
+ #### `@mui/x-date-pickers@7.23.6`
44
+
45
+ - [pickers] Improve React 19 support (#16048) @LukasTy
46
+ - [l10n] Add Chinese (Taiwan) (zh-TW) locale (#16057) @nusr
47
+ - [l10n] Improve Norwegian (nb-NO) locale (#16083) @josteinjhauge
48
+ - [pickers] Support `date-fns-jalali` v4 (#16013) @LukasTy
49
+
50
+ #### `@mui/x-date-pickers-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
51
+
52
+ Same changes as in `@mui/x-date-pickers@7.23.6`.
53
+
54
+ ### Charts
55
+
56
+ #### `@mui/x-charts@7.23.6`
57
+
58
+ - [charts] Improve React 19 support (#16048) @LukasTy
59
+ - [charts] Fix 301 redirection in the API documentation @oliviertassinari
60
+
61
+ #### `@mui/x-charts-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
62
+
63
+ Same changes as in `@mui/x-charts@7.23.6`.
64
+
65
+ ### Tree View
66
+
67
+ #### `@mui/x-tree-view@7.23.6`
68
+
69
+ - [TreeView] Improve React 19 support (#16048) @LukasTy
70
+
71
+ #### `@mui/x-tree-view-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
72
+
73
+ Same changes as in `@mui/x-tree-view@7.23.6`.
74
+
75
+ ### Docs
76
+
77
+ - [docs] Fix `EditingWithDatePickers` demo (#16047) @k-rajat19
78
+ - [docs] Fix doc warning for automatic children selection on tree view (#16037) @flaviendelangle
79
+ - [docs] Fix non-existing "adapter" property of `LocalizationProvider` (#16088) @tomashauser
80
+
81
+ ### Core
82
+
83
+ - [core] Clarify the release strategy (#16012) @MBilalShafi
84
+ - [core] Update the `release:version` docs (#16040) @cherniavskii
85
+
86
+ ## 7.23.5
87
+
88
+ _Dec 27, 2024_
89
+
90
+ Here are some highlights ✨:
91
+
92
+ - 🐞 Fix version mismatch issue in Data Grid codesandbox/stackblitz demos
93
+
94
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
95
+
96
+ ### Data Grid
97
+
98
+ #### `@mui/x-data-grid@7.23.5`
99
+
100
+ No changes since `@mui/x-data-grid@v7.23.4`.
101
+
102
+ #### `@mui/x-data-grid-pro@7.23.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
103
+
104
+ Same changes as in `@mui/x-data-grid@7.23.5`.
105
+
106
+ #### `@mui/x-data-grid-premium@7.23.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
107
+
108
+ Same changes as in `@mui/x-data-grid-pro@7.23.5`.
109
+
110
+ ## v7.23.4
111
+
112
+ _Dec 27, 2024_
113
+
114
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
115
+
116
+ - 🌍 Improve Dutch (nl-NL) locale on the Data Grid
117
+ - 🐞 Bugfixes
118
+
119
+ Special thanks go out to the community contributor who has helped make this release possible:
120
+ @JoepVerkoelen.
121
+ Following are all team members who have contributed to this release:
122
+ @arminmeh, @oliviertassinari.
123
+
124
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
125
+
126
+ ### Data Grid
127
+
128
+ #### `@mui/x-data-grid@7.23.4`
129
+
130
+ - [DataGrid] Fix header filters showing clear button while empty (#15990) @k-rajat19
131
+ - [DataGrid] Replace `forwardRef` with a shim for forward compatibility (#15984) @lauri865
132
+ - [l10n] Improve Dutch (nl-NL) locale (#15920) @JoepVerkoelen
133
+
134
+ #### `@mui/x-data-grid-pro@7.23.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
135
+
136
+ Same changes as in `@mui/x-data-grid@7.23.4`.
137
+
138
+ #### `@mui/x-data-grid-premium@7.23.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
139
+
140
+ Same changes as in `@mui/x-data-grid-pro@7.23.4`, plus:
141
+
142
+ - [DataGridPremium] Fix column pinning with checkbox selection and row grouping (#15949) @k-rajat19
143
+
144
+ ### Docs
145
+
146
+ - [docs] Fix outdated link to handbook (#15855) @oliviertassinari
147
+
148
+ ## 7.23.3
149
+
150
+ _Dec 19, 2024_
151
+
152
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
153
+
154
+ - 🌍 Improve Korean (ko-KR) locale on the Data Grid
155
+ - 🐞 Bugfixes
156
+
157
+ Special thanks go out to the community contributors who have helped make this release possible:
158
+ @k-rajat19, @good-jinu.
159
+ Following are all team members who have contributed to this release:
160
+ @KenanYusuf, @MBilalShafi, @arminmeh, @flaviendelangle.
161
+
162
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
163
+
164
+ ### Data Grid
165
+
166
+ #### `@mui/x-data-grid@7.23.3`
167
+
168
+ - [DataGrid] Allow passing custom props to `.main` element (#15919) @MBilalShafi
169
+ - [DataGrid] Consider `columnGroupHeaderHeight` prop in `getTotalHeaderHeight` method (#15927) @k-rajat19
170
+ - [DataGrid] Deprecate `indeterminateCheckboxAction` prop (#15862) @MBilalShafi
171
+ - [DataGrid] Fix `aria-label` value for group checkboxes (#15861) @MBilalShafi
172
+ - [DataGrid] Fix autosizing with virtualized columns (#15929) @k-rajat19
173
+ - [DataGrid] Round dimensions to avoid subpixel rendering error (#15873) @KenanYusuf
174
+ - [DataGrid] Toggle menu on click in `<GridActionsCell />` (#15871) @k-rajat19
175
+ - [DataGrid] Trigger row spanning computation on rows update (#15872) @MBilalShafi
176
+ - [l10n] Improve Korean (ko-KR) locale (#15906) @good-jinu
177
+
178
+ #### `@mui/x-data-grid-pro@7.23.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
179
+
180
+ Same changes as in `@mui/x-data-grid@7.23.3`.
181
+
182
+ #### `@mui/x-data-grid-premium@7.23.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
183
+
184
+ Same changes as in `@mui/x-data-grid-pro@7.23.3`.
185
+
186
+ ### Date and Time Pickers
187
+
188
+ #### `@mui/x-date-pickers@7.23.3`
189
+
190
+ - [pickers] Add verification to disable skipped hours in spring forward DST (#15918) @flaviendelangle
191
+
192
+ #### `@mui/x-date-pickers-pro@7.23.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
193
+
194
+ Same changes as in `@mui/x-date-pickers@7.23.3`.
195
+
196
+ ## 7.23.2
197
+
198
+ _Dec 12, 2024_
199
+
200
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
201
+
202
+ - 🌍 Improve Romanian and Turkish locales on the Data Grid
203
+ - 🌍 Improve Romanian locale on the Pickers
204
+ - 📚 Documentation improvements
205
+ - 🐞 Bugfixes
206
+
207
+ Special thanks go out to the community contributors who have helped make this release possible:
208
+ @ihsanberkozcan, @k-rajat19, @lhilgert9, @nusr, @rares985.
209
+
210
+ Following are all team members who have contributed to this release:
211
+ @alexfauquette, @arminmeh, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy.
212
+
213
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
214
+
215
+ ### Data Grid
216
+
217
+ #### `@mui/x-data-grid@7.23.2`
218
+
219
+ - [DataGrid] Fix "No rows" displaying when all rows are pinned (#15851) @nusr
220
+ - [DataGrid] Use `columnsManagement` slot (#15821) @k-rajat19
221
+ - [l10n] Improve Romanian (ro-RO) locale (#15751) @rares985
222
+ - [l10n] Improve Turkish (tr-TR) locale (#15748) @ihsanberkozcan
223
+
224
+ #### `@mui/x-data-grid-pro@7.23.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
225
+
226
+ Same changes as in `@mui/x-data-grid@7.23.2`, plus:
227
+
228
+ - [DataGridPro] Make Row reordering work with pagination (#15782) @k-rajat19
229
+
230
+ #### `@mui/x-data-grid-premium@7.23.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
231
+
232
+ Same changes as in `@mui/x-data-grid-pro@7.23.2`, plus:
233
+
234
+ - [DataGridPremium] Fix group column ignoring `valueOptions` for `singleSelect` column type (#15754) @arminmeh
235
+
236
+ ### Date and Time Pickers
237
+
238
+ #### `@mui/x-date-pickers@7.23.2`
239
+
240
+ - [l10n] Improve Romanian (ro-RO) locale (#15751) @rares985
241
+
242
+ #### `@mui/x-date-pickers-pro@7.23.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
243
+
244
+ Same changes as in `@mui/x-date-pickers@7.23.2`.
245
+
246
+ ### Charts
247
+
248
+ #### `@mui/x-charts@7.23.2`
249
+
250
+ - [charts] Fix key generation for the ChartsGrid (#15864) @alexfauquette
251
+ - [charts] Fix scatter dataset with missing data (#15804) @alexfauquette
252
+
253
+ #### `@mui/x-charts-pro@7.23.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
254
+
255
+ Same changes as in `@mui/x-charts@7.23.2`.
256
+
257
+ #### `@mui/x-tree-view@v7.23.2`
258
+
259
+ No changes, releasing to keep the versions in sync.
260
+
261
+ #### `@mui/x-tree-view-pro@7.23.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
262
+
263
+ Releasing to benefit from license package fix (#15818).
264
+
265
+ ### Docs
266
+
267
+ - [docs] Fix typo in charts axis documentation (#15746) @JCQuintas
268
+ - [docs] Improve Pickers accessible DOM structure description (#15752) @LukasTy
269
+ - [docs] Use `updateRows` method for list view demos (#15824) @KenanYusuf
270
+ - [docs] Use date library version from package dev dependencies for sandboxes (#15767) @LukasTy
271
+
272
+ ### Core
273
+
274
+ - [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
275
+ - [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15818) @arminmeh
276
+
6
277
  ## 7.23.1
7
278
 
8
279
  _Dec 5, 2024_
@@ -22,33 +22,33 @@ export declare const useChartContainerProps: (props: ChartContainerProps, ref: R
22
22
  animationProviderProps: Omit<AnimationProviderProps, "children">;
23
23
  xAxis: {
24
24
  reverse?: boolean | undefined;
25
- fill?: string | undefined;
26
- stroke?: string | undefined;
25
+ valueFormatter?: ((value: any, context: import("../internals").AxisValueFormatterContext) => string) | undefined;
27
26
  data?: any[] | undefined;
27
+ dataKey?: string | undefined;
28
28
  label?: string | undefined;
29
- max?: (number | Date) | undefined;
30
29
  min?: (number | Date) | undefined;
31
- valueFormatter?: ((value: any, context: import("../internals").AxisValueFormatterContext) => string) | undefined;
32
- dataKey?: string | undefined;
33
- sx?: import("@mui/system").SxProps | undefined;
34
- classes?: Partial<import("..").ChartsAxisClasses> | undefined;
30
+ max?: (number | Date) | undefined;
35
31
  tickMaxStep?: number | undefined;
36
32
  tickMinStep?: number | undefined;
37
33
  tickNumber?: number | undefined;
38
34
  disableLine?: boolean | undefined;
39
35
  disableTicks?: boolean | undefined;
36
+ fill?: string | undefined;
40
37
  tickFontSize?: number | undefined;
41
38
  tickLabelStyle?: import("..").ChartsTextProps["style"];
42
39
  labelStyle?: import("..").ChartsTextProps["style"];
43
40
  tickLabelInterval?: ("auto" | ((value: any, index: number) => boolean)) | undefined;
44
41
  labelFontSize?: number | undefined;
42
+ stroke?: string | undefined;
45
43
  tickSize?: number | undefined;
44
+ classes?: Partial<import("..").ChartsAxisClasses> | undefined;
46
45
  slots?: Partial<import("../internals").ChartsAxisSlots> | undefined;
47
46
  slotProps?: Partial<import("../internals").ChartsAxisSlotProps> | undefined;
47
+ sx?: import("@mui/system").SxProps | undefined;
48
48
  tickInterval?: ("auto" | ((value: any, index: number) => boolean) | any[]) | undefined;
49
49
  tickPlacement?: ("start" | "end" | "middle" | "extremities") | undefined;
50
50
  tickLabelPlacement?: ("middle" | "tick") | undefined;
51
- scaleType?: "linear" | "time" | "log" | "band" | "point" | "pow" | "sqrt" | "utc" | undefined;
51
+ scaleType?: "linear" | "band" | "point" | "log" | "pow" | "sqrt" | "time" | "utc" | undefined;
52
52
  colorMap?: import("../models/colorMapping").ContinuousColorConfig<number | Date> | import("../models/colorMapping").PiecewiseColorConfig<number | Date> | import("../models/colorMapping").OrdinalColorConfig<string | number | Date> | undefined;
53
53
  hideTooltip?: boolean | undefined;
54
54
  domainLimit?: ("nice" | "strict" | ((min: number, max: number) => {
@@ -59,33 +59,33 @@ export declare const useChartContainerProps: (props: ChartContainerProps, ref: R
59
59
  }[];
60
60
  yAxis: {
61
61
  reverse?: boolean | undefined;
62
- fill?: string | undefined;
63
- stroke?: string | undefined;
62
+ valueFormatter?: ((value: any, context: import("../internals").AxisValueFormatterContext) => string) | undefined;
64
63
  data?: any[] | undefined;
64
+ dataKey?: string | undefined;
65
65
  label?: string | undefined;
66
- max?: (number | Date) | undefined;
67
66
  min?: (number | Date) | undefined;
68
- valueFormatter?: ((value: any, context: import("../internals").AxisValueFormatterContext) => string) | undefined;
69
- dataKey?: string | undefined;
70
- sx?: import("@mui/system").SxProps | undefined;
71
- classes?: Partial<import("..").ChartsAxisClasses> | undefined;
67
+ max?: (number | Date) | undefined;
72
68
  tickMaxStep?: number | undefined;
73
69
  tickMinStep?: number | undefined;
74
70
  tickNumber?: number | undefined;
75
71
  disableLine?: boolean | undefined;
76
72
  disableTicks?: boolean | undefined;
73
+ fill?: string | undefined;
77
74
  tickFontSize?: number | undefined;
78
75
  tickLabelStyle?: import("..").ChartsTextProps["style"];
79
76
  labelStyle?: import("..").ChartsTextProps["style"];
80
77
  tickLabelInterval?: ("auto" | ((value: any, index: number) => boolean)) | undefined;
81
78
  labelFontSize?: number | undefined;
79
+ stroke?: string | undefined;
82
80
  tickSize?: number | undefined;
81
+ classes?: Partial<import("..").ChartsAxisClasses> | undefined;
83
82
  slots?: Partial<import("../internals").ChartsAxisSlots> | undefined;
84
83
  slotProps?: Partial<import("../internals").ChartsAxisSlotProps> | undefined;
84
+ sx?: import("@mui/system").SxProps | undefined;
85
85
  tickInterval?: ("auto" | ((value: any, index: number) => boolean) | any[]) | undefined;
86
86
  tickPlacement?: ("start" | "end" | "middle" | "extremities") | undefined;
87
87
  tickLabelPlacement?: ("middle" | "tick") | undefined;
88
- scaleType?: "linear" | "time" | "log" | "band" | "point" | "pow" | "sqrt" | "utc" | undefined;
88
+ scaleType?: "linear" | "band" | "point" | "log" | "pow" | "sqrt" | "time" | "utc" | undefined;
89
89
  colorMap?: import("../models/colorMapping").ContinuousColorConfig<number | Date> | import("../models/colorMapping").PiecewiseColorConfig<number | Date> | import("../models/colorMapping").OrdinalColorConfig<string | number | Date> | undefined;
90
90
  hideTooltip?: boolean | undefined;
91
91
  domainLimit?: ("nice" | "strict" | ((min: number, max: number) => {
@@ -4,33 +4,33 @@ import { ChartsAxisProps } from '../models/axis';
4
4
  import { DatasetType } from '../models/seriesType/config';
5
5
  export declare const useDefaultizeAxis: (inXAxis: MakeOptional<AxisConfig<ScaleName, any, ChartsAxisProps>, "id">[] | undefined, inYAxis: MakeOptional<AxisConfig<ScaleName, any, ChartsAxisProps>, "id">[] | undefined, dataset: DatasetType | undefined) => {
6
6
  reverse?: boolean | undefined;
7
- fill?: string | undefined;
8
- stroke?: string | undefined;
7
+ valueFormatter?: ((value: any, context: import("../internals").AxisValueFormatterContext) => string) | undefined;
9
8
  data?: any[] | undefined;
9
+ dataKey?: string | undefined;
10
10
  label?: string | undefined;
11
- max?: (number | Date) | undefined;
12
11
  min?: (number | Date) | undefined;
13
- valueFormatter?: ((value: any, context: import("../internals").AxisValueFormatterContext) => string) | undefined;
14
- dataKey?: string | undefined;
15
- sx?: import("@mui/system").SxProps | undefined;
16
- classes?: Partial<import("..").ChartsAxisClasses> | undefined;
12
+ max?: (number | Date) | undefined;
17
13
  tickMaxStep?: number | undefined;
18
14
  tickMinStep?: number | undefined;
19
15
  tickNumber?: number | undefined;
20
16
  disableLine?: boolean | undefined;
21
17
  disableTicks?: boolean | undefined;
18
+ fill?: string | undefined;
22
19
  tickFontSize?: number | undefined;
23
20
  tickLabelStyle?: import("..").ChartsTextProps["style"];
24
21
  labelStyle?: import("..").ChartsTextProps["style"];
25
22
  tickLabelInterval?: ("auto" | ((value: any, index: number) => boolean)) | undefined;
26
23
  labelFontSize?: number | undefined;
24
+ stroke?: string | undefined;
27
25
  tickSize?: number | undefined;
26
+ classes?: Partial<import("..").ChartsAxisClasses> | undefined;
28
27
  slots?: Partial<import("../internals").ChartsAxisSlots> | undefined;
29
28
  slotProps?: Partial<import("../internals").ChartsAxisSlotProps> | undefined;
29
+ sx?: import("@mui/system").SxProps | undefined;
30
30
  tickInterval?: ("auto" | ((value: any, index: number) => boolean) | any[]) | undefined;
31
31
  tickPlacement?: ("start" | "end" | "middle" | "extremities") | undefined;
32
32
  tickLabelPlacement?: ("middle" | "tick") | undefined;
33
- scaleType?: "linear" | "time" | "log" | "band" | "point" | "pow" | "sqrt" | "utc" | undefined;
33
+ scaleType?: "linear" | "band" | "point" | "log" | "pow" | "sqrt" | "time" | "utc" | undefined;
34
34
  colorMap?: import("../models/colorMapping").ContinuousColorConfig<number | Date> | import("../models/colorMapping").PiecewiseColorConfig<number | Date> | import("../models/colorMapping").OrdinalColorConfig<string | number | Date> | undefined;
35
35
  hideTooltip?: boolean | undefined;
36
36
  domainLimit?: ("nice" | "strict" | ((min: number, max: number) => {
@@ -23,7 +23,7 @@ export function ChartsGridHorizontal(props) {
23
23
  });
24
24
  return /*#__PURE__*/_jsx(React.Fragment, {
25
25
  children: yTicks.map(({
26
- formattedValue,
26
+ value,
27
27
  offset
28
28
  }) => /*#__PURE__*/_jsx(GridLine, {
29
29
  y1: offset,
@@ -31,6 +31,6 @@ export function ChartsGridHorizontal(props) {
31
31
  x1: drawingArea.left,
32
32
  x2: drawingArea.left + drawingArea.width,
33
33
  className: classes.horizontalLine
34
- }, `horizontal-${formattedValue}`))
34
+ }, `horizontal-${value}`))
35
35
  });
36
36
  }
@@ -23,7 +23,7 @@ export function ChartsGridVertical(props) {
23
23
  });
24
24
  return /*#__PURE__*/_jsx(React.Fragment, {
25
25
  children: xTicks.map(({
26
- formattedValue,
26
+ value,
27
27
  offset
28
28
  }) => /*#__PURE__*/_jsx(GridLine, {
29
29
  y1: drawingArea.top,
@@ -31,6 +31,6 @@ export function ChartsGridVertical(props) {
31
31
  x1: offset,
32
32
  x2: offset,
33
33
  className: classes.verticalLine
34
- }, `vertical-${formattedValue}`))
34
+ }, `vertical-${value}`))
35
35
  });
36
36
  }
@@ -102,10 +102,10 @@ function ChartsVoronoiHandler(props) {
102
102
  lastFind.current = undefined;
103
103
  }, [defaultXAxisId, defaultYAxisId, series, seriesOrder, xAxis, yAxis, drawingArea]);
104
104
  React.useEffect(() => {
105
- const element = svgRef.current;
106
- if (element === null) {
105
+ if (svgRef.current === null) {
107
106
  return undefined;
108
107
  }
108
+ const element = svgRef.current;
109
109
  function getClosestPoint(event) {
110
110
  // Get mouse coordinate in global SVG space
111
111
  const svgPoint = getSVGPoint(element, event);