@mui/x-charts 9.0.4 → 9.2.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 (195) hide show
  1. package/BarChart/BarChart.d.mts +1 -2
  2. package/BarChart/BarChart.d.ts +1 -2
  3. package/BarChart/BarChart.js +2 -913
  4. package/BarChart/BarChart.mjs +2 -913
  5. package/BarChart/seriesConfig/bar/seriesProcessor.js +2 -0
  6. package/BarChart/seriesConfig/bar/seriesProcessor.mjs +2 -0
  7. package/CHANGELOG.md +236 -0
  8. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +55 -0
  9. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +55 -0
  10. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +94 -0
  11. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +88 -0
  12. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +13 -0
  13. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +13 -0
  14. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.js +86 -0
  15. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.mjs +80 -0
  16. package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +18 -0
  17. package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +18 -0
  18. package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.js +26 -0
  19. package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.mjs +16 -0
  20. package/ChartsAxisHighlightValue/index.d.mts +1 -0
  21. package/ChartsAxisHighlightValue/index.d.ts +1 -0
  22. package/ChartsAxisHighlightValue/index.js +16 -0
  23. package/ChartsAxisHighlightValue/index.mjs +1 -0
  24. package/ChartsAxisHighlightValue/useAxisHighlightValue.d.mts +14 -0
  25. package/ChartsAxisHighlightValue/useAxisHighlightValue.d.ts +14 -0
  26. package/ChartsAxisHighlightValue/useAxisHighlightValue.js +130 -0
  27. package/ChartsAxisHighlightValue/useAxisHighlightValue.mjs +124 -0
  28. package/ChartsContainer/ChartsContainer.js +4 -1431
  29. package/ChartsContainer/ChartsContainer.mjs +4 -1431
  30. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +15 -0
  31. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +15 -0
  32. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +56 -0
  33. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +50 -0
  34. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.mts +6 -0
  35. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.ts +6 -0
  36. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.js +5 -0
  37. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.mjs +1 -0
  38. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.d.mts +11 -0
  39. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.d.ts +11 -0
  40. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.js +70 -0
  41. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.mjs +64 -0
  42. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +9 -0
  43. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +9 -0
  44. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.js +104 -0
  45. package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.mjs +98 -0
  46. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +9 -0
  47. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +9 -0
  48. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.js +98 -0
  49. package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.mjs +92 -0
  50. package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.d.mts +7 -0
  51. package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.d.ts +7 -0
  52. package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.js +14 -0
  53. package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.mjs +6 -0
  54. package/ChartsRadialAxisHighlight/index.d.mts +5 -0
  55. package/ChartsRadialAxisHighlight/index.d.ts +5 -0
  56. package/ChartsRadialAxisHighlight/index.js +47 -0
  57. package/ChartsRadialAxisHighlight/index.mjs +4 -0
  58. package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -47
  59. package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -47
  60. package/ChartsRadiusAxis/ChartsRadiusAxis.js +20 -16
  61. package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +21 -15
  62. package/ChartsRadiusAxis/index.d.mts +3 -2
  63. package/ChartsRadiusAxis/index.d.ts +3 -2
  64. package/ChartsRadiusAxis/index.mjs +3 -1
  65. package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -47
  66. package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -47
  67. package/ChartsRotationAxis/ChartsRotationAxis.js +16 -19
  68. package/ChartsRotationAxis/ChartsRotationAxis.mjs +17 -18
  69. package/ChartsRotationAxis/index.d.mts +3 -2
  70. package/ChartsRotationAxis/index.d.ts +3 -2
  71. package/ChartsRotationAxis/index.mjs +3 -1
  72. package/ChartsTooltip/useAxesTooltip.d.mts +1 -1
  73. package/ChartsTooltip/useAxesTooltip.d.ts +1 -1
  74. package/ChartsTooltip/useAxesTooltip.js +11 -2
  75. package/ChartsTooltip/useAxesTooltip.mjs +12 -3
  76. package/ChartsXAxis/useAxisTicksProps.d.mts +162 -81
  77. package/ChartsXAxis/useAxisTicksProps.d.ts +162 -81
  78. package/ChartsYAxis/useAxisTicksProps.d.mts +162 -81
  79. package/ChartsYAxis/useAxisTicksProps.d.ts +162 -81
  80. package/LICENSE +2 -0
  81. package/LineChart/LineChart.js +2 -913
  82. package/LineChart/LineChart.mjs +2 -913
  83. package/LineChart/seriesConfig/curveEvaluation.d.mts +19 -1
  84. package/LineChart/seriesConfig/curveEvaluation.d.ts +19 -1
  85. package/LineChart/seriesConfig/curveEvaluation.js +132 -0
  86. package/LineChart/seriesConfig/curveEvaluation.mjs +131 -0
  87. package/LineChart/seriesConfig/getSeriesWithDefaultValues.js +2 -1
  88. package/LineChart/seriesConfig/getSeriesWithDefaultValues.mjs +2 -1
  89. package/LineChart/seriesConfig/seriesProcessor.js +4 -0
  90. package/LineChart/seriesConfig/seriesProcessor.mjs +4 -0
  91. package/LineChart/useAreaPlotData.js +4 -0
  92. package/LineChart/useAreaPlotData.mjs +4 -0
  93. package/LineChart/useLinePlotData.js +2 -0
  94. package/LineChart/useLinePlotData.mjs +2 -0
  95. package/LineChart/useMarkPlotData.js +2 -0
  96. package/LineChart/useMarkPlotData.mjs +2 -0
  97. package/RadarChart/RadarGrid/CircularRadarStripes.js +2 -3
  98. package/RadarChart/RadarGrid/CircularRadarStripes.mjs +2 -3
  99. package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +1 -1
  100. package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.mjs +2 -2
  101. package/ScatterChart/FocusedScatterMark.js +10 -24
  102. package/ScatterChart/FocusedScatterMark.mjs +10 -24
  103. package/ScatterChart/HighlightedScatterMark.d.mts +11 -0
  104. package/ScatterChart/HighlightedScatterMark.d.ts +11 -0
  105. package/ScatterChart/HighlightedScatterMark.js +68 -0
  106. package/ScatterChart/HighlightedScatterMark.mjs +62 -0
  107. package/ScatterChart/ScatterChart.d.mts +1 -2
  108. package/ScatterChart/ScatterChart.d.ts +1 -2
  109. package/ScatterChart/ScatterChart.js +2 -913
  110. package/ScatterChart/ScatterChart.mjs +2 -913
  111. package/ScatterChart/index.d.mts +1 -0
  112. package/ScatterChart/index.d.ts +1 -0
  113. package/ScatterChart/index.js +12 -0
  114. package/ScatterChart/index.mjs +1 -0
  115. package/ScatterChart/scatterClasses.d.mts +3 -1
  116. package/ScatterChart/scatterClasses.d.ts +3 -1
  117. package/ScatterChart/scatterClasses.js +3 -2
  118. package/ScatterChart/scatterClasses.mjs +3 -2
  119. package/ScatterChart/useScatterChartProps.js +3 -1
  120. package/ScatterChart/useScatterChartProps.mjs +3 -1
  121. package/ScatterChart/useScatterItemPosition.d.mts +16 -0
  122. package/ScatterChart/useScatterItemPosition.d.ts +16 -0
  123. package/ScatterChart/useScatterItemPosition.js +47 -0
  124. package/ScatterChart/useScatterItemPosition.mjs +41 -0
  125. package/SparkLineChart/SparkLineChart.js +2 -913
  126. package/SparkLineChart/SparkLineChart.mjs +2 -913
  127. package/hooks/useAxis.d.mts +3 -3
  128. package/hooks/useAxis.d.ts +3 -3
  129. package/hooks/useAxisSystem.d.mts +1 -1
  130. package/hooks/useAxisSystem.d.ts +1 -1
  131. package/hooks/useAxisSystem.js +1 -1
  132. package/hooks/useAxisSystem.mjs +1 -1
  133. package/index.d.mts +2 -0
  134. package/index.d.ts +2 -0
  135. package/index.js +25 -1
  136. package/index.mjs +3 -1
  137. package/internals/getRingPath.d.mts +16 -0
  138. package/internals/getRingPath.d.ts +16 -0
  139. package/internals/getRingPath.js +39 -0
  140. package/internals/getRingPath.mjs +33 -0
  141. package/internals/index.d.mts +8 -1
  142. package/internals/index.d.ts +8 -1
  143. package/internals/index.js +67 -0
  144. package/internals/index.mjs +7 -1
  145. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +4 -2
  146. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +4 -2
  147. package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +2 -2
  148. package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +2 -2
  149. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +3 -3
  150. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +3 -3
  151. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +1 -0
  152. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
  153. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +8 -0
  154. package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
  155. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.mts +6 -1
  156. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +6 -1
  157. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +48 -36
  158. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +47 -36
  159. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +77 -3
  160. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +77 -3
  161. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +152 -2
  162. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +152 -2
  163. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +2 -2
  164. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +2 -2
  165. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +4 -7
  166. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +4 -7
  167. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.mts +3 -2
  168. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +3 -2
  169. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +2 -2
  170. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +2 -2
  171. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.mts +7 -2
  172. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +7 -2
  173. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +56 -6
  174. package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs +54 -5
  175. package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.mts +2 -1
  176. package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +2 -1
  177. package/internals/plugins/featurePlugins/useChartPolarAxis/index.js +12 -0
  178. package/internals/plugins/featurePlugins/useChartPolarAxis/index.mjs +2 -1
  179. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  180. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +2 -2
  181. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.mts +4 -4
  182. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +4 -4
  183. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.mts +3 -3
  184. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +3 -3
  185. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +23 -3
  186. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +23 -3
  187. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +73 -12
  188. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +74 -12
  189. package/models/axis.d.mts +79 -31
  190. package/models/axis.d.ts +79 -31
  191. package/models/axis.js +5 -1
  192. package/models/axis.mjs +5 -1
  193. package/models/seriesType/line.d.mts +6 -6
  194. package/models/seriesType/line.d.ts +6 -6
  195. package/package.json +32 -4
