PHP Classes

File: vendors/echarts/src/layout/points.js

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

Contents

Class file image Download
define(function (require) { return function (seriesType, ecModel, api) { ecModel.eachSeriesByType(seriesType, function (seriesModel) { var data = seriesModel.getData(); var coordSys = seriesModel.coordinateSystem; if (coordSys) { var dims = coordSys.dimensions; data.each(dims, function (x, y, idx) { var point; if (!isNaN(x) && !isNaN(y)) { point = coordSys.dataToPoint([x, y]); } else { // Also {Array.<number>}, not undefined to avoid if...else... statement point = [NaN, NaN]; } data.setItemLayout(idx, point); }, true); } }); }; });