PHP Classes

File: vendors/gentelella/vendors/echarts/src/coord/cartesian/axisLabelInterval.js

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

Contents

Class file image Download
/** * Helper function for axisLabelInterval calculation */ define(function(require) { 'use strict'; var zrUtil = require('zrender/core/util'); var axisHelper = require('../axisHelper'); return function (axis) { var axisModel = axis.model; var labelModel = axisModel.getModel('axisLabel'); var labelInterval = labelModel.get('interval'); if (!(axis.type === 'category' && labelInterval === 'auto')) { return labelInterval === 'auto' ? 0 : labelInterval; } return axisHelper.getAxisLabelInterval( zrUtil.map(axis.scale.getTicks(), axis.dataToCoord, axis), axisModel.getFormattedLabels(), labelModel.getModel('textStyle').getFont(), axis.isHorizontal() ); }; });