@mui/x-charts-premium 9.2.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/BarChartPremium/BarChartPremium.js +65 -35
  2. package/BarChartPremium/BarChartPremium.mjs +65 -35
  3. package/BarChartPremium/RangeBar/RangeBarPlot.d.mts +10 -0
  4. package/BarChartPremium/RangeBar/RangeBarPlot.d.ts +10 -0
  5. package/BarChartPremium/RangeBar/RangeBarPlot.js +59 -2
  6. package/BarChartPremium/RangeBar/RangeBarPlot.mjs +59 -2
  7. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.d.mts +10 -0
  8. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.d.ts +10 -0
  9. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.js +82 -0
  10. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.mjs +76 -0
  11. package/BarChartPremium/RangeBar/seriesConfig/extrema.js +3 -0
  12. package/BarChartPremium/RangeBar/seriesConfig/extrema.mjs +3 -0
  13. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.js +2 -2
  14. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.mjs +2 -2
  15. package/BarChartPremium/useBarChartPremiumProps.js +2 -1
  16. package/BarChartPremium/useBarChartPremiumProps.mjs +2 -1
  17. package/BarChartPremium/webgl/useBarWebGLPlotData.d.mts +2 -7
  18. package/BarChartPremium/webgl/useBarWebGLPlotData.d.ts +2 -7
  19. package/BarChartPremium/webgl/useBarWebGLPlotData.js +4 -151
  20. package/BarChartPremium/webgl/useBarWebGLPlotData.mjs +4 -150
  21. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +39 -0
  22. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +39 -0
  23. package/BarChartPremium/webgl/useWebGLBarLikePlotData.js +169 -0
  24. package/BarChartPremium/webgl/useWebGLBarLikePlotData.mjs +163 -0
  25. package/CHANGELOG.md +314 -0
  26. package/CandlestickChart/CandlestickChart.js +36 -27
  27. package/CandlestickChart/CandlestickChart.mjs +36 -27
  28. package/CandlestickChart/seriesConfig/extrema.js +3 -0
  29. package/CandlestickChart/seriesConfig/extrema.mjs +3 -0
  30. package/CandlestickChart/seriesConfig/seriesProcessor.js +2 -2
  31. package/CandlestickChart/seriesConfig/seriesProcessor.mjs +2 -2
  32. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
  33. package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
  34. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +35 -0
  35. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +35 -0
  36. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +125 -0
  37. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +119 -0
  38. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +5 -0
  39. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +5 -0
  40. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.js +10 -0
  41. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.mjs +4 -0
  42. package/ChartsGeoDataProviderPremium/index.d.mts +3 -0
  43. package/ChartsGeoDataProviderPremium/index.d.ts +3 -0
  44. package/ChartsGeoDataProviderPremium/index.js +20 -0
  45. package/ChartsGeoDataProviderPremium/index.mjs +3 -0
  46. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.mts +10 -0
  47. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.ts +10 -0
  48. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.js +49 -0
  49. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.mjs +42 -0
  50. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
  51. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
  52. package/HeatmapPremium/HeatmapPremium.js +52 -22
  53. package/HeatmapPremium/HeatmapPremium.mjs +52 -22
  54. package/Map/FocusedMapShape.d.mts +4 -0
  55. package/Map/FocusedMapShape.d.ts +4 -0
  56. package/Map/FocusedMapShape.js +66 -0
  57. package/Map/FocusedMapShape.mjs +60 -0
  58. package/Map/GeoDataPlot.d.mts +26 -0
  59. package/Map/GeoDataPlot.d.ts +26 -0
  60. package/Map/GeoDataPlot.js +65 -0
  61. package/Map/GeoDataPlot.mjs +60 -0
  62. package/Map/Graticule.d.mts +1 -0
  63. package/Map/Graticule.d.ts +1 -0
  64. package/Map/Graticule.js +30 -0
  65. package/Map/Graticule.mjs +24 -0
  66. package/Map/MapShape.d.mts +10 -0
  67. package/Map/MapShape.d.ts +10 -0
  68. package/Map/MapShape.js +55 -0
  69. package/Map/MapShape.mjs +49 -0
  70. package/Map/MapShapePlot.d.mts +21 -0
  71. package/Map/MapShapePlot.d.ts +21 -0
  72. package/Map/MapShapePlot.js +86 -0
  73. package/Map/MapShapePlot.mjs +80 -0
  74. package/Map/index.d.mts +7 -0
  75. package/Map/index.d.ts +7 -0
  76. package/Map/index.js +60 -0
  77. package/Map/index.mjs +8 -0
  78. package/Map/seriesConfig/descriptionGetter.d.mts +3 -0
  79. package/Map/seriesConfig/descriptionGetter.d.ts +3 -0
  80. package/Map/seriesConfig/descriptionGetter.js +19 -0
  81. package/Map/seriesConfig/descriptionGetter.mjs +13 -0
  82. package/Map/seriesConfig/getColor.d.mts +3 -0
  83. package/Map/seriesConfig/getColor.d.ts +3 -0
  84. package/Map/seriesConfig/getColor.js +35 -0
  85. package/Map/seriesConfig/getColor.mjs +29 -0
  86. package/Map/seriesConfig/getSeriesWithDefaultValues.d.mts +3 -0
  87. package/Map/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  88. package/Map/seriesConfig/getSeriesWithDefaultValues.js +15 -0
  89. package/Map/seriesConfig/getSeriesWithDefaultValues.mjs +8 -0
  90. package/Map/seriesConfig/index.d.mts +2 -0
  91. package/Map/seriesConfig/index.d.ts +2 -0
  92. package/Map/seriesConfig/index.js +28 -0
  93. package/Map/seriesConfig/index.mjs +21 -0
  94. package/Map/seriesConfig/keyboardFocusHandler.d.mts +9 -0
  95. package/Map/seriesConfig/keyboardFocusHandler.d.ts +9 -0
  96. package/Map/seriesConfig/keyboardFocusHandler.js +19 -0
  97. package/Map/seriesConfig/keyboardFocusHandler.mjs +13 -0
  98. package/Map/seriesConfig/legend.d.mts +3 -0
  99. package/Map/seriesConfig/legend.d.ts +3 -0
  100. package/Map/seriesConfig/legend.js +28 -0
  101. package/Map/seriesConfig/legend.mjs +22 -0
  102. package/Map/seriesConfig/seriesProcessor.d.mts +3 -0
  103. package/Map/seriesConfig/seriesProcessor.d.ts +3 -0
  104. package/Map/seriesConfig/seriesProcessor.js +66 -0
  105. package/Map/seriesConfig/seriesProcessor.mjs +59 -0
  106. package/Map/seriesConfig/tooltip.d.mts +3 -0
  107. package/Map/seriesConfig/tooltip.d.ts +3 -0
  108. package/Map/seriesConfig/tooltip.js +33 -0
  109. package/Map/seriesConfig/tooltip.mjs +27 -0
  110. package/RadialBarChart/RadialBarChart.js +10 -10
  111. package/RadialBarChart/RadialBarChart.mjs +10 -10
  112. package/RadialBarChart/seriesConfig/getColor.js +7 -51
  113. package/RadialBarChart/seriesConfig/getColor.mjs +8 -52
  114. package/RadialBarChart/seriesConfig/tooltip.js +3 -26
  115. package/RadialBarChart/seriesConfig/tooltip.mjs +4 -27
  116. package/RadialLineChart/RadialArea.d.mts +2 -11
  117. package/RadialLineChart/RadialArea.d.ts +2 -11
  118. package/RadialLineChart/RadialArea.js +4 -3
  119. package/RadialLineChart/RadialArea.mjs +4 -3
  120. package/RadialLineChart/RadialAreaPlot.js +3 -1
  121. package/RadialLineChart/RadialAreaPlot.mjs +3 -1
  122. package/RadialLineChart/RadialLine.d.mts +4 -3
  123. package/RadialLineChart/RadialLine.d.ts +4 -3
  124. package/RadialLineChart/RadialLine.js +4 -3
  125. package/RadialLineChart/RadialLine.mjs +4 -3
  126. package/RadialLineChart/RadialLineChart.d.mts +7 -5
  127. package/RadialLineChart/RadialLineChart.d.ts +7 -5
  128. package/RadialLineChart/RadialLineChart.js +11 -11
  129. package/RadialLineChart/RadialLineChart.mjs +11 -11
  130. package/RadialLineChart/RadialLineHighlightPlot.d.mts +3 -2
  131. package/RadialLineChart/RadialLineHighlightPlot.d.ts +3 -2
  132. package/RadialLineChart/RadialLinePlot.js +3 -1
  133. package/RadialLineChart/RadialLinePlot.mjs +3 -1
  134. package/RadialLineChart/seriesConfig/getColor.js +6 -53
  135. package/RadialLineChart/seriesConfig/getColor.mjs +7 -54
  136. package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +2 -2
  137. package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +2 -2
  138. package/RadialLineChart/seriesConfig/seriesProcessor.js +1 -138
  139. package/RadialLineChart/seriesConfig/seriesProcessor.mjs +2 -138
  140. package/RadialLineChart/seriesConfig/tooltip.js +3 -24
  141. package/RadialLineChart/seriesConfig/tooltip.mjs +4 -25
  142. package/RadialLineChart/useRadialLinePlotData.d.mts +1 -0
  143. package/RadialLineChart/useRadialLinePlotData.d.ts +1 -0
  144. package/RadialLineChart/useRadialLinePlotData.js +3 -1
  145. package/RadialLineChart/useRadialLinePlotData.mjs +3 -1
  146. package/ScatterChartPremium/ScatterChartPremium.d.mts +2 -1
  147. package/ScatterChartPremium/ScatterChartPremium.d.ts +2 -1
  148. package/ScatterChartPremium/ScatterChartPremium.js +62 -32
  149. package/ScatterChartPremium/ScatterChartPremium.mjs +62 -32
  150. package/hooks/index.d.mts +4 -1
  151. package/hooks/index.d.ts +4 -1
  152. package/hooks/index.js +33 -0
  153. package/hooks/index.mjs +4 -1
  154. package/hooks/useGeoData.d.mts +6 -0
  155. package/hooks/useGeoData.d.ts +6 -0
  156. package/hooks/useGeoData.js +17 -0
  157. package/hooks/useGeoData.mjs +13 -0
  158. package/hooks/useGeoFeatureIndexesByName.d.mts +7 -0
  159. package/hooks/useGeoFeatureIndexesByName.d.ts +7 -0
  160. package/hooks/useGeoFeatureIndexesByName.js +19 -0
  161. package/hooks/useGeoFeatureIndexesByName.mjs +15 -0
  162. package/hooks/useGeoPath.d.mts +6 -0
  163. package/hooks/useGeoPath.d.ts +6 -0
  164. package/hooks/useGeoPath.js +17 -0
  165. package/hooks/useGeoPath.mjs +13 -0
  166. package/hooks/useMapShapeSeries.d.mts +34 -0
  167. package/hooks/useMapShapeSeries.d.ts +34 -0
  168. package/hooks/useMapShapeSeries.js +45 -0
  169. package/hooks/useMapShapeSeries.mjs +40 -0
  170. package/index.d.mts +2 -0
  171. package/index.d.ts +2 -0
  172. package/index.js +25 -1
  173. package/index.mjs +3 -1
  174. package/internals/plugins/useGeoProjection/index.d.mts +3 -0
  175. package/internals/plugins/useGeoProjection/index.d.ts +3 -0
  176. package/internals/plugins/useGeoProjection/index.js +38 -0
  177. package/internals/plugins/useGeoProjection/index.mjs +3 -0
  178. package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +3 -0
  179. package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +3 -0
  180. package/internals/plugins/useGeoProjection/useGeoProjection.js +58 -0
  181. package/internals/plugins/useGeoProjection/useGeoProjection.mjs +50 -0
  182. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +39 -0
  183. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +39 -0
  184. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +135 -0
  185. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +128 -0
  186. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +55 -0
  187. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +55 -0
  188. package/internals/plugins/useGeoProjection/useGeoProjection.types.js +5 -0
  189. package/internals/plugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
  190. package/models/chartsSlotsComponentsPropsPremium.d.mts +1 -0
  191. package/models/chartsSlotsComponentsPropsPremium.d.ts +1 -0
  192. package/models/chartsSlotsComponentsPropsPremium.js +5 -0
  193. package/models/chartsSlotsComponentsPropsPremium.mjs +1 -0
  194. package/models/index.d.mts +2 -1
  195. package/models/index.d.ts +2 -1
  196. package/models/index.js +11 -0
  197. package/models/index.mjs +2 -1
  198. package/models/seriesType/index.d.mts +2 -1
  199. package/models/seriesType/index.d.ts +2 -1
  200. package/models/seriesType/index.js +11 -0
  201. package/models/seriesType/index.mjs +2 -1
  202. package/models/seriesType/mapShape.d.mts +105 -0
  203. package/models/seriesType/mapShape.d.ts +105 -0
  204. package/models/seriesType/mapShape.js +5 -0
  205. package/models/seriesType/mapShape.mjs +1 -0
  206. package/models/seriesType/radialBar.d.mts +1 -1
  207. package/models/seriesType/radialBar.d.ts +1 -1
  208. package/models/seriesType/radialLine.d.mts +4 -0
  209. package/models/seriesType/radialLine.d.ts +4 -0
  210. package/package.json +34 -6
  211. package/typeOverloads/modules.d.mts +16 -1
  212. package/typeOverloads/modules.d.ts +16 -1
  213. package/utils/webgl/useWebGLResizeObserver.js +3 -3
  214. package/utils/webgl/useWebGLResizeObserver.mjs +2 -2
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _internals = require("@mui/x-charts/internals");
8
+ const tooltipGetter = ({
9
+ series,
10
+ getColor,
11
+ identifier
12
+ }) => {
13
+ if (!identifier || identifier.dataIndex === undefined) {
14
+ return null;
15
+ }
16
+ const point = series.data[identifier.dataIndex];
17
+ if (point == null) {
18
+ return null;
19
+ }
20
+ const label = (0, _internals.getLabel)(point.label ?? point.name, 'tooltip');
21
+ const formattedValue = series.valueFormatter(point, {
22
+ dataIndex: identifier.dataIndex
23
+ });
24
+ return {
25
+ identifier,
26
+ color: getColor(identifier.dataIndex),
27
+ label,
28
+ value: point,
29
+ formattedValue,
30
+ markType: series.labelMarkType
31
+ };
32
+ };
33
+ var _default = exports.default = tooltipGetter;
@@ -0,0 +1,27 @@
1
+ import { getLabel } from '@mui/x-charts/internals';
2
+ const tooltipGetter = ({
3
+ series,
4
+ getColor,
5
+ identifier
6
+ }) => {
7
+ if (!identifier || identifier.dataIndex === undefined) {
8
+ return null;
9
+ }
10
+ const point = series.data[identifier.dataIndex];
11
+ if (point == null) {
12
+ return null;
13
+ }
14
+ const label = getLabel(point.label ?? point.name, 'tooltip');
15
+ const formattedValue = series.valueFormatter(point, {
16
+ dataIndex: identifier.dataIndex
17
+ });
18
+ return {
19
+ identifier,
20
+ color: getColor(identifier.dataIndex),
21
+ label,
22
+ value: point,
23
+ formattedValue,
24
+ markType: series.labelMarkType
25
+ };
26
+ };
27
+ export default tooltipGetter;
@@ -152,11 +152,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
152
152
  hiddenItems: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
