PHP Classes

File: vendors/gentelella/vendors/echarts/src/coord/single/singleCreator.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/echarts/src/coord/single/singleCreator.js   Download  
File: vendors/gentelella/vendors/echarts/src/coord/single/singleCreator.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 1,239 bytes
 

Contents

Class file image Download
/** * Single coordinate system creator. */ define(function (require) { var Single = require('./Single'); /** * Create single coordinate system and inject it into seriesModel. * * @param {module:echarts/model/Global} ecModel * @param {module:echarts/ExtensionAPI} api * @return {Array.<module:echarts/coord/single/Single>} */ function create(ecModel, api) { var singles = []; ecModel.eachComponent('singleAxis', function(axisModel, idx) { var single = new Single(axisModel, ecModel, api); single.name = 'single_' + idx; single.resize(axisModel, api); axisModel.coordinateSystem = single; singles.push(single); }); ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'single') { var singleAxisIndex = seriesModel.get('singleAxisIndex'); var axisModel = ecModel.getComponent('singleAxis', singleAxisIndex); seriesModel.coordinateSystem = axisModel.coordinateSystem; } }); return singles; } require('../../CoordinateSystem').register('single', {create: create}); });