1 Star 0 Fork 0

大黄人/echarts

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CoordinateSystem.js 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
lang 提交于 2015-12-26 15:06 +08:00 . Fix category get when data is a string
define(function(require) {
'use strict';
// var zrUtil = require('zrender/core/util');
var coordinateSystemCreators = {};
function CoordinateSystemManager() {
this._coordinateSystems = {};
this._coordinateSystemsList = [];
}
CoordinateSystemManager.prototype = {
constructor: CoordinateSystemManager,
update: function (ecModel, api) {
var coordinateSystems = {};
for (var type in coordinateSystemCreators) {
coordinateSystems[type] = coordinateSystemCreators[type].create(ecModel, api);
}
this._coordinateSystems = coordinateSystems;
},
get: function (type, idx) {
var list = this._coordinateSystems[type];
if (list) {
return list[idx || 0];
}
}
};
CoordinateSystemManager.register = function (type, coordinateSystemCreator) {
coordinateSystemCreators[type] = coordinateSystemCreator;
};
return CoordinateSystemManager;
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mx41/echarts.git
git@gitee.com:mx41/echarts.git
mx41
echarts
echarts
master

搜索帮助