PHP Classes

File: vendors/echarts/src/component/dataZoom/dataZoomAction.js

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

Contents

Class file image Download
/** * @file Data zoom action */ define(function(require) { var zrUtil = require('zrender/core/util'); var modelUtil = require('../../util/model'); var echarts = require('../../echarts'); echarts.registerAction('dataZoom', function (payload, ecModel) { var linkedNodesFinder = modelUtil.createLinkedNodesFinder( zrUtil.bind(ecModel.eachComponent, ecModel, 'dataZoom'), modelUtil.eachAxisDim, function (model, dimNames) { return model.get(dimNames.axisIndex); } ); var effectedModels = []; ecModel.eachComponent( {mainType: 'dataZoom', query: payload}, function (model, index) { effectedModels.push.apply( effectedModels, linkedNodesFinder(model).nodes ); } ); zrUtil.each(effectedModels, function (dataZoomModel, index) { dataZoomModel.setRawRange({ start: payload.start, end: payload.end, startValue: payload.startValue, endValue: payload.endValue }); }); }); });