153
153
  dataIndex: _propTypes.default.number,
154
154
  seriesId: _propTypes.default.string.isRequired,
155
- type: _propTypes.default.oneOf(['radialBar'])
155
+ type: _propTypes.default.oneOf(['radialBar']).isRequired
156
156
  }), _propTypes.default.shape({
157
157
  dataIndex: _propTypes.default.number,
158
158
  seriesId: _propTypes.default.string.isRequired,
159
- type: _propTypes.default.oneOf(['radialBar']).isRequired
159
+ type: _propTypes.default.oneOf(['radialBar'])
160
160
  })]).isRequired),
161
161
  /**
162
162
  * If `true`, the legend is not rendered.
@@ -168,11 +168,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
168
168
  */
169
169
  highlightedItem: _propTypes.default.oneOfType([_propTypes.default.shape({
170
170
  dataIndex: _propTypes.default.number.isRequired,
171
- seriesId: _propTypes.default.string.isRequired,
172
- type: _propTypes.default.oneOf(['radialBar']).isRequired
171
+ seriesId: _propTypes.default.string.isRequired
173
172
  }), _propTypes.default.shape({
174
173
  dataIndex: _propTypes.default.number.isRequired,
175
- seriesId: _propTypes.default.string.isRequired
174
+ seriesId: _propTypes.default.string.isRequired,
175
+ type: _propTypes.default.oneOf(['radialBar']).isRequired
176
176
  })]),
