We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25132fd commit a9f881cCopy full SHA for a9f881c
src/chart/custom/customSeriesRegister.ts
@@ -0,0 +1,11 @@
1
+import { CustomSeriesRenderItem } from './CustomSeries';
2
+
3
+const customRenderers: {[type: string]: CustomSeriesRenderItem} = {};
4
5
+export function registerCustomSeries(type: string, renderItem: CustomSeriesRenderItem): void {
6
+ customRenderers[type] = renderItem;
7
+}
8
9
+export function getCustomSeries(type: string): CustomSeriesRenderItem {
10
+ return customRenderers[type];
11
0 commit comments