| 12345678910111213141516 |
- var zrUtil = require("zrender/lib/core/util");
- function _default(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';
- }
- });
- }
- module.exports = _default;
|