177
177
  /**
178
178
  * This prop is used to help implement the accessibility logic.
@@ -203,11 +203,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
203
203
  initialHiddenItems: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
204
204
  dataIndex: _propTypes.default.number,
205
205
  seriesId: _propTypes.default.string.isRequired,
206
- type: _propTypes.default.oneOf(['radialBar'])
206
+ type: _propTypes.default.oneOf(['radialBar']).isRequired
207
207
  }), _propTypes.default.shape({
208
208
  dataIndex: _propTypes.default.number,
209
209
  seriesId: _propTypes.default.string.isRequired,
210
- type: _propTypes.default.oneOf(['radialBar']).isRequired
210
+ type: _propTypes.default.oneOf(['radialBar'])
211
211
  })]).isRequired),
212
212
  /**
213
213
  * If `true`, a loading overlay is displayed.
@@ -298,11 +298,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
298
298
  */
299
299
  tooltipItem: _propTypes.default.oneOfType([_propTypes.default.shape({
300
300
  dataIndex: _propTypes.default.number.isRequired,
301
- seriesId: _propTypes.default.string.isRequired,
302
- type: _propTypes.default.oneOf(['radialBar']).isRequired
301
+ seriesId: _propTypes.default.string.isRequired
303
302
  }), _propTypes.default.shape({
304
303
  dataIndex: _propTypes.default.number.isRequired,
305
- seriesId: _propTypes.default.string.isRequired
304
+ seriesId: _propTypes.default.string.isRequired,
305
+ type: _propTypes.default.oneOf(['radialBar']).isRequired
306
306
  })]),
