PHP Classes

File: vendors/gentelella/vendors/echarts/src/chart/radar/RadarSeries.js

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

Contents

Class file image Download
define(function(require) { 'use strict'; var SeriesModel = require('../../model/Series'); var List = require('../../data/List'); var completeDimensions = require('../../data/helper/completeDimensions'); var zrUtil = require('zrender/core/util'); var RadarSeries = SeriesModel.extend({ type: 'series.radar', dependencies: ['radar'], // Overwrite init: function (option) { RadarSeries.superApply(this, 'init', arguments); // Enable legend selection for each data item // Use a function instead of direct access because data reference may changed this.legendDataProvider = function () { return this._dataBeforeProcessed; }; }, getInitialData: function (option, ecModel) { var data = option.data || []; var dimensions = completeDimensions( [], data, [], 'indicator_' ); var list = new List(dimensions, this); list.initData(data); return list; }, formatTooltip: function (dataIndex) { var value = this.getRawValue(dataIndex); var coordSys = this.coordinateSystem; var indicatorAxes = coordSys.getIndicatorAxes(); return this._data.getName(dataIndex) + '<br />' + zrUtil.map(indicatorAxes, function (axis, idx) { return axis.name + ' : ' + value[idx]; }).join('<br />'); }, defaultOption: { zlevel: 0, z: 2, coordinateSystem: 'radar', legendHoverLink: true, radarIndex: 0, lineStyle: { normal: { width: 2, type: 'solid' } }, label: { normal: { position: 'top' } }, // areaStyle: { // }, // itemStyle: {} symbol: 'emptyCircle', symbolSize: 4 // symbolRotate: null } }); return RadarSeries; });