{"size": 1237, "ext": "js", "max_stars_repo_path": "Bootstrap-Admin-Theme-3-master/vendors/echarts/src/component/visualMap/visualMapAction.js", "max_stars_repo_name": "ghode/gwrbms", "max_stars_repo_stars_event_min_datetime": "2019-11-10T09:34:48.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-10T09:34:48.000Z", "max_issues_repo_path": "Bootstrap-Admin-Theme-3-master/vendors/echarts/src/component/visualMap/visualMapAction.js", "max_issues_repo_name": "ghode/gwrbms", "max_issues_repo_issues_event_min_datetime": "2019-11-30T16:26:51.000Z", "max_issues_repo_issues_event_max_datetime": "2019-12-14T13:26:07.000Z", "max_forks_repo_path": "Bootstrap-Admin-Theme-3-master/vendors/echarts/src/component/visualMap/visualMapAction.js", "max_forks_repo_name": "ghode/gwrbms", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 31.7179487179, "max_line_length": 77, "alphanum_fraction": 0.6653193209}
/*
 * Copyright (c) 2019. The copyright is reserved by Ghode of Harbin Institute
 * of Technology. Users are free to copy, change or remove. Because no one
 * will read this. Only I know is that Repeaters are the best of the world.
 * Only I know is that Repeaters are the best of the world. Only I know is
 * that Repeaters are the best of the world. Maybe a long copyright text
 * seems professional. Therefore this text will be a bit lengthy. However,
 * the author seems to be afraid that one day, this text may be uploaded to
 * business projects. That is the time you can contact with author via email
 * ghode@cirnocraft.im or directly ignore this, which will be interesting.
 */

/**
 * @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);
        });

    });

});