307
307
  /**
308
308
  * The width of the chart in px. If not defined, it takes the width of the parent element.
@@ -145,11 +145,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
145
145
  hiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
146
146
  dataIndex: PropTypes.number,
147
147
  seriesId: PropTypes.string.isRequired,
148
- type: PropTypes.oneOf(['radialBar'])
148
+ type: PropTypes.oneOf(['radialBar']).isRequired
149
149
  }), PropTypes.shape({
150
150
  dataIndex: PropTypes.number,
151
151
  seriesId: PropTypes.string.isRequired,
152
- type: PropTypes.oneOf(['radialBar']).isRequired
152
+ type: PropTypes.oneOf(['radialBar'])
153
153
  })]).isRequired),
154
154
  /**
155
155
  * If `true`, the legend is not rendered.
@@ -161,11 +161,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
161
161
  */
162
162
  highlightedItem: PropTypes.oneOfType([PropTypes.shape({
163
163
  dataIndex: PropTypes.number.isRequired,
164
- seriesId: PropTypes.string.isRequired,
165
- type: PropTypes.oneOf(['radialBar']).isRequired
164
+ seriesId: PropTypes.string.isRequired
166
165
  }), PropTypes.shape({
167
166
  dataIndex: PropTypes.number.isRequired,
168
- seriesId: PropTypes.string.isRequired
167
+ seriesId: PropTypes.string.isRequired,
168
+ type: PropTypes.oneOf(['radialBar']).isRequired
169
169
  })]),
170
170
  /**
171
171
  * This prop is used to help implement the accessibility logic.
@@ -196,11 +196,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
196
196
  initialHiddenItems: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
197
197
  dataIndex: PropTypes.number,
198
198
  seriesId: PropTypes.string.isRequired,
199
- type: PropTypes.oneOf(['radialBar'])
199
+ type: PropTypes.oneOf(['radialBar']).isRequired
200
200
  }), PropTypes.shape({
201
201
  dataIndex: PropTypes.number,
202
202
  seriesId: PropTypes.string.isRequired,
203
- type: PropTypes.oneOf(['radialBar']).isRequired
203
+ type: PropTypes.oneOf(['radialBar'])
204
204
  })]).isRequired),
205
205
  /**
206
206
  * If `true`, a loading overlay is displayed.
@@ -291,11 +291,11 @@ process.env.NODE_ENV !== "production" ? RadialBarChart.propTypes = {
291
291
  */
292
292
  tooltipItem: PropTypes.oneOfType([PropTypes.shape({
293
293
  dataIndex: PropTypes.number.isRequired,
294
- seriesId: PropTypes.string.isRequired,
295
- type: PropTypes.oneOf(['radialBar']).isRequired
294
+ seriesId: PropTypes.string.isRequired
296
295
  }), PropTypes.shape({
297
296
  dataIndex: PropTypes.number.isRequired,
298
- seriesId: PropTypes.string.isRequired
297
+ seriesId: PropTypes.string.isRequired,
298
+ type: PropTypes.oneOf(['radialBar']).isRequired
299
299
  })]),
