PHP Classes

File: vendors/gentelella/vendors/echarts/src/coord/parallel/parallelCreator.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/echarts/src/coord/parallel/parallelCreator.js   Download  
File: vendors/gentelella/vendors/echarts/src/coord/parallel/parallelCreator.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,052 bytes
 

Contents

Class file image Download
/** * Parallel coordinate system creater. */ define(function(require) { var Parallel = require('./Parallel'); function create(ecModel, api) { var coordSysList = []; ecModel.eachComponent('parallel', function (parallelModel, idx) { var coordSys = new Parallel(parallelModel, ecModel, api); coordSys.name = 'parallel_' + idx; coordSys.resize(parallelModel, api); parallelModel.coordinateSystem = coordSys; coordSys.model = parallelModel; coordSysList.push(coordSys); }); // Inject the coordinateSystems into seriesModel ecModel.eachSeries(function (seriesModel) { if (seriesModel.get('coordinateSystem') === 'parallel') { var parallelIndex = seriesModel.get('parallelIndex'); seriesModel.coordinateSystem = coordSysList[parallelIndex]; } }); return coordSysList; } require('../../CoordinateSystem').register('parallel', {create: create}); });