@@ -39,7 +39,157 @@ export declare const selectorChartsHighlightYAxisValue: (args_0: import("../../c
39
39
  }[] | AxisHighlightWithValue[];
40
40
  export declare const selectorChartsHighlightXAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.mjs").UseChartCartesianAxisState> & {
41
41
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
42
- }) => import("../../../index.mjs").ComputedAxis<keyof import("../../../index.mjs").AxisScaleConfig, any, ChartsAxisProps>[];
42
+ }) => ((Omit<Omit<import("../../../index.mjs").DefaultedAxis<keyof import("../../../index.mjs").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset"> & Required<Pick<Omit<import("../../../index.mjs").DefaultedAxis<keyof import("../../../index.mjs").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset">> & (({
43
+ scaleType: "linear";
44
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLinear<number, number>;
45
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
46
+ } | {
47
+ scaleType: "time";
48
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
49
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
50
+ } | {
51
+ scaleType: "log";
52
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLogarithmic<number, number>;
53
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
54
+ } | ({
55
+ scaleType: "band";
56
+ ordinalTimeTicks?: import("../../../../index.mjs").OrdinalTimeTicks;
57
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleBand<{
58
+ toString(): string;
59
+ }>;
60
+ categoryGapRatio: number;
61
+ barGapRatio: number;
62
+ colorMap?: import("../../../../models/colorMapping.mjs").OrdinalColorConfig | import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
63
+ } & import("../../../index.mjs").AxisGroups & Pick<import("../../../../hooks/useTicks.mjs").TickParams, "tickPlacement" | "tickLabelPlacement">) | ({
64
+ scaleType: "point";
65
+ ordinalTimeTicks?: import("../../../../index.mjs").OrdinalTimeTicks;
66
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePoint<{
67
+ toString(): string;
68
+ }>;
69
+ colorMap?: import("../../../../models/colorMapping.mjs").OrdinalColorConfig | import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
70
+ } & import("../../../index.mjs").AxisGroups) | {
71
+ scaleType: "symlog";
72
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleSymLog<number, number>;
73
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
74
+ constant?: number;
75
+ } | {
76
+ scaleType: "pow";
77
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
78
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
79
+ } | {
80
+ scaleType: "sqrt";
81
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
82
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
83
+ } | {
84
+ scaleType: "utc";
85
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
86
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
87
+ }) & ({
88
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
89
+ } | {
90
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
91
+ } | {
92
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
93
+ } | {
94
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
95
+ } | {
96
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
97
+ } | {
98
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
99
+ } | {
100
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
101
+ } | {
102
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
103
+ } | {
104
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
105
+ }))) & {
106
+ tickNumber: number;
107
+ triggerTooltip?: boolean;
108
+ isFullCircle?: boolean;
109
+ } & ChartsAxisProps & {
110
+ position?: "none" | "bottom" | "left" | "right" | "top" | undefined;
111
+ height?: number | "auto" | undefined;
112
+ width?: number | "auto" | undefined;
113
+ } & {
114
+ height: number;
115
+ } & {
116
+ width: number;
117
+ })[];
43
118
  export declare const selectorChartsHighlightYAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.mjs").UseChartCartesianAxisState> & {
