PHP Classes

File: vendors/echarts/src/chart/radar/radarLayout.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/echarts/src/chart/radar/radarLayout.js   Download  
File: vendors/echarts/src/chart/radar/radarLayout.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: 933 bytes
 

Contents

Class file image Download
define(function (require) { return function (ecModel, api) { ecModel.eachSeriesByType('radar', function (seriesModel) { var data = seriesModel.getData(); var points = []; var coordSys = seriesModel.coordinateSystem; if (!coordSys) { return; } function pointsConverter(val, idx) { points[idx] = points[idx] || []; points[idx][i] = coordSys.dataToPoint(val, i); } for (var i = 0; i < coordSys.getIndicatorAxes().length; i++) { var dim = data.dimensions[i]; data.each(dim, pointsConverter); } data.each(function (idx) { // Close polygon points[idx][0] && points[idx].push(points[idx][0].slice()); data.setItemLayout(idx, points[idx]); }); }); }; });