PHP Classes

File: vendors/echarts/src/coord/single/AxisModel.js

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

Contents

Class file image Download
define(function (require) { var ComponentModel = require('../../model/Component'); var axisModelCreator = require('../axisModelCreator'); var zrUtil = require('zrender/core/util'); var AxisModel = ComponentModel.extend({ type: 'singleAxis', layoutMode: 'box', /** * @type {module:echarts/coord/single/SingleAxis} */ axis: null, /** * @type {module:echarts/coord/single/Single} */ coordinateSystem: null }); var defaultOption = { left: '5%', top: '5%', right: '5%', bottom: '5%', type: 'value', position: 'bottom', orient: 'horizontal', // singleIndex: 0, axisLine: { show: true, lineStyle: { width: 2, type: 'solid' } }, axisTick: { show: true, length: 6, lineStyle: { width: 2 } }, axisLabel: { show: true, interval: 'auto' }, splitLine: { show: true, lineStyle: { type: 'dashed', opacity: 0.2 } } }; function getAxisType(axisName, option) { return option.type || (option.data ? 'category' : 'value'); } zrUtil.merge(AxisModel.prototype, require('../axisModelCommonMixin')); axisModelCreator('single', AxisModel, getAxisType, defaultOption); return AxisModel; });