META-INF.assets.rjzjh.echarts.src.component.axis.parallelAxisAction.js Maven / Gradle / Ivy
define(function (require) {
var echarts = require('../../echarts');
var actionInfo = {
type: 'axisAreaSelect',
event: 'axisAreaSelected',
update: 'updateVisual'
};
/**
* @payload
* @property {string} parallelAxisId
* @property {Array.>} intervals
*/
echarts.registerAction(actionInfo, function (payload, ecModel) {
ecModel.eachComponent(
{mainType: 'parallelAxis', query: payload},
function (parallelAxisModel) {
parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);
}
);
});
});