44
119
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
45
- }) => import("../../../index.mjs").ComputedAxis<keyof import("../../../index.mjs").AxisScaleConfig, any, ChartsAxisProps>[];
120
+ }) => ((Omit<Omit<import("../../../index.mjs").DefaultedAxis<keyof import("../../../index.mjs").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset"> & Required<Pick<Omit<import("../../../index.mjs").DefaultedAxis<keyof import("../../../index.mjs").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset">> & (({
121
+ scaleType: "linear";
122
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLinear<number, number>;
123
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
124
+ } | {
125
+ scaleType: "time";
126
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
127
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
128
+ } | {
129
+ scaleType: "log";
130
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLogarithmic<number, number>;
131
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
132
+ } | ({
133
+ scaleType: "band";
134
+ ordinalTimeTicks?: import("../../../../index.mjs").OrdinalTimeTicks;
135
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleBand<{
136
+ toString(): string;
137
+ }>;
138
+ categoryGapRatio: number;
139
+ barGapRatio: number;
140
+ colorMap?: import("../../../../models/colorMapping.mjs").OrdinalColorConfig | import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
141
+ } & import("../../../index.mjs").AxisGroups & Pick<import("../../../../hooks/useTicks.mjs").TickParams, "tickPlacement" | "tickLabelPlacement">) | ({
142
+ scaleType: "point";
143
+ ordinalTimeTicks?: import("../../../../index.mjs").OrdinalTimeTicks;
144
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePoint<{
145
+ toString(): string;
146
+ }>;
147
+ colorMap?: import("../../../../models/colorMapping.mjs").OrdinalColorConfig | import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
148
+ } & import("../../../index.mjs").AxisGroups) | {
149
+ scaleType: "symlog";
150
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleSymLog<number, number>;
151
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
152
+ constant?: number;
153
+ } | {
154
+ scaleType: "pow";
155
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
156
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
157
+ } | {
158
+ scaleType: "sqrt";
159
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
160
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
161
+ } | {
162
+ scaleType: "utc";
163
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
164
+ colorMap?: import("../../../../models/colorMapping.mjs").ContinuousColorConfig | import("../../../../models/colorMapping.mjs").PiecewiseColorConfig;
165
+ }) & ({
166
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
167
+ } | {
168
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
169
+ } | {
170
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
171
+ } | {
172
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
173
+ } | {
174
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
175
+ } | {
176
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
177
+ } | {
178
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
179
+ } | {
180
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
181
+ } | {
182
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
183
+ }))) & {
184
+ tickNumber: number;
185
+ triggerTooltip?: boolean;
186
+ isFullCircle?: boolean;
187
+ } & ChartsAxisProps & {
188
+ position?: "none" | "bottom" | "left" | "right" | "top" | undefined;
189
+ height?: number | "auto" | undefined;
190
+ width?: number | "auto" | undefined;
191
+ } & {
192
+ height: number;
193
+ } & {
194
+ width: number;
195
+ })[];
@@ -39,7 +39,157 @@ export declare const selectorChartsHighlightYAxisValue: (args_0: import("../../c
39
39
  }[] | AxisHighlightWithValue[];
40
40
  export declare const selectorChartsHighlightXAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
41
41
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
42
- }) => import("../../../index.js").ComputedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>[];
42
+ }) => ((Omit<Omit<import("../../../index.js").DefaultedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset"> & Required<Pick<Omit<import("../../../index.js").DefaultedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset">> & (({
43
+ scaleType: "linear";
44
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLinear<number, number>;
45
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
46
+ } | {
47
+ scaleType: "time";
48
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
49
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
50
+ } | {
51
+ scaleType: "log";
52
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLogarithmic<number, number>;
53
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
54
+ } | ({
55
+ scaleType: "band";
56
+ ordinalTimeTicks?: import("../../../../index.js").OrdinalTimeTicks;
57
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleBand<{
58
+ toString(): string;
59
+ }>;
60
+ categoryGapRatio: number;
61
+ barGapRatio: number;
62
+ colorMap?: import("../../../../models/colorMapping.js").OrdinalColorConfig | import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
63
+ } & import("../../../index.js").AxisGroups & Pick<import("../../../../hooks/useTicks.js").TickParams, "tickPlacement" | "tickLabelPlacement">) | ({
64
+ scaleType: "point";
65
+ ordinalTimeTicks?: import("../../../../index.js").OrdinalTimeTicks;
66
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePoint<{
67
+ toString(): string;
68
+ }>;
69
+ colorMap?: import("../../../../models/colorMapping.js").OrdinalColorConfig | import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
70
+ } & import("../../../index.js").AxisGroups) | {
71
+ scaleType: "symlog";
72
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleSymLog<number, number>;
73
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
74
+ constant?: number;
75
+ } | {
76
+ scaleType: "pow";
77
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
78
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
79
+ } | {
80
+ scaleType: "sqrt";
81
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
82
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
83
+ } | {
84
+ scaleType: "utc";
85
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
86
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
87
+ }) & ({
88
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
89
+ } | {
90
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
91
+ } | {
92
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
93
+ } | {
94
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
95
+ } | {
96
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
97
+ } | {
98
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
99
+ } | {
100
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
101
+ } | {
102
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
103
+ } | {
104
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
105
+ }))) & {
106
+ tickNumber: number;
107
+ triggerTooltip?: boolean;
108
+ isFullCircle?: boolean;
109
+ } & ChartsAxisProps & {
110
+ position?: "none" | "bottom" | "left" | "right" | "top" | undefined;
111
+ height?: number | "auto" | undefined;
112
+ width?: number | "auto" | undefined;
113
+ } & {
114
+ height: number;
115
+ } & {
116
+ width: number;
117
+ })[];
43
118
  export declare const selectorChartsHighlightYAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
