mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-03-29 23:02:01 +02:00
Start again
This commit is contained in:
18
vendors/echarts/src/chart/candlestick/preprocessor.js
vendored
Normal file
18
vendors/echarts/src/chart/candlestick/preprocessor.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
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';
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user