@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.
- package/BarChart/BarChart.d.mts +1 -2
- package/BarChart/BarChart.d.ts +1 -2
- package/BarChart/BarChart.js +2 -913
- package/BarChart/BarChart.mjs +2 -913
- package/BarChart/seriesConfig/bar/seriesProcessor.js +2 -0
- package/BarChart/seriesConfig/bar/seriesProcessor.mjs +2 -0
- package/CHANGELOG.md +236 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +55 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +55 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.js +94 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +88 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +13 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +13 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.js +86 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.mjs +80 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +18 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +18 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.js +26 -0
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.mjs +16 -0
- package/ChartsAxisHighlightValue/index.d.mts +1 -0
- package/ChartsAxisHighlightValue/index.d.ts +1 -0
- package/ChartsAxisHighlightValue/index.js +16 -0
- package/ChartsAxisHighlightValue/index.mjs +1 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.d.mts +14 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.d.ts +14 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.js +130 -0
- package/ChartsAxisHighlightValue/useAxisHighlightValue.mjs +124 -0
- package/ChartsContainer/ChartsContainer.js +4 -1431
- package/ChartsContainer/ChartsContainer.mjs +4 -1431
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +15 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +15 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.js +56 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.mjs +50 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.mts +6 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.d.ts +6 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.js +5 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.types.mjs +1 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.d.mts +11 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.d.ts +11 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.js +70 -0
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.mjs +64 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.js +104 -0
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.mjs +98 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +9 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.js +98 -0
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.mjs +92 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.d.mts +7 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.d.ts +7 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.js +14 -0
- package/ChartsRadialAxisHighlight/chartsRadialAxisHighlightClasses.mjs +6 -0
- package/ChartsRadialAxisHighlight/index.d.mts +5 -0
- package/ChartsRadialAxisHighlight/index.d.ts +5 -0
- package/ChartsRadialAxisHighlight/index.js +47 -0
- package/ChartsRadialAxisHighlight/index.mjs +4 -0
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -47
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -47
- package/ChartsRadiusAxis/ChartsRadiusAxis.js +20 -16
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +21 -15
- package/ChartsRadiusAxis/index.d.mts +3 -2
- package/ChartsRadiusAxis/index.d.ts +3 -2
- package/ChartsRadiusAxis/index.mjs +3 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -47
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -47
- package/ChartsRotationAxis/ChartsRotationAxis.js +16 -19
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +17 -18
- package/ChartsRotationAxis/index.d.mts +3 -2
- package/ChartsRotationAxis/index.d.ts +3 -2
- package/ChartsRotationAxis/index.mjs +3 -1
- package/ChartsTooltip/useAxesTooltip.d.mts +1 -1
- package/ChartsTooltip/useAxesTooltip.d.ts +1 -1
- package/ChartsTooltip/useAxesTooltip.js +11 -2
- package/ChartsTooltip/useAxesTooltip.mjs +12 -3
- package/ChartsXAxis/useAxisTicksProps.d.mts +162 -81
- package/ChartsXAxis/useAxisTicksProps.d.ts +162 -81
- package/ChartsYAxis/useAxisTicksProps.d.mts +162 -81
- package/ChartsYAxis/useAxisTicksProps.d.ts +162 -81
- package/LICENSE +2 -0
- package/LineChart/LineChart.js +2 -913
- package/LineChart/LineChart.mjs +2 -913
- package/LineChart/seriesConfig/curveEvaluation.d.mts +19 -1
- package/LineChart/seriesConfig/curveEvaluation.d.ts +19 -1
- package/LineChart/seriesConfig/curveEvaluation.js +132 -0
- package/LineChart/seriesConfig/curveEvaluation.mjs +131 -0
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.js +2 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.mjs +2 -1
- package/LineChart/seriesConfig/seriesProcessor.js +4 -0
- package/LineChart/seriesConfig/seriesProcessor.mjs +4 -0
- package/LineChart/useAreaPlotData.js +4 -0
- package/LineChart/useAreaPlotData.mjs +4 -0
- package/LineChart/useLinePlotData.js +2 -0
- package/LineChart/useLinePlotData.mjs +2 -0
- package/LineChart/useMarkPlotData.js +2 -0
- package/LineChart/useMarkPlotData.mjs +2 -0
- package/RadarChart/RadarGrid/CircularRadarStripes.js +2 -3
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +2 -3
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.mjs +2 -2
- package/ScatterChart/FocusedScatterMark.js +10 -24
- package/ScatterChart/FocusedScatterMark.mjs +10 -24
- package/ScatterChart/HighlightedScatterMark.d.mts +11 -0
- package/ScatterChart/HighlightedScatterMark.d.ts +11 -0
- package/ScatterChart/HighlightedScatterMark.js +68 -0
- package/ScatterChart/HighlightedScatterMark.mjs +62 -0
- package/ScatterChart/ScatterChart.d.mts +1 -2
- package/ScatterChart/ScatterChart.d.ts +1 -2
- package/ScatterChart/ScatterChart.js +2 -913
- package/ScatterChart/ScatterChart.mjs +2 -913
- package/ScatterChart/index.d.mts +1 -0
- package/ScatterChart/index.d.ts +1 -0
- package/ScatterChart/index.js +12 -0
- package/ScatterChart/index.mjs +1 -0
- package/ScatterChart/scatterClasses.d.mts +3 -1
- package/ScatterChart/scatterClasses.d.ts +3 -1
- package/ScatterChart/scatterClasses.js +3 -2
- package/ScatterChart/scatterClasses.mjs +3 -2
- package/ScatterChart/useScatterChartProps.js +3 -1
- package/ScatterChart/useScatterChartProps.mjs +3 -1
- package/ScatterChart/useScatterItemPosition.d.mts +16 -0
- package/ScatterChart/useScatterItemPosition.d.ts +16 -0
- package/ScatterChart/useScatterItemPosition.js +47 -0
- package/ScatterChart/useScatterItemPosition.mjs +41 -0
- package/SparkLineChart/SparkLineChart.js +2 -913
- package/SparkLineChart/SparkLineChart.mjs +2 -913
- package/hooks/useAxis.d.mts +3 -3
- package/hooks/useAxis.d.ts +3 -3
- package/hooks/useAxisSystem.d.mts +1 -1
- package/hooks/useAxisSystem.d.ts +1 -1
- package/hooks/useAxisSystem.js +1 -1
- package/hooks/useAxisSystem.mjs +1 -1
- package/index.d.mts +2 -0
- package/index.d.ts +2 -0
- package/index.js +25 -1
- package/index.mjs +3 -1
- package/internals/getRingPath.d.mts +16 -0
- package/internals/getRingPath.d.ts +16 -0
- package/internals/getRingPath.js +39 -0
- package/internals/getRingPath.mjs +33 -0
- package/internals/index.d.mts +8 -1
- package/internals/index.d.ts +8 -1
- package/internals/index.js +67 -0
- package/internals/index.mjs +7 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +4 -2
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +4 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +8 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.mts +6 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +6 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +48 -36
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +47 -36
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +77 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +77 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +152 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +152 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +4 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +4 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.mts +3 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +3 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.mts +7 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +7 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +56 -6
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.mjs +54 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.mts +2 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +2 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.mjs +2 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.mts +4 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +23 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +23 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +73 -12
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +74 -12
- package/models/axis.d.mts +79 -31
- package/models/axis.d.ts +79 -31
- package/models/axis.js +5 -1
- package/models/axis.mjs +5 -1
- package/models/seriesType/line.d.mts +6 -6
- package/models/seriesType/line.d.ts +6 -6
- 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").
|
|
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").
|
|
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").
|
|
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").
|
|
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 {
|
|
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<
|
|
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 {
|
|
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<
|
|
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 {
|
|
2
|
-
import { type ChartsAxisProps, type ChartsRotationAxisProps, type ChartsRadiusAxisProps, type
|
|
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?:
|
|
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?:
|
|
22
|
+
axis?: PolarAxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
|
|
26
23
|
axisDirection: 'rotation';
|
|
27
24
|
}): ComputeResult<ChartsRotationAxisProps>;
|
|
28
25
|
export {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type ChartsAxisProps, type ChartsRotationAxisProps, type ChartsRadiusAxisProps, type
|
|
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?:
|
|
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?:
|
|
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 {
|
|
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'
|
|
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 {
|
|
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'
|
|
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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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.
|
|
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
|
|
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 =
|
|
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
|
-
|
|
33
|
-
|
|
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
|
}
|