123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import * as zrUtil from 'zrender/lib/core/util.js';
- import { layout, createProgressiveLayout } from '../../layout/barGrid.js';
- import dataSample from '../../processor/dataSample.js';
- import BarSeries from './BarSeries.js';
- import BarView from './BarView.js';
- export function install(registers) {
- registers.registerChartView(BarView);
- registers.registerSeriesModel(BarSeries);
- registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, zrUtil.curry(layout, 'bar'));
-
- registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, createProgressiveLayout('bar'));
-
- registers.registerProcessor(registers.PRIORITY.PROCESSOR.STATISTIC, dataSample('bar'));
-
- registers.registerAction({
- type: 'changeAxisOrder',
- event: 'changeAxisOrder',
- update: 'update'
- }, function (payload, ecModel) {
- var componentType = payload.componentType || 'series';
- ecModel.eachComponent({
- mainType: componentType,
- query: payload
- }, function (componentModel) {
- if (payload.sortInfo) {
- componentModel.axis.setCategorySortInfo(payload.sortInfo);
- }
- });
- });
- }
|