PHP Classes

File: vendors/gentelella/vendors/echarts/src/coord/axisModelCommonMixin.js

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

Contents

Class file image Download
define(function (require) { var zrUtil = require('zrender/core/util'); var axisHelper = require('./axisHelper'); function getName(obj) { if (zrUtil.isObject(obj) && obj.value != null) { return obj.value; } else { return obj; } } /** * Get categories */ function getCategories() { return this.get('type') === 'category' && zrUtil.map(this.get('data'), getName); } /** * Format labels * @return {Array.<string>} */ function getFormattedLabels() { return axisHelper.getFormattedLabels( this.axis, this.get('axisLabel.formatter') ); } return { getFormattedLabels: getFormattedLabels, getCategories: getCategories }; });