mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-04-02 08:42:02 +02:00
Start again
This commit is contained in:
23
vendors/echarts/src/component/visualMap/visualMapAction.js
vendored
Normal file
23
vendors/echarts/src/component/visualMap/visualMapAction.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* @file Data range action
|
||||
*/
|
||||
define(function(require) {
|
||||
|
||||
var echarts = require('../../echarts');
|
||||
|
||||
var actionInfo = {
|
||||
type: 'selectDataRange',
|
||||
event: 'dataRangeSelected',
|
||||
// FIXME use updateView appears wrong
|
||||
update: 'update'
|
||||
};
|
||||
|
||||
echarts.registerAction(actionInfo, function (payload, ecModel) {
|
||||
|
||||
ecModel.eachComponent({mainType: 'visualMap', query: payload}, function (model) {
|
||||
model.setSelected(payload.selected);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user