UNPKG

@mui/x-charts

Version:

The community edition of the charts components (MUI X).

12 lines 526 B
import _extends from "@babel/runtime/helpers/esm/extends"; function defaultizeValueFormatter(series, defaultValueFormatter) { var defaultizedSeries = {}; Object.keys(series).forEach(function (seriesId) { var _series$seriesId$valu; defaultizedSeries[seriesId] = _extends({}, series[seriesId], { valueFormatter: (_series$seriesId$valu = series[seriesId].valueFormatter) != null ? _series$seriesId$valu : defaultValueFormatter }); }); return defaultizedSeries; } export default defaultizeValueFormatter;