300
300
  /**
301
301
  * The width of the chart in px. If not defined, it takes the width of the parent element.
@@ -6,56 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _internals = require("@mui/x-charts/internals");
8
8
  const getColor = (series, rotationAxis, radiusAxis) => {
9
- const yColorScale = radiusAxis?.colorScale;
10
- const xColorScale = rotationAxis?.colorScale;
11
- const getSeriesColor = (0, _internals.getSeriesColorFn)(series);
12
- if (yColorScale) {
13
- return dataIndex => {
14
- if (dataIndex === undefined) {
15
- return series.color;
16
- }
17
- const value = series.data[dataIndex];
18
- const color = value === null ? getSeriesColor({
19
- value,
20
- dataIndex
21
- }) : yColorScale(value);
22
- if (color === null) {
23
- return getSeriesColor({
24
- value,
25
- dataIndex
26
- });
27
- }
28
- return color;
29
- };
30
- }
31
- if (xColorScale) {
32
- return dataIndex => {
33
- if (dataIndex === undefined) {
34
- return series.color;
35
- }
36
- const value = rotationAxis.data?.[dataIndex];
37
- const color = value === null ? getSeriesColor({
38
- value,
39
- dataIndex
40
- }) : xColorScale(value);
41
- if (color === null) {
42
- return getSeriesColor({
43
- value,
44
- dataIndex
45
- });
46
- }
47
- return color;
48
- };
49
- }
50
- return dataIndex => {
51
- if (dataIndex === undefined) {
52
- return series.color;
53
- }
54
- const value = series.data[dataIndex];
55
- return getSeriesColor({
56
- value,
57
- dataIndex
58
- });
59
- };
9
+ const verticalLayout = series.layout === 'vertical';
10
+ return (0, _internals.resolveColorProcessor)({
11
+ series,
12
+ valueColorScale: verticalLayout ? radiusAxis?.colorScale : rotationAxis?.colorScale,
13
+ categoryColorScale: verticalLayout ? rotationAxis?.colorScale : radiusAxis?.colorScale,
14
+ categoryValues: verticalLayout ? rotationAxis?.data : radiusAxis?.data
15
+ });
60
16
  };
61
17
  var _default = exports.default = getColor;
@@ -1,55 +1,11 @@
1
- import { getSeriesColorFn } from '@mui/x-charts/internals';
1
+ import { resolveColorProcessor } from '@mui/x-charts/internals';
2
2
  const getColor = (series, rotationAxis, radiusAxis) => {
3
- const yColorScale = radiusAxis?.colorScale;
4
- const xColorScale = rotationAxis?.colorScale;
5
- const getSeriesColor = getSeriesColorFn(series);
6
- if (yColorScale) {
7
- return dataIndex => {
8
- if (dataIndex === undefined) {
9
- return series.color;
10
- }
11
- const value = series.data[dataIndex];
12
- const color = value === null ? getSeriesColor({
13
- value,
14
- dataIndex
15
- }) : yColorScale(value);
16
- if (color === null) {
17
- return getSeriesColor({
18
- value,
19
- dataIndex
20
- });
21
- }
22
- return color;
23
- };
24
- }
25
- if (xColorScale) {
26
- return dataIndex => {
27
- if (dataIndex === undefined) {
28
- return series.color;
29
- }
30
- const value = rotationAxis.data?.[dataIndex];
31
- const color = value === null ? getSeriesColor({
32
- value,
33
- dataIndex
34
- }) : xColorScale(value);
35
- if (color === null) {
36
- return getSeriesColor({
37
- value,
38
- dataIndex
39
- });
40
- }
41
- return color;
42
- };
43
- }
44
- return dataIndex => {
45
- if (dataIndex === undefined) {
46
- return series.color;
47
- }
48
- const value = series.data[dataIndex];
49
- return getSeriesColor({
50
- value,
51
- dataIndex
52
- });
53
- };
3
+ const verticalLayout = series.layout === 'vertical';
4
+ return resolveColorProcessor({
5
+ series,
6
+ valueColorScale: verticalLayout ? radiusAxis?.colorScale : rotationAxis?.colorScale,
7
+ categoryColorScale: verticalLayout ? rotationAxis?.colorScale : radiusAxis?.colorScale,
8
+ categoryValues: verticalLayout ? rotationAxis?.data : radiusAxis?.data
9
+ });
54
10
  };
55
11
  export default getColor;
@@ -5,30 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _internals = require("@mui/x-charts/internals");
8
- const tooltipGetter = params => {
9
- const {
10
- series,
11
- getColor,
12
- identifier
13
- } = params;
14
- if (!identifier || identifier.dataIndex === undefined) {
15
- return null;
16
- }
17
- const label = (0, _internals.getLabel)(series.label, 'tooltip');
18
- const value = series.data[identifier.dataIndex];
19
- if (value == null) {
20
- return null;
21
- }
22
- const formattedValue = series.valueFormatter(value, {
23
- dataIndex: identifier.dataIndex
24
- });
25
- return {
26
- identifier,
27
- color: getColor(identifier.dataIndex),
28
- label,
29
- value,
30
- formattedValue,
31
- markType: series.labelMarkType
32
- };
33
- };
8
+ const tooltipGetter = params => (0, _internals.getLineLikeTooltip)(params, {
9
+ skipNullValues: true
10
+ });
34
11
  var _default = exports.default = tooltipGetter;
@@ -1,28 +1,5 @@
1
- import { getLabel } from '@mui/x-charts/internals';
2
- const tooltipGetter = params => {
3
- const {
4
- series,
5
- getColor,
6
- identifier
7
- } = params;
8
- if (!identifier || identifier.dataIndex === undefined) {
9
- return null;
10
- }
11
- const label = getLabel(series.label, 'tooltip');
12
- const value = series.data[identifier.dataIndex];
13
- if (value == null) {
14
- return null;
15
- }
16
- const formattedValue = series.valueFormatter(value, {
17
- dataIndex: identifier.dataIndex
18
- });
19
- return {
20
- identifier,
21
- color: getColor(identifier.dataIndex),
22
- label,
23
- value,
24
- formattedValue,
25
- markType: series.labelMarkType
26
- };
27
- };
1
+ import { getLineLikeTooltip } from '@mui/x-charts/internals';
2
+ const tooltipGetter = params => getLineLikeTooltip(params, {
3
+ skipNullValues: true
4
+ });
28
5
  export default tooltipGetter;
@@ -1,12 +1,3 @@
1
- import * as React from 'react';
2
- import type { CurveType, SeriesId } from '@mui/x-charts/models';
3
- import { type RadialLinePoint } from "./useRadialLinePlotData.mjs";
4
- export interface RadialAreaProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
5
- seriesId: SeriesId;
6
- color: string;
7
- hidden?: boolean;
8
- curve?: CurveType;
9
- points: RadialLinePoint[];
10
- }
11
- declare function RadialArea(props: RadialAreaProps): import("react/jsx-runtime").JSX.Element;
1
+ import { type RadialLineOrAreaProps } from "./RadialLine.mjs";
2
+ declare function RadialArea(props: RadialLineOrAreaProps): import("react/jsx-runtime").JSX.Element;
12
3
  export { RadialArea };
@@ -1,12 +1,3 @@
1
- import * as React from 'react';
2
- import type { CurveType, SeriesId } from '@mui/x-charts/models';
3
- import { type RadialLinePoint } from "./useRadialLinePlotData.js";
4
- export interface RadialAreaProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
5
- seriesId: SeriesId;
6
- color: string;
7
- hidden?: boolean;
8
- curve?: CurveType;
9
- points: RadialLinePoint[];
10
- }
11
- declare function RadialArea(props: RadialAreaProps): import("react/jsx-runtime").JSX.Element;
1
+ import { type RadialLineOrAreaProps } from "./RadialLine.js";
2
+ declare function RadialArea(props: RadialLineOrAreaProps): import("react/jsx-runtime").JSX.Element;
12
3
  export { RadialArea };
@@ -13,14 +13,15 @@ var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
13
13
  var _internals = require("@mui/x-charts/internals");
14
14
  var _hooks = require("../hooks");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
- const _excluded = ["seriesId", "color", "hidden", "curve", "points"];
16
+ const _excluded = ["seriesId", "color", "hidden", "curve", "points", "closePath"];
17
17
  function RadialArea(props) {
18
18
  const {
19
19
  seriesId,
20
20
  color,
21
21
  hidden,
22
22
  curve,
23
- points
23
+ points,
24
+ closePath
24
25
  } = props,
25
26
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
26
27
  const identifier = React.useMemo(() => ({
@@ -30,7 +31,7 @@ function RadialArea(props) {
30
31
  const highlightState = (0, _hooks.useItemHighlightState)(identifier);
31
32
  const isHighlighted = highlightState === 'highlighted';
32
33
  const isFaded = highlightState === 'faded';
33
- const d = (0, _d3Shape.areaRadial)().angle(p => p.angle).innerRadius(p => p.baseRadius).outerRadius(p => p.radius).curve((0, _internals.getCurveFactory)(curve))(points) || '';
34
+ const d = (0, _d3Shape.areaRadial)().angle(p => p.angle).innerRadius(p => p.baseRadius).outerRadius(p => p.radius).curve((0, _internals.getCurveFactory)(curve))(closePath ? [...points, points[0]] : points) || '';
34
35
  const fadedOpacity = isFaded ? 0.3 : 1;
35
36
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("path", (0, _extends2.default)({
36
37
  "data-series": seriesId,
@@ -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 = ["seriesId", "color", "hidden", "curve", "points"];
3
+ const _excluded = ["seriesId", "color", "hidden", "curve", "points", "closePath"];
4
4
  import * as React from 'react';
5
5
  import { areaRadial as d3AreaRadial } from '@mui/x-charts-vendor/d3-shape';
6
6
  import { getCurveFactory } from '@mui/x-charts/internals';
@@ -12,7 +12,8 @@ function RadialArea(props) {
12
12
  color,
13
13
  hidden,
14
14
  curve,
15
- points
15
+ points,
16
+ closePath
16
17
  } = props,
17
18
  other = _objectWithoutPropertiesLoose(props, _excluded);
18
19
  const identifier = React.useMemo(() => ({
@@ -22,7 +23,7 @@ function RadialArea(props) {
22
23
  const highlightState = useItemHighlightState(identifier);
23
24
  const isHighlighted = highlightState === 'highlighted';
24
25
  const isFaded = highlightState === 'faded';
25
- const d = d3AreaRadial().angle(p => p.angle).innerRadius(p => p.baseRadius).outerRadius(p => p.radius).curve(getCurveFactory(curve))(points) || '';
26
+ const d = d3AreaRadial().angle(p => p.angle).innerRadius(p => p.baseRadius).outerRadius(p => p.radius).curve(getCurveFactory(curve))(closePath ? [...points, points[0]] : points) || '';
26
27
  const fadedOpacity = isFaded ? 0.3 : 1;
27
28
  return /*#__PURE__*/_jsx("path", _extends({
28
29
  "data-series": seriesId,
@@ -38,13 +38,15 @@ function RadialAreaPlot(props) {
38
38
  hidden,
39
39
  area,
40
40
  curve,
41
- points
41
+ points,
42
+ closePath
42
43
  }) => area && /*#__PURE__*/(0, _jsxRuntime.jsx)(_RadialArea.RadialArea, {
43
44
  seriesId: seriesId,
44
45
  color: color,
45
46
  hidden: hidden,
46
47
  curve: curve,
47
48
  points: points,
49
+ closePath: closePath,
48
50
  className: classes.area
49
51
  }, seriesId))
50
52
  });
