123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- var echarts = require("../../echarts");
- echarts.registerAction('legendScroll', 'legendscroll', function (payload, ecModel) {
- var scrollDataIndex = payload.scrollDataIndex;
- scrollDataIndex != null && ecModel.eachComponent({
- mainType: 'legend',
- subType: 'scroll',
- query: payload
- }, function (legendModel) {
- legendModel.setScrollDataIndex(scrollDataIndex);
- });
- });
|