META-INF.assets.rjzjh.echarts.src.chart.candlestick.preprocessor.js Maven / Gradle / Ivy
define(function (require) {
var zrUtil = require('zrender/core/util');
return function (option) {
if (!option || !zrUtil.isArray(option.series)) {
return;
}
// Translate 'k' to 'candlestick'.
zrUtil.each(option.series, function (seriesItem) {
if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') {
seriesItem.type = 'candlestick';
}
});
};
});