0👍
OK, it was quite easy. I saw a lot of different technics for that but there is a very basic simple way
await JSRuntime.InvokeVoidAsync("setup", Config.CanvasId, Config);
- Chartjs-Create a pie chart using an array from a data table in chart.js
- Chartjs-Chartjs V3 align legend text
Source:stackexchange.com