PHP Classes

File: vendors/echarts/src/chart/parallel/parallelVisual.js

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

Contents

Class file image Download
define(function (require) { /** * @payload * @property {string} parallelAxisId * @property {Array.<number>} extent */ return function (ecModel, payload) { ecModel.eachSeriesByType('parallel', function (seriesModel) { var itemStyleModel = seriesModel.getModel('itemStyle.normal'); var globalColors = ecModel.get('color'); var color = itemStyleModel.get('color') || globalColors[seriesModel.seriesIndex % globalColors.length]; var inactiveOpacity = seriesModel.get('inactiveOpacity'); var activeOpacity = seriesModel.get('activeOpacity'); var lineStyle = seriesModel.getModel('lineStyle.normal').getLineStyle(); var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var opacityMap = { normal: lineStyle.opacity, active: activeOpacity, inactive: inactiveOpacity }; coordSys.eachActiveState(data, function (activeState, dataIndex) { data.setItemVisual(dataIndex, 'opacity', opacityMap[activeState]); }); data.setVisual('color', color); }); }; });