44
119
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
45
- }) => import("../../../index.js").ComputedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>[];
120
+ }) => ((Omit<Omit<import("../../../index.js").DefaultedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset"> & Required<Pick<Omit<import("../../../index.js").DefaultedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>, "scaleType">, "offset">> & (({
121
+ scaleType: "linear";
122
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLinear<number, number>;
123
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
124
+ } | {
125
+ scaleType: "time";
126
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
127
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
128
+ } | {
129
+ scaleType: "log";
130
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleLogarithmic<number, number>;
131
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
132
+ } | ({
133
+ scaleType: "band";
134
+ ordinalTimeTicks?: import("../../../../index.js").OrdinalTimeTicks;
135
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleBand<{
136
+ toString(): string;
137
+ }>;
138
+ categoryGapRatio: number;
139
+ barGapRatio: number;
140
+ colorMap?: import("../../../../models/colorMapping.js").OrdinalColorConfig | import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
141
+ } & import("../../../index.js").AxisGroups & Pick<import("../../../../hooks/useTicks.js").TickParams, "tickPlacement" | "tickLabelPlacement">) | ({
142
+ scaleType: "point";
143
+ ordinalTimeTicks?: import("../../../../index.js").OrdinalTimeTicks;
144
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePoint<{
145
+ toString(): string;
146
+ }>;
147
+ colorMap?: import("../../../../models/colorMapping.js").OrdinalColorConfig | import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
148
+ } & import("../../../index.js").AxisGroups) | {
149
+ scaleType: "symlog";
150
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleSymLog<number, number>;
151
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
152
+ constant?: number;
153
+ } | {
154
+ scaleType: "pow";
155
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
156
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
157
+ } | {
158
+ scaleType: "sqrt";
159
+ scale: import("@mui/x-charts-vendor/d3-scale").ScalePower<number, number>;
160
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
161
+ } | {
162
+ scaleType: "utc";
163
+ scale: import("@mui/x-charts-vendor/d3-scale").ScaleTime<number, number>;
164
+ colorMap?: import("../../../../models/colorMapping.js").ContinuousColorConfig | import("../../../../models/colorMapping.js").PiecewiseColorConfig;
165
+ }) & ({
166
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
167
+ } | {
168
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
169
+ } | {
170
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
171
+ } | {
172
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
173
+ } | {
174
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<string | number | Date, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleOrdinal<number, string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
175
+ } | {
176
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
177
+ } | {
178
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
179
+ } | {
180
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number, string | null>;
181
+ } | {
182
+ colorScale?: import("@mui/x-charts-vendor/d3-scale").ScaleSequential<string, string | null> | import("@mui/x-charts-vendor/d3-scale").ScaleThreshold<number | Date, string | null>;
183
+ }))) & {
184
+ tickNumber: number;
185
+ triggerTooltip?: boolean;
186
+ isFullCircle?: boolean;
187
+ } & ChartsAxisProps & {
188
+ position?: "none" | "bottom" | "left" | "right" | "top" | undefined;
189
+ height?: number | "auto" | undefined;
190
+ width?: number | "auto" | undefined;
191
+ } & {
192
+ height: number;
193
+ } & {
194
+ width: number;
195
+ })[];
@@ -1,6 +1,6 @@
1
- import { type AxisId, type ChartsAxisProps } from "../../../../models/axis.mjs";
1
+ import type { ChartsCartesianAxisProps, AxisId } from "../../../../models/axis.mjs";
2
2
  import { type ComputeResult } from "./computeAxisValue.mjs";
