PHP Classes

File: vendors/gentelella/vendors/echarts/src/chart/themeRiver/themeRiverVisual.js

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

Contents

Class file image Download
define(function (require) { return function (ecModel) { ecModel.eachSeriesByType('themeRiver', function (seriesModel) { var data = seriesModel.getData(); var rawData = seriesModel.getRawData(); var colorList = seriesModel.get('color'); data.each(function (index) { var name = data.getName(index); var rawIndex = data.getRawIndex(index); // use rawData just for drawing legend rawData.setItemVisual( rawIndex, 'color', colorList[(seriesModel.nameMap[name] - 1) % colorList.length] ); }); }); }; });