@@ -32,13 +32,15 @@ export function RadialAreaPlot(props) {
32
32
  hidden,
33
33
  area,
34
34
  curve,
35
- points
35
+ points,
36
+ closePath
36
37
  }) => area && /*#__PURE__*/_jsx(RadialArea, {
37
38
  seriesId: seriesId,
38
39
  color: color,
39
40
  hidden: hidden,
40
41
  curve: curve,
41
42
  points: points,
43
+ closePath: closePath,
42
44
  className: classes.area
43
45
  }, seriesId))
44
46
  });
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { type CurveType, type SeriesId } from '@mui/x-charts/models';
3
3
  import { type RadialLinePoint } from "./useRadialLinePlotData.mjs";
4
- export interface RadialLineProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
4
+ export interface RadialLineOrAreaProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
5
5
  seriesId: SeriesId;
6
6
  color: string;
7
7
  hidden?: boolean;
8
- points: RadialLinePoint[];
9
8
  curve?: CurveType;
9
+ points: RadialLinePoint[];
10
+ closePath?: boolean;
10
11
  }
11
- declare function RadialLine(props: RadialLineProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function RadialLine(props: RadialLineOrAreaProps): import("react/jsx-runtime").JSX.Element;
12
13
  export { RadialLine };
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { type CurveType, type SeriesId } from '@mui/x-charts/models';
3
3
  import { type RadialLinePoint } from "./useRadialLinePlotData.js";
4
- export interface RadialLineProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
4
+ export interface RadialLineOrAreaProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'points'> {
5
5
  seriesId: SeriesId;
6
6
  color: string;
7
7
  hidden?: boolean;
8
- points: RadialLinePoint[];
9
8
  curve?: CurveType;
9
+ points: RadialLinePoint[];
10
+ closePath?: boolean;
10
11
  }
11
- declare function RadialLine(props: RadialLineProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function RadialLine(props: RadialLineOrAreaProps): import("react/jsx-runtime").JSX.Element;
12
13
  export { RadialLine };
@@ -13,14 +13,15 @@ var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
13
13
  var _internals = require("@mui/x-charts/internals");
14
14
  var _hooks = require("../hooks");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
- const _excluded = ["seriesId", "color", "hidden", "points", "curve"];
16
+ const _excluded = ["seriesId", "color", "hidden", "points", "curve", "closePath"];
17
17
  function RadialLine(props) {
18
18
  const {
19
19
  seriesId,
20
20
  color,
21
21
  hidden,
22
22
  points,
23
- curve
23
+ curve,
24
+ closePath
24
25
  } = props,
25
26
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
26
27
  const identifier = React.useMemo(() => ({
@@ -30,7 +31,7 @@ function RadialLine(props) {
30
31
  const highlightState = (0, _hooks.useItemHighlightState)(identifier);
31
32
  const isHighlighted = highlightState === 'highlighted';
32
33
  const isFaded = highlightState === 'faded';
33
- const d = (0, _d3Shape.lineRadial)().angle(p => p.angle).radius(p => p.radius).curve((0, _internals.getCurveFactory)(curve))(points) || '';
34
+ const d = (0, _d3Shape.lineRadial)().angle(p => p.angle).radius(p => p.radius).curve((0, _internals.getCurveFactory)(curve))(closePath ? [...points, points[0]] : points) || '';
34
35
  const fadedOpacity = isFaded ? 0.3 : 1;
35
36
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("path", (0, _extends2.default)({
36
37
  "data-series": seriesId,
@@ -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 = ["seriesId", "color", "hidden", "points", "curve"];
3
+ const _excluded = ["seriesId", "color", "hidden", "points", "curve", "closePath"];
4
4
  import * as React from 'react';
5
5
  import { lineRadial as d3LineRadial } from '@mui/x-charts-vendor/d3-shape';
6
6
  import { getCurveFactory } from '@mui/x-charts/internals';
@@ -12,7 +12,8 @@ function RadialLine(props) {
12
12
  color,
13
13
  hidden,
14
14
  points,
15
- curve
15
+ curve,
16
+ closePath
16
17
  } = props,
17
18
  other = _objectWithoutPropertiesLoose(props, _excluded);
18
19
  const identifier = React.useMemo(() => ({
@@ -22,7 +23,7 @@ function RadialLine(props) {
22
23
  const highlightState = useItemHighlightState(identifier);
23
24
  const isHighlighted = highlightState === 'highlighted';
24
25
  const isFaded = highlightState === 'faded';
25
- const d = d3LineRadial().angle(p => p.angle).radius(p => p.radius).curve(getCurveFactory(curve))(points) || '';
26
+ const d = d3LineRadial().angle(p => p.angle).radius(p => p.radius).curve(getCurveFactory(curve))(closePath ? [...points, points[0]] : points) || '';
26
27
  const fadedOpacity = isFaded ? 0.3 : 1;
27
28
  return /*#__PURE__*/_jsx("path", _extends({
28
29
  "data-series": seriesId,
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { MakeOptional } from '@mui/x-internals/types';
2
3
  import { type ChartsSlots, type ChartsSlotProps } from '@mui/x-charts/internals';
3
4
  import { type ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
4
5
  import { type ChartsRadialAxisHighlightProps } from '@mui/x-charts/ChartsRadialAxisHighlight';
@@ -6,18 +7,19 @@ import { type ChartsLegendSlots, type ChartsLegendSlotProps } from "../ChartsLeg
6
7
  import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/index.mjs";
7
8
  import { type RadialLineChartPluginSignatures } from "./RadialLineChart.plugins.mjs";
8
9
  import { type ChartsOverlayProps, type ChartsOverlaySlots, type ChartsOverlaySlotProps } from "../ChartsOverlay/index.mjs";
9
- import type { LinePlotSlots, LinePlotSlotProps, LineSeries } from "../LineChart/index.mjs";
10
10
  import { type ChartsToolbarSlots, type ChartsToolbarSlotProps } from "../Toolbar/index.mjs";
11
11
  import { type RadialLineHighlightPlotSlots, type RadialLineHighlightPlotSlotProps } from "./RadialLineHighlightPlot.mjs";
12
12
  import { type ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.mjs";
13
- export interface RadialLineChartSlots extends LinePlotSlots, RadialLineHighlightPlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
14
- export interface RadialLineChartSlotProps extends LinePlotSlotProps, RadialLineHighlightPlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
13
+ import type { RadialLineSeriesType } from "../models/seriesType/radialLine.mjs";
14
+ export interface RadialLineChartSlots extends RadialLineHighlightPlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
15
+ export interface RadialLineChartSlotProps extends RadialLineHighlightPlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
16
+ export type RadialLineSeries = MakeOptional<RadialLineSeriesType, 'type'>;
15
17
  export interface RadialLineChartProps extends Omit<ChartsRadialDataProviderPremiumProps<'radialLine', RadialLineChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
16
18
  /**
17
19
  * The series to display in the line chart.
18
- * An array of [[LineSeries]] objects.
20
+ * An array of [[RadialLineSeries]] objects.
19
21
  */
20
- series: Readonly<LineSeries[]>;
22
+ series: Readonly<RadialLineSeries[]>;
21
23
  /**
22
24
  * Option to display a radial grid in the background.
23
25
  */
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { MakeOptional } from '@mui/x-internals/types';
2
3
  import { type ChartsSlots, type ChartsSlotProps } from '@mui/x-charts/internals';
3
4
  import { type ChartsRadialGridProps } from '@mui/x-charts/ChartsRadialGrid';
4
5
  import { type ChartsRadialAxisHighlightProps } from '@mui/x-charts/ChartsRadialAxisHighlight';
@@ -6,18 +7,19 @@ import { type ChartsLegendSlots, type ChartsLegendSlotProps } from "../ChartsLeg
6
7
  import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/index.js";
7
8
  import { type RadialLineChartPluginSignatures } from "./RadialLineChart.plugins.js";
8
9
  import { type ChartsOverlayProps, type ChartsOverlaySlots, type ChartsOverlaySlotProps } from "../ChartsOverlay/index.js";
9
- import type { LinePlotSlots, LinePlotSlotProps, LineSeries } from "../LineChart/index.js";
10
10
  import { type ChartsToolbarSlots, type ChartsToolbarSlotProps } from "../Toolbar/index.js";
11
11
  import { type RadialLineHighlightPlotSlots, type RadialLineHighlightPlotSlotProps } from "./RadialLineHighlightPlot.js";
12
12
  import { type ChartsRadialDataProviderPremiumProps } from "../ChartsRadialDataProviderPremium/index.js";
13
- export interface RadialLineChartSlots extends LinePlotSlots, RadialLineHighlightPlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
14
- export interface RadialLineChartSlotProps extends LinePlotSlotProps, RadialLineHighlightPlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
13
+ import type { RadialLineSeriesType } from "../models/seriesType/radialLine.js";
14
+ export interface RadialLineChartSlots extends RadialLineHighlightPlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
15
+ export interface RadialLineChartSlotProps extends RadialLineHighlightPlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
16
+ export type RadialLineSeries = MakeOptional<RadialLineSeriesType, 'type'>;
15
17
  export interface RadialLineChartProps extends Omit<ChartsRadialDataProviderPremiumProps<'radialLine', RadialLineChartPluginSignatures>, 'series' | 'plugins' | 'zAxis' | 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
16
18
  /**
17
19
  * The series to display in the line chart.
18
- * An array of [[LineSeries]] objects.
20
+ * An array of [[RadialLineSeries]] objects.
19
21
  */
20
- series: Readonly<LineSeries[]>;
22
+ series: Readonly<RadialLineSeries[]>;
21
23
  /**
22
24
  * Option to display a radial grid in the background.
23
25
  */