3
- export declare const selectChartsInteractionAxisIndex: (value: number | null, axes: ComputeResult<ChartsAxisProps>, id: AxisId | undefined) => number | null;
3
+ export declare const selectChartsInteractionAxisIndex: (value: number | null, axes: ComputeResult<ChartsCartesianAxisProps>, id: AxisId | undefined) => number | null;
4
4
  export declare const selectorChartsInteractionXAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.mjs").UseChartInteractionState> & {
5
5
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
6
6
  }, id: AxisId | undefined) => number | null;
@@ -1,6 +1,6 @@
1
- import { type AxisId, type ChartsAxisProps } from "../../../../models/axis.js";
1
+ import type { ChartsCartesianAxisProps, AxisId } from "../../../../models/axis.js";
2
2
  import { type ComputeResult } from "./computeAxisValue.js";
3
- export declare const selectChartsInteractionAxisIndex: (value: number | null, axes: ComputeResult<ChartsAxisProps>, id: AxisId | undefined) => number | null;
3
+ export declare const selectChartsInteractionAxisIndex: (value: number | null, axes: ComputeResult<ChartsCartesianAxisProps>, id: AxisId | undefined) => number | null;
4
4
  export declare const selectorChartsInteractionXAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
5
5
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
6
  }, id: AxisId | undefined) => number | null;
@@ -1,13 +1,10 @@
1
- import type { AxisConfig, ScaleName } from "../../../../models/index.mjs";
2
- import { type ChartsAxisProps, type ChartsRotationAxisProps, type ChartsRadiusAxisProps, type PolarAxisDefaultized, type AxisId } from "../../../../models/axis.mjs";
1
+ import type { ScaleName } from "../../../../models/index.mjs";
2
+ import { type ChartsAxisProps, type ChartsRotationAxisProps, type ChartsRadiusAxisProps, type PolarAxisConfig } from "../../../../models/axis.mjs";
3
3
  import { type ChartSeriesType } from "../../../../models/seriesType/config.mjs";
4
4
  import type { ChartDrawingArea } from "../../../../hooks/index.mjs";
5
5
  import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
6
6
  import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.mjs";
7
7
  import { type ComputedAxisConfig } from "../useChartCartesianAxis/index.mjs";
8
- export type DefaultizedAxisConfig<AxisProps extends ChartsRotationAxisProps | ChartsRadiusAxisProps> = {
9
- [axisId: AxisId]: PolarAxisDefaultized<ScaleName, any, AxisProps>;
10
- };
11
8
  export type ComputeResult<T extends ChartsAxisProps> = {
12
9
  axis: ComputedAxisConfig<T>;
13
10
  axisIds: string[];
@@ -18,11 +15,11 @@ type ComputeCommonParams<SeriesType extends ChartSeriesType = ChartSeriesType> =
18
15
  seriesConfig: ChartSeriesConfig<SeriesType>;
19
16
  };
20
17
  export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
21
- axis?: AxisConfig<'linear', any, ChartsRadiusAxisProps>[];
18
+ axis?: PolarAxisConfig<ScaleName, any, ChartsRadiusAxisProps>[];
22
19
  axisDirection: 'radius';
23
20
  }): ComputeResult<ChartsRadiusAxisProps>;
24
21
  export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
25
- axis?: AxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
22
+ axis?: PolarAxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
26
23
  axisDirection: 'rotation';
27
24
  }): ComputeResult<ChartsRotationAxisProps>;
28
25
  export {};
@@ -1,13 +1,10 @@
1
- import type { AxisConfig, ScaleName } from "../../../../models/index.js";
2
- import { type ChartsAxisProps, type ChartsRotationAxisProps, type ChartsRadiusAxisProps, type PolarAxisDefaultized, type AxisId } from "../../../../models/axis.js";
1
+ import type { ScaleName } from "../../../../models/index.js";
2
+ import { type ChartsAxisProps, type ChartsRotationAxisProps, type ChartsRadiusAxisProps, type PolarAxisConfig } from "../../../../models/axis.js";
3
3
  import { type ChartSeriesType } from "../../../../models/seriesType/config.js";
4
4
  import type { ChartDrawingArea } from "../../../../hooks/index.js";
5
5
  import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
6
6
  import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
7
7
  import { type ComputedAxisConfig } from "../useChartCartesianAxis/index.js";
8
- export type DefaultizedAxisConfig<AxisProps extends ChartsRotationAxisProps | ChartsRadiusAxisProps> = {
9
- [axisId: AxisId]: PolarAxisDefaultized<ScaleName, any, AxisProps>;
10
- };
11
8
  export type ComputeResult<T extends ChartsAxisProps> = {
12
9
  axis: ComputedAxisConfig<T>;
13
10
  axisIds: string[];
@@ -18,11 +15,11 @@ type ComputeCommonParams<SeriesType extends ChartSeriesType = ChartSeriesType> =
18
15
  seriesConfig: ChartSeriesConfig<SeriesType>;
19
16
  };
20
17
  export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
21
- axis?: AxisConfig<'linear', any, ChartsRadiusAxisProps>[];
18
+ axis?: PolarAxisConfig<ScaleName, any, ChartsRadiusAxisProps>[];
22
19
  axisDirection: 'radius';
23
20
  }): ComputeResult<ChartsRadiusAxisProps>;
24
21
  export declare function computeAxisValue<SeriesType extends ChartSeriesType>(options: ComputeCommonParams<SeriesType> & {
25
- axis?: AxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
22
+ axis?: PolarAxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
26
23
  axisDirection: 'rotation';
27
24
  }): ComputeResult<ChartsRotationAxisProps>;
28
25
  export {};
@@ -1,5 +1,6 @@
1
1
  import { type MakeOptional } from '@mui/x-internals/types';
2
2
  import { type ScaleName } from "../../../../models/index.mjs";
3
- import { type PolarAxisConfig } from "../../../../models/axis.mjs";
3
+ import type { ChartsRotationAxisProps, PolarAxisConfig, ChartsRadiusAxisProps } from "../../../../models/axis.mjs";
4
4
  import { type DatasetType } from "../../../../models/seriesType/config.mjs";
5
- export declare function defaultizeAxis<TScale extends ScaleName = ScaleName>(inAxis: MakeOptional<PolarAxisConfig<TScale, any>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined, axisName: 'rotation' | 'radius'): PolarAxisConfig<TScale, any>[];
5
+ export declare function defaultizeAxis<TScale extends ScaleName = ScaleName>(inAxis: MakeOptional<PolarAxisConfig<TScale, any>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined, axisName: 'rotation'): PolarAxisConfig<TScale, any, ChartsRotationAxisProps>[];
6
+ export declare function defaultizeAxis<TScale extends ScaleName = ScaleName>(inAxis: MakeOptional<PolarAxisConfig<TScale, any>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined, axisName: 'radius'): PolarAxisConfig<TScale, any, ChartsRadiusAxisProps>[];
@@ -1,5 +1,6 @@
1
1
  import { type MakeOptional } from '@mui/x-internals/types';
2
2
  import { type ScaleName } from "../../../../models/index.js";
3
- import { type PolarAxisConfig } from "../../../../models/axis.js";
3
+ import type { ChartsRotationAxisProps, PolarAxisConfig, ChartsRadiusAxisProps } from "../../../../models/axis.js";
4
4
  import { type DatasetType } from "../../../../models/seriesType/config.js";
5
- export declare function defaultizeAxis<TScale extends ScaleName = ScaleName>(inAxis: MakeOptional<PolarAxisConfig<TScale, any>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined, axisName: 'rotation' | 'radius'): PolarAxisConfig<TScale, any>[];
5
+ export declare function defaultizeAxis<TScale extends ScaleName = ScaleName>(inAxis: MakeOptional<PolarAxisConfig<TScale, any>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined, axisName: 'rotation'): PolarAxisConfig<TScale, any, ChartsRotationAxisProps>[];
6
+ export declare function defaultizeAxis<TScale extends ScaleName = ScaleName>(inAxis: MakeOptional<PolarAxisConfig<TScale, any>, 'id'>[] | undefined, dataset: Readonly<DatasetType> | undefined, axisName: 'radius'): PolarAxisConfig<TScale, any, ChartsRadiusAxisProps>[];
@@ -1,5 +1,5 @@
1
- import { type AxisConfig } from "../../../../models/axis.mjs";
1
+ import type { ChartsRadialAxisProps, ScaleName, PolarAxisConfig } from "../../../../models/axis.mjs";
2
2
  import { type PolarChartSeriesType } from "../../../../models/seriesType/config.mjs";
3
3
  import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
4
4
  import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.mjs";
5
- export declare const getAxisExtremum: <SeriesType extends PolarChartSeriesType>(axis: AxisConfig, axisDirection: "rotation" | "radius", seriesConfig: ChartSeriesConfig<SeriesType>, axisIndex: number, formattedSeries: ProcessedSeries<SeriesType>) => number[];
5
+ export declare const getAxisExtremum: <SeriesType extends PolarChartSeriesType>(axis: PolarAxisConfig<ScaleName, any, ChartsRadialAxisProps>, axisDirection: "rotation" | "radius", seriesConfig: ChartSeriesConfig<SeriesType>, axisIndex: number, formattedSeries: ProcessedSeries<SeriesType>) => number[];
@@ -1,5 +1,5 @@
1
- import { type AxisConfig } from "../../../../models/axis.js";
1
+ import type { ChartsRadialAxisProps, ScaleName, PolarAxisConfig } from "../../../../models/axis.js";
2
2
  import { type PolarChartSeriesType } from "../../../../models/seriesType/config.js";
3
3
  import { type ChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.js";
4
4
  import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
5
- export declare const getAxisExtremum: <SeriesType extends PolarChartSeriesType>(axis: AxisConfig, axisDirection: "rotation" | "radius", seriesConfig: ChartSeriesConfig<SeriesType>, axisIndex: number, formattedSeries: ProcessedSeries<SeriesType>) => number[];
5
+ export declare const getAxisExtremum: <SeriesType extends PolarChartSeriesType>(axis: PolarAxisConfig<ScaleName, any, ChartsRadialAxisProps>, axisDirection: "rotation" | "radius", seriesConfig: ChartSeriesConfig<SeriesType>, axisIndex: number, formattedSeries: ProcessedSeries<SeriesType>) => number[];
@@ -1,6 +1,11 @@
1
- import { type PolarAxisDefaultized } from "../../../../models/axis.mjs";
1
+ import type { ChartsRadiusAxisProps, ChartsRotationAxisProps, ComputedAxis, ScaleName } from "../../../../models/axis.mjs";
2
2
  /**
3
3
  * For a pointer coordinate, this function returns the value and dataIndex associated.
4
4
  * Returns `-1` if the coordinate does not match a value.
5
5
  */
6
- export declare function getAxisIndex(axisConfig: PolarAxisDefaultized, pointerValue: number): number;
6
+ export declare function getRotationAxisIndex(axisConfig: ComputedAxis<ScaleName, any, ChartsRotationAxisProps>, pointerValue: number): number;
7
+ /**
8
+ * For a pointer coordinate, this function returns the value and dataIndex associated.
9
+ * Returns `-1` if the coordinate does not match a value.
10
+ */
11
+ export declare function getRadiusAxisIndex(axisConfig: ComputedAxis<ScaleName, any, ChartsRadiusAxisProps>, pointerValue: number): number;
@@ -1,6 +1,11 @@
1
- import { type PolarAxisDefaultized } from "../../../../models/axis.js";
1
+ import type { ChartsRadiusAxisProps, ChartsRotationAxisProps, ComputedAxis, ScaleName } from "../../../../models/axis.js";
2
2
  /**
3
3
  * For a pointer coordinate, this function returns the value and dataIndex associated.
4
4
  * Returns `-1` if the coordinate does not match a value.
5
5
  */
6
- export declare function getAxisIndex(axisConfig: PolarAxisDefaultized, pointerValue: number): number;
6
+ export declare function getRotationAxisIndex(axisConfig: ComputedAxis<ScaleName, any, ChartsRotationAxisProps>, pointerValue: number): number;
7
+ /**
8
+ * For a pointer coordinate, this function returns the value and dataIndex associated.
9
+ * Returns `-1` if the coordinate does not match a value.
10
+ */
11
+ export declare function getRadiusAxisIndex(axisConfig: ComputedAxis<ScaleName, any, ChartsRadiusAxisProps>, pointerValue: number): number;
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getAxisIndex = getAxisIndex;
6
+ exports.getRadiusAxisIndex = getRadiusAxisIndex;
7
+ exports.getRotationAxisIndex = getRotationAxisIndex;
7
8
  var _scaleGuards = require("../../../scaleGuards");
8
9
  var _getAsNumber = require("../../../getAsNumber");
9
10
  var _findClosestIndex = require("../../../findClosestIndex");
@@ -12,25 +13,74 @@ var _clampAngle = require("../../../clampAngle");
12
13
  * For a pointer coordinate, this function returns the value and dataIndex associated.
13
14
  * Returns `-1` if the coordinate does not match a value.
14
15
  */
15
- function getAxisIndex(axisConfig, pointerValue) {
16
+ function getRotationAxisIndex(axisConfig, pointerValue) {
16
17
  const {
17
18
  scale,
18
19
  data: axisData,
19
- reverse
20
+ reverse,
21
+ isFullCircle
20
22
  } = axisConfig;
23
+ const [startAngle, endAngle] = scale.range();
24
+ const angleGap = (0, _clampAngle.clampAngleRad)(pointerValue - startAngle);
25
+ const maxAngleGap = (0, _clampAngle.clampAngleRad)(endAngle - startAngle);
26
+ if (!isFullCircle && angleGap > maxAngleGap) {
27
+ // If not a full circle we only consider pointer inside the rotation range.
28
+ return -1;
29
+ }
21
30
  if (!(0, _scaleGuards.isOrdinalScale)(scale)) {
22
31
  if (axisData === undefined) {
23
32
  return -1;
24
33
  }
25
- const angle = scale.range()[0] + (0, _clampAngle.clampAngleRad)(pointerValue - scale.range()[0]);
34
+ const angle = startAngle + (0, _clampAngle.clampAngleRad)(pointerValue - startAngle);
26
35
  const valueAsNumber = (0, _getAsNumber.getAsNumber)(scale.invert(angle));
27
36
  return (0, _findClosestIndex.findClosestIndex)(axisData, valueAsNumber);
28
37
  }
29
38
  if (!axisData) {
30
39
  return -1;
31
40
  }
32
- const angleGap = (0, _clampAngle.clampAngleRad)(pointerValue - scale.range()[0]);
33
- const dataIndex = scale.bandwidth() === 0 ? Math.floor((angleGap + scale.step() / 2) / scale.step()) % axisData.length : Math.floor(angleGap / scale.step());
41
+ let dataIndex;
42
+ if (scale.bandwidth() === 0) {
43
+ dataIndex = Math.floor((angleGap + scale.step() / 2) / scale.step());
44
+ if (isFullCircle) {
45
+ // To show dataIndex 0 when we are before the startAngle
46
+ dataIndex = dataIndex % axisData.length;
47
+ }
48
+ } else {
49
+ dataIndex = Math.floor(angleGap / scale.step());
50
+ }
51
+ if (dataIndex < 0 || dataIndex >= axisData.length) {
52
+ return -1;
53
+ }
54
+ return reverse ? axisData.length - 1 - dataIndex : dataIndex;
55
+ }
56
+
57
+ /**
58
+ * For a pointer coordinate, this function returns the value and dataIndex associated.
59
+ * Returns `-1` if the coordinate does not match a value.
60
+ */
61
+ function getRadiusAxisIndex(axisConfig, pointerValue) {
62
+ const {
63
+ scale,
64
+ data: axisData,
65
+ reverse
66
+ } = axisConfig;
67
+ if (!(0, _scaleGuards.isOrdinalScale)(scale)) {
68
+ if (axisData === undefined) {
69
+ return -1;
70
+ }
71
+ const valueAsNumber = (0, _getAsNumber.getAsNumber)(scale.invert(pointerValue));
72
+ return (0, _findClosestIndex.findClosestIndex)(axisData, valueAsNumber);
73
+ }
74
+ if (!axisData) {
75
+ return -1;
76
+ }
77
+ let dataIndex;
78
+ const distFromStart = pointerValue - Math.min(...scale.range());
79
+ if (scale.bandwidth() === 0) {
80
+ dataIndex = Math.floor((distFromStart + scale.step() / 2) / scale.step());
81
+ } else {
82
+ dataIndex = Math.floor(distFromStart / scale.step());
83
+ }
34
84
  if (dataIndex < 0 || dataIndex >= axisData.length) {
35
85
  return -1;
36
86
  }