@mui/x-charts 9.0.0-beta.0 → 9.0.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/CHANGELOG.md +267 -1
- package/ChartsLayerContainer/ChartsLayerContainer.js +0 -3
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +0 -3
- package/ChartsTooltip/ChartsAxisTooltipContent.js +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.js +3 -0
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +3 -0
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/useAxesTooltip.d.mts +17 -7
- package/ChartsTooltip/useAxesTooltip.d.ts +17 -7
- package/ChartsTooltip/useAxesTooltip.js +36 -4
- package/ChartsTooltip/useAxesTooltip.mjs +36 -4
- package/ChartsTooltip/useItemTooltip.d.mts +1 -1
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +11 -11
- package/ChartsXAxis/useAxisTicksProps.d.ts +11 -11
- package/ChartsYAxis/useAxisTicksProps.d.mts +11 -11
- package/ChartsYAxis/useAxisTicksProps.d.ts +11 -11
- package/LineChart/LineHighlightPlot.js +3 -2
- package/LineChart/LineHighlightPlot.mjs +3 -2
- package/LineChart/useLinePlotData.js +1 -1
- package/LineChart/useLinePlotData.mjs +1 -1
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/configInit.mjs +2 -2
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +2 -0
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +2 -0
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +2 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +2 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.mjs +2 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +12 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +12 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +8 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.mjs +10 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.mts +10 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +10 -1
- package/locales/elGR.d.mts +4 -0
- package/locales/elGR.d.ts +4 -0
- package/locales/elGR.js +5 -1
- package/locales/elGR.mjs +5 -1
- package/locales/enUS.d.mts +4 -0
- package/locales/enUS.d.ts +4 -0
- package/locales/enUS.js +5 -1
- package/locales/enUS.mjs +5 -1
- package/locales/frFR.d.mts +4 -0
- package/locales/frFR.d.ts +4 -0
- package/locales/frFR.js +5 -1
- package/locales/frFR.mjs +5 -1
- package/locales/nbNO.d.mts +4 -0
- package/locales/nbNO.d.ts +4 -0
- package/locales/nbNO.js +5 -1
- package/locales/nbNO.mjs +5 -1
- package/locales/ptBR.d.mts +4 -0
- package/locales/ptBR.d.ts +4 -0
- package/locales/ptBR.js +5 -1
- package/locales/ptBR.mjs +5 -1
- package/locales/ptPT.d.mts +4 -0
- package/locales/ptPT.d.ts +4 -0
- package/locales/ptPT.js +5 -1
- package/locales/ptPT.mjs +5 -1
- package/locales/svSE.d.mts +4 -0
- package/locales/svSE.d.ts +4 -0
- package/locales/svSE.js +5 -1
- package/locales/svSE.mjs +5 -1
- package/locales/utils/chartsLocaleTextApi.d.mts +8 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +8 -0
- package/locales/utils/getChartsLocalization.d.mts +4 -0
- package/locales/utils/getChartsLocalization.d.ts +4 -0
- package/package.json +7 -7
- package/tests/web-components.mjs +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AxisId } from "../../../../models/axis.mjs";
|
|
2
|
+
import { type SeriesId } from "../../../../models/seriesType/common.mjs";
|
|
2
3
|
import type { ExtremumFilter } from "./useChartCartesianAxis.types.mjs";
|
|
3
4
|
export type ZoomData = {
|
|
4
5
|
/**
|
|
@@ -96,8 +97,16 @@ export interface ZoomSliderOptions {
|
|
|
96
97
|
showTooltip?: ZoomSliderShowTooltip;
|
|
97
98
|
/**
|
|
98
99
|
* If `true`, a preview of the chart will be shown in the slider.
|
|
100
|
+
* Can also be an object to configure which series are shown in the preview.
|
|
99
101
|
*/
|
|
100
|
-
preview?: boolean;
|
|
102
|
+
preview?: boolean | ZoomSliderPreviewOptions;
|
|
103
|
+
}
|
|
104
|
+
export interface ZoomSliderPreviewOptions {
|
|
105
|
+
/**
|
|
106
|
+
* The series IDs to display in the preview.
|
|
107
|
+
* If not provided, all series attached to this axis will be shown.
|
|
108
|
+
*/
|
|
109
|
+
seriesIds?: SeriesId[];
|
|
101
110
|
}
|
|
102
111
|
export type ZoomAxisFilters = Record<AxisId, ExtremumFilter>;
|
|
103
112
|
export type ZoomMap = Map<AxisId, ZoomData>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AxisId } from "../../../../models/axis.js";
|
|
2
|
+
import { type SeriesId } from "../../../../models/seriesType/common.js";
|
|
2
3
|
import type { ExtremumFilter } from "./useChartCartesianAxis.types.js";
|
|
3
4
|
export type ZoomData = {
|
|
4
5
|
/**
|
|
@@ -96,8 +97,16 @@ export interface ZoomSliderOptions {
|
|
|
96
97
|
showTooltip?: ZoomSliderShowTooltip;
|
|
97
98
|
/**
|
|
98
99
|
* If `true`, a preview of the chart will be shown in the slider.
|
|
100
|
+
* Can also be an object to configure which series are shown in the preview.
|
|
99
101
|
*/
|
|
100
|
-
preview?: boolean;
|
|
102
|
+
preview?: boolean | ZoomSliderPreviewOptions;
|
|
103
|
+
}
|
|
104
|
+
export interface ZoomSliderPreviewOptions {
|
|
105
|
+
/**
|
|
106
|
+
* The series IDs to display in the preview.
|
|
107
|
+
* If not provided, all series attached to this axis will be shown.
|
|
108
|
+
*/
|
|
109
|
+
seriesIds?: SeriesId[];
|
|
101
110
|
}
|
|
102
111
|
export type ZoomAxisFilters = Record<AxisId, ExtremumFilter>;
|
|
103
112
|
export type ZoomMap = Map<AxisId, ZoomData>;
|
package/locales/elGR.d.mts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const elGR: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/elGR.d.ts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const elGR: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/elGR.js
CHANGED
|
@@ -204,11 +204,15 @@ const elGRLocaleText = exports.elGRLocaleText = {
|
|
|
204
204
|
// high,
|
|
205
205
|
// low,
|
|
206
206
|
// close,
|
|
207
|
+
// formattedOpen,
|
|
208
|
+
// formattedHigh,
|
|
209
|
+
// formattedLow,
|
|
210
|
+
// formattedClose,
|
|
207
211
|
// formattedDate,
|
|
208
212
|
// seriesLabel
|
|
209
213
|
// }) {
|
|
210
214
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
211
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
215
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
212
216
|
// },
|
|
213
217
|
};
|
|
214
218
|
const elGR = exports.elGR = (0, _getChartsLocalization.getChartsLocalization)(elGRLocaleText);
|
package/locales/elGR.mjs
CHANGED
|
@@ -198,11 +198,15 @@ export const elGRLocaleText = {
|
|
|
198
198
|
// high,
|
|
199
199
|
// low,
|
|
200
200
|
// close,
|
|
201
|
+
// formattedOpen,
|
|
202
|
+
// formattedHigh,
|
|
203
|
+
// formattedLow,
|
|
204
|
+
// formattedClose,
|
|
201
205
|
// formattedDate,
|
|
202
206
|
// seriesLabel
|
|
203
207
|
// }) {
|
|
204
208
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
205
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
209
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
206
210
|
// },
|
|
207
211
|
};
|
|
208
212
|
export const elGR = getChartsLocalization(elGRLocaleText);
|
package/locales/enUS.d.mts
CHANGED
|
@@ -185,6 +185,10 @@ export declare const enUS: {
|
|
|
185
185
|
high: number | null;
|
|
186
186
|
low: number | null;
|
|
187
187
|
close: number | null;
|
|
188
|
+
formattedOpen: string | null;
|
|
189
|
+
formattedHigh: string | null;
|
|
190
|
+
formattedLow: string | null;
|
|
191
|
+
formattedClose: string | null;
|
|
188
192
|
date: Date | null;
|
|
189
193
|
formattedDate: string;
|
|
190
194
|
seriesLabel?: string;
|
package/locales/enUS.d.ts
CHANGED
|
@@ -185,6 +185,10 @@ export declare const enUS: {
|
|
|
185
185
|
high: number | null;
|
|
186
186
|
low: number | null;
|
|
187
187
|
close: number | null;
|
|
188
|
+
formattedOpen: string | null;
|
|
189
|
+
formattedHigh: string | null;
|
|
190
|
+
formattedLow: string | null;
|
|
191
|
+
formattedClose: string | null;
|
|
188
192
|
date: Date | null;
|
|
189
193
|
formattedDate: string;
|
|
190
194
|
seriesLabel?: string;
|
package/locales/enUS.js
CHANGED
|
@@ -204,11 +204,15 @@ const enUSLocaleText = exports.enUSLocaleText = {
|
|
|
204
204
|
high,
|
|
205
205
|
low,
|
|
206
206
|
close,
|
|
207
|
+
formattedOpen,
|
|
208
|
+
formattedHigh,
|
|
209
|
+
formattedLow,
|
|
210
|
+
formattedClose,
|
|
207
211
|
formattedDate,
|
|
208
212
|
seriesLabel
|
|
209
213
|
}) {
|
|
210
214
|
const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
211
|
-
return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
215
|
+
return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
212
216
|
}
|
|
213
217
|
};
|
|
214
218
|
const DEFAULT_LOCALE = exports.DEFAULT_LOCALE = enUSLocaleText;
|
package/locales/enUS.mjs
CHANGED
|
@@ -199,11 +199,15 @@ export const enUSLocaleText = {
|
|
|
199
199
|
high,
|
|
200
200
|
low,
|
|
201
201
|
close,
|
|
202
|
+
formattedOpen,
|
|
203
|
+
formattedHigh,
|
|
204
|
+
formattedLow,
|
|
205
|
+
formattedClose,
|
|
202
206
|
formattedDate,
|
|
203
207
|
seriesLabel
|
|
204
208
|
}) {
|
|
205
209
|
const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
206
|
-
return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
210
|
+
return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
207
211
|
}
|
|
208
212
|
};
|
|
209
213
|
export const DEFAULT_LOCALE = enUSLocaleText;
|
package/locales/frFR.d.mts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const frFR: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/frFR.d.ts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const frFR: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/frFR.js
CHANGED
|
@@ -204,11 +204,15 @@ const frFRLocalText = exports.frFRLocalText = {
|
|
|
204
204
|
// high,
|
|
205
205
|
// low,
|
|
206
206
|
// close,
|
|
207
|
+
// formattedOpen,
|
|
208
|
+
// formattedHigh,
|
|
209
|
+
// formattedLow,
|
|
210
|
+
// formattedClose,
|
|
207
211
|
// formattedDate,
|
|
208
212
|
// seriesLabel
|
|
209
213
|
// }) {
|
|
210
214
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
211
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
215
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
212
216
|
// },
|
|
213
217
|
};
|
|
214
218
|
const frFR = exports.frFR = (0, _getChartsLocalization.getChartsLocalization)(frFRLocalText);
|
package/locales/frFR.mjs
CHANGED
|
@@ -198,11 +198,15 @@ export const frFRLocalText = {
|
|
|
198
198
|
// high,
|
|
199
199
|
// low,
|
|
200
200
|
// close,
|
|
201
|
+
// formattedOpen,
|
|
202
|
+
// formattedHigh,
|
|
203
|
+
// formattedLow,
|
|
204
|
+
// formattedClose,
|
|
201
205
|
// formattedDate,
|
|
202
206
|
// seriesLabel
|
|
203
207
|
// }) {
|
|
204
208
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
205
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
209
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
206
210
|
// },
|
|
207
211
|
};
|
|
208
212
|
export const frFR = getChartsLocalization(frFRLocalText);
|
package/locales/nbNO.d.mts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const nbNO: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/nbNO.d.ts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const nbNO: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/nbNO.js
CHANGED
|
@@ -204,11 +204,15 @@ const nbNOLocaleText = exports.nbNOLocaleText = {
|
|
|
204
204
|
// high,
|
|
205
205
|
// low,
|
|
206
206
|
// close,
|
|
207
|
+
// formattedOpen,
|
|
208
|
+
// formattedHigh,
|
|
209
|
+
// formattedLow,
|
|
210
|
+
// formattedClose,
|
|
207
211
|
// formattedDate,
|
|
208
212
|
// seriesLabel
|
|
209
213
|
// }) {
|
|
210
214
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
211
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
215
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
212
216
|
// },
|
|
213
217
|
};
|
|
214
218
|
const nbNO = exports.nbNO = (0, _getChartsLocalization.getChartsLocalization)(nbNOLocaleText);
|
package/locales/nbNO.mjs
CHANGED
|
@@ -198,11 +198,15 @@ export const nbNOLocaleText = {
|
|
|
198
198
|
// high,
|
|
199
199
|
// low,
|
|
200
200
|
// close,
|
|
201
|
+
// formattedOpen,
|
|
202
|
+
// formattedHigh,
|
|
203
|
+
// formattedLow,
|
|
204
|
+
// formattedClose,
|
|
201
205
|
// formattedDate,
|
|
202
206
|
// seriesLabel
|
|
203
207
|
// }) {
|
|
204
208
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
205
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
209
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
206
210
|
// },
|
|
207
211
|
};
|
|
208
212
|
export const nbNO = getChartsLocalization(nbNOLocaleText);
|
package/locales/ptBR.d.mts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const ptBR: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/ptBR.d.ts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const ptBR: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/ptBR.js
CHANGED
|
@@ -204,11 +204,15 @@ const ptBRLocaleText = exports.ptBRLocaleText = {
|
|
|
204
204
|
// high,
|
|
205
205
|
// low,
|
|
206
206
|
// close,
|
|
207
|
+
// formattedOpen,
|
|
208
|
+
// formattedHigh,
|
|
209
|
+
// formattedLow,
|
|
210
|
+
// formattedClose,
|
|
207
211
|
// formattedDate,
|
|
208
212
|
// seriesLabel
|
|
209
213
|
// }) {
|
|
210
214
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
211
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
215
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
212
216
|
// },
|
|
213
217
|
};
|
|
214
218
|
const ptBR = exports.ptBR = (0, _getChartsLocalization.getChartsLocalization)(ptBRLocaleText);
|
package/locales/ptBR.mjs
CHANGED
|
@@ -198,11 +198,15 @@ export const ptBRLocaleText = {
|
|
|
198
198
|
// high,
|
|
199
199
|
// low,
|
|
200
200
|
// close,
|
|
201
|
+
// formattedOpen,
|
|
202
|
+
// formattedHigh,
|
|
203
|
+
// formattedLow,
|
|
204
|
+
// formattedClose,
|
|
201
205
|
// formattedDate,
|
|
202
206
|
// seriesLabel
|
|
203
207
|
// }) {
|
|
204
208
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
205
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
209
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
206
210
|
// },
|
|
207
211
|
};
|
|
208
212
|
export const ptBR = getChartsLocalization(ptBRLocaleText);
|
package/locales/ptPT.d.mts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const ptPT: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/ptPT.d.ts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const ptPT: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/ptPT.js
CHANGED
|
@@ -203,11 +203,15 @@ const ptPTLocaleText = exports.ptPTLocaleText = {
|
|
|
203
203
|
// high,
|
|
204
204
|
// low,
|
|
205
205
|
// close,
|
|
206
|
+
// formattedOpen,
|
|
207
|
+
// formattedHigh,
|
|
208
|
+
// formattedLow,
|
|
209
|
+
// formattedClose,
|
|
206
210
|
// formattedDate,
|
|
207
211
|
// seriesLabel
|
|
208
212
|
// }) {
|
|
209
213
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
210
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
214
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
211
215
|
// },
|
|
212
216
|
};
|
|
213
217
|
const ptPT = exports.ptPT = (0, _getChartsLocalization.getChartsLocalization)(ptPTLocaleText);
|
package/locales/ptPT.mjs
CHANGED
|
@@ -197,11 +197,15 @@ export const ptPTLocaleText = {
|
|
|
197
197
|
// high,
|
|
198
198
|
// low,
|
|
199
199
|
// close,
|
|
200
|
+
// formattedOpen,
|
|
201
|
+
// formattedHigh,
|
|
202
|
+
// formattedLow,
|
|
203
|
+
// formattedClose,
|
|
200
204
|
// formattedDate,
|
|
201
205
|
// seriesLabel
|
|
202
206
|
// }) {
|
|
203
207
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
204
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
208
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
205
209
|
// },
|
|
206
210
|
};
|
|
207
211
|
export const ptPT = getChartsLocalization(ptPTLocaleText);
|
package/locales/svSE.d.mts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const svSE: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/svSE.d.ts
CHANGED
|
@@ -184,6 +184,10 @@ export declare const svSE: {
|
|
|
184
184
|
high: number | null;
|
|
185
185
|
low: number | null;
|
|
186
186
|
close: number | null;
|
|
187
|
+
formattedOpen: string | null;
|
|
188
|
+
formattedHigh: string | null;
|
|
189
|
+
formattedLow: string | null;
|
|
190
|
+
formattedClose: string | null;
|
|
187
191
|
date: Date | null;
|
|
188
192
|
formattedDate: string;
|
|
189
193
|
seriesLabel?: string;
|
package/locales/svSE.js
CHANGED
|
@@ -206,11 +206,15 @@ const svSELocaleText = exports.svSELocaleText = {
|
|
|
206
206
|
// high,
|
|
207
207
|
// low,
|
|
208
208
|
// close,
|
|
209
|
+
// formattedOpen,
|
|
210
|
+
// formattedHigh,
|
|
211
|
+
// formattedLow,
|
|
212
|
+
// formattedClose,
|
|
209
213
|
// formattedDate,
|
|
210
214
|
// seriesLabel
|
|
211
215
|
// }) {
|
|
212
216
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
213
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
217
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
214
218
|
// },
|
|
215
219
|
};
|
|
216
220
|
const svSE = exports.svSE = (0, _getChartsLocalization.getChartsLocalization)(svSELocaleText);
|
package/locales/svSE.mjs
CHANGED
|
@@ -200,11 +200,15 @@ export const svSELocaleText = {
|
|
|
200
200
|
// high,
|
|
201
201
|
// low,
|
|
202
202
|
// close,
|
|
203
|
+
// formattedOpen,
|
|
204
|
+
// formattedHigh,
|
|
205
|
+
// formattedLow,
|
|
206
|
+
// formattedClose,
|
|
203
207
|
// formattedDate,
|
|
204
208
|
// seriesLabel
|
|
205
209
|
// }) {
|
|
206
210
|
// const hasValues = open !== null && high !== null && low !== null && close !== null;
|
|
207
|
-
// return [formattedDate, seriesLabel, hasValues ? `Open: ${open}, High: ${high}, Low: ${low}, Close: ${close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
211
|
+
// return [formattedDate, seriesLabel, hasValues ? `Open: ${formattedOpen ?? open}, High: ${formattedHigh ?? high}, Low: ${formattedLow ?? low}, Close: ${formattedClose ?? close}` : this.a11yNoValue].filter(Boolean).join(this.a11yConnector);
|
|
208
212
|
// },
|
|
209
213
|
};
|
|
210
214
|
export const svSE = getChartsLocalization(svSELocaleText);
|
|
@@ -607,6 +607,10 @@ export interface ChartsLocaleText {
|
|
|
607
607
|
* @param {number|null} params.high - The high value.
|
|
608
608
|
* @param {number|null} params.low - The low value.
|
|
609
609
|
* @param {number|null} params.close - The close value.
|
|
610
|
+
* @param {string|null} params.formattedOpen - The formatted open value.
|
|
611
|
+
* @param {string|null} params.formattedHigh - The formatted high value.
|
|
612
|
+
* @param {string|null} params.formattedLow - The formatted low value.
|
|
613
|
+
* @param {string|null} params.formattedClose - The formatted close value.
|
|
610
614
|
* @param {Date|null} params.date - The date associated to the candle value.
|
|
611
615
|
* @param {string} params.formattedDate - The formatted date value.
|
|
612
616
|
* @param {string} [params.seriesLabel] - An optional label for the series.
|
|
@@ -617,6 +621,10 @@ export interface ChartsLocaleText {
|
|
|
617
621
|
high: number | null;
|
|
618
622
|
low: number | null;
|
|
619
623
|
close: number | null;
|
|
624
|
+
formattedOpen: string | null;
|
|
625
|
+
formattedHigh: string | null;
|
|
626
|
+
formattedLow: string | null;
|
|
627
|
+
formattedClose: string | null;
|
|
620
628
|
date: Date | null;
|
|
621
629
|
formattedDate: string;
|
|
622
630
|
seriesLabel?: string;
|
|
@@ -607,6 +607,10 @@ export interface ChartsLocaleText {
|
|
|
607
607
|
* @param {number|null} params.high - The high value.
|
|
608
608
|
* @param {number|null} params.low - The low value.
|
|
609
609
|
* @param {number|null} params.close - The close value.
|
|
610
|
+
* @param {string|null} params.formattedOpen - The formatted open value.
|
|
611
|
+
* @param {string|null} params.formattedHigh - The formatted high value.
|
|
612
|
+
* @param {string|null} params.formattedLow - The formatted low value.
|
|
613
|
+
* @param {string|null} params.formattedClose - The formatted close value.
|
|
610
614
|
* @param {Date|null} params.date - The date associated to the candle value.
|
|
611
615
|
* @param {string} params.formattedDate - The formatted date value.
|
|
612
616
|
* @param {string} [params.seriesLabel] - An optional label for the series.
|
|
@@ -617,6 +621,10 @@ export interface ChartsLocaleText {
|
|
|
617
621
|
high: number | null;
|
|
618
622
|
low: number | null;
|
|
619
623
|
close: number | null;
|
|
624
|
+
formattedOpen: string | null;
|
|
625
|
+
formattedHigh: string | null;
|
|
626
|
+
formattedLow: string | null;
|
|
627
|
+
formattedClose: string | null;
|
|
620
628
|
date: Date | null;
|
|
621
629
|
formattedDate: string;
|
|
622
630
|
seriesLabel?: string;
|
|
@@ -188,6 +188,10 @@ export declare const getChartsLocalization: (chartsTranslations: Partial<ChartsL
|
|
|
188
188
|
high: number | null;
|
|
189
189
|
low: number | null;
|
|
190
190
|
close: number | null;
|
|
191
|
+
formattedOpen: string | null;
|
|
192
|
+
formattedHigh: string | null;
|
|
193
|
+
formattedLow: string | null;
|
|
194
|
+
formattedClose: string | null;
|
|
191
195
|
date: Date | null;
|
|
192
196
|
formattedDate: string;
|
|
193
197
|
seriesLabel?: string;
|
|
@@ -188,6 +188,10 @@ export declare const getChartsLocalization: (chartsTranslations: Partial<ChartsL
|
|
|
188
188
|
high: number | null;
|
|
189
189
|
low: number | null;
|
|
190
190
|
close: number | null;
|
|
191
|
+
formattedOpen: string | null;
|
|
192
|
+
formattedHigh: string | null;
|
|
193
|
+
formattedLow: string | null;
|
|
194
|
+
formattedClose: string | null;
|
|
191
195
|
date: Date | null;
|
|
192
196
|
formattedDate: string;
|
|
193
197
|
seriesLabel?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "9.0.0
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of MUI X Charts components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,21 +28,21 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.28.6",
|
|
31
|
-
"@mui/utils": "
|
|
31
|
+
"@mui/utils": "9.0.0",
|
|
32
32
|
"bezier-easing": "^2.1.0",
|
|
33
33
|
"clsx": "^2.1.1",
|
|
34
34
|
"prop-types": "^15.8.1",
|
|
35
35
|
"reselect": "^5.1.1",
|
|
36
36
|
"use-sync-external-store": "^1.6.0",
|
|
37
|
-
"@mui/x-charts-vendor": "9.0.0
|
|
38
|
-
"@mui/x-internal-gestures": "0.
|
|
39
|
-
"@mui/x-internals": "9.0.0
|
|
37
|
+
"@mui/x-charts-vendor": "^9.0.0",
|
|
38
|
+
"@mui/x-internal-gestures": "^9.0.0",
|
|
39
|
+
"@mui/x-internals": "^9.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@emotion/react": "^11.9.0",
|
|
43
43
|
"@emotion/styled": "^11.8.1",
|
|
44
|
-
"@mui/material": "^
|
|
45
|
-
"@mui/system": "^
|
|
44
|
+
"@mui/material": "^7.3.0 || ^9.0.0",
|
|
45
|
+
"@mui/system": "^7.3.0 || ^9.0.0",
|
|
46
46
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
47
47
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
48
48
|
},
|
package/tests/web-components.mjs
CHANGED