ant-design-blazor / ant-design-charts-blazor

A Blazor chart library, based on G2Plot
https://ant-design-blazor.github.io/ant-design-charts-blazor/
Apache License 2.0
178 stars 40 forks source link

Pass parameters that are arrow function expressions. #107

Closed illumen closed 1 year ago

illumen commented 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;

illumen commented 1 year ago

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; } } } }" />