Closed illumen closed 1 year ago
How would you pass a parameter that G2Plot will parse as an arrow function expression?
F.ex.: formatter?: (valueUpper: any, valueLower: any) => string;
formatter?: (valueUpper: any, valueLower: any) => string;
I discovered the parameter JsConfig which allows the developer to pass javascript code to the config. F.ex. <Gauge ... JsConfig="{ axis: { label: { formatter(v) { return Number(v) * 100; } } } }" />
<Gauge ... JsConfig="{ axis: { label: { formatter(v) { return Number(v) * 100; } } } }" />
How would you pass a parameter that G2Plot will parse as an arrow function expression?
F.ex.:
formatter?: (valueUpper: any, valueLower: any) => string;