Skip to content

Commit

Permalink
Merge pull request #20329 from apache/feat-custom-series
Browse files Browse the repository at this point in the history
feat(custom): use installer for reusable custom series
  • Loading branch information
Ovilia authored Sep 20, 2024
2 parents ce7c122 + 1f6b148 commit 6639b23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ import { Constructor } from './util/clazz';
import { SubTypeDefaulter } from './util/component';
import { registerImpl } from './core/impl';
import { registerPainter } from 'zrender/src/zrender';
import { CustomSeriesRenderItem } from './chart/custom/CustomSeries';
import { registerCustomSeries } from './chart/custom/customSeriesRegister';

const extensions: (EChartsExtensionInstaller | EChartsExtension)[] = [];

Expand Down Expand Up @@ -78,6 +80,9 @@ const extensionRegisters = {
registerChartView(ChartViewClass: typeof ChartView) {
ChartView.registerClass(ChartViewClass);
},
registerCustomSeries(seriesType: string, renderItem: CustomSeriesRenderItem) {
registerCustomSeries(seriesType, renderItem);
},
registerSubTypeDefaulter(componentType: string, defaulter: SubTypeDefaulter) {
ComponentModel.registerSubTypeDefaulter(componentType, defaulter);
},
Expand Down

0 comments on commit 6639b23

Please sign in to comment.