fix: handle added ctx
This commit is contained in:
parent
1d8a97bdc0
commit
326dcee3d7
@ -31,8 +31,8 @@ export class Pie extends G2PlotChart {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
getProps({ data, general, advanced, fieldProps }: RenderProps) {
|
getProps({ data, general, advanced, fieldProps, ctx }: RenderProps) {
|
||||||
const props = super.getProps({ data, general, advanced, fieldProps });
|
const props = super.getProps({ data, general, advanced, fieldProps, ctx });
|
||||||
return {
|
return {
|
||||||
...props,
|
...props,
|
||||||
tooltip: (d, index: number, data, column: any) => {
|
tooltip: (d, index: number, data, column: any) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user