export function optmizeChart(series, currentNums) {
    if (series && currentNums > 300) {
        if (['bar', 'scatter'].includes(series.type)) {
            const o = {};
            o.large = true;
            o.largeThreshold = 300;
            return Object.assign(Object.assign({}, series), o);
        }
        if (['line'].includes(series.type)) {
            const o = {};
            o.showSymbol = false;
            o.sampling = 'average';
            o.showAllSymbol = false;
            return Object.assign(Object.assign({}, series), o);
        }
        return series;
    }
}
//# sourceMappingURL=performance.js.map