天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
751 B

/**
* echart组件库
*
* @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
* @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
*
*/
define(function (/*require*/) { // component
var self = {};
var _componentLibrary = {}; // echart组件库
/**
* 定义图形实现
* @param {Object} name
* @param {Object} clazz 图形实现
*/
self.define = function (name, clazz) {
_componentLibrary[name] = clazz;
return self;
};
/**
* 获取图形实现
* @param {Object} name
*/
self.get = function (name) {
return _componentLibrary[name];
};
return self;
});