PHP Classes

File: vendors/gentelella/vendors/echarts/src/coord/polar/AxisModel.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/echarts/src/coord/polar/AxisModel.js   Download  
File: vendors/gentelella/vendors/echarts/src/coord/polar/AxisModel.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,236 bytes
 

Contents

Class file image Download
define(function(require) { 'use strict'; var zrUtil = require('zrender/core/util'); var ComponentModel = require('../../model/Component'); var axisModelCreator = require('../axisModelCreator'); var PolarAxisModel = ComponentModel.extend({ type: 'polarAxis', /** * @type {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis} */ axis: null }); zrUtil.merge(PolarAxisModel.prototype, require('../axisModelCommonMixin')); var polarAxisDefaultExtendedOption = { angle: { polarIndex: 0, startAngle: 90, clockwise: true, splitNumber: 12, axisLabel: { rotate: false } }, radius: { polarIndex: 0, splitNumber: 5 } }; function getAxisType(axisDim, option) { // Default axis with data is category axis return option.type || (option.data ? 'category' : 'value'); } axisModelCreator('angle', PolarAxisModel, getAxisType, polarAxisDefaultExtendedOption.angle); axisModelCreator('radius', PolarAxisModel, getAxisType, polarAxisDefaultExtendedOption.radius); });