erossini / BlazorChartjs

Creates beautiful charts in Blazor using Chart.js. Library for NET6, NET7 and NET8. Source code and demo available.
https://www.puresourcecode.com/dotnet/blazor/blazor-component-for-chartjs/
MIT License
120 stars 44 forks source link

Fix the AddData method. #86

Closed dhazel closed 2 months ago

dhazel commented 2 months ago

Thanks for the great library!

Working with it today, I found a needed fix. I kept this change small so the existing BlazorChartJs api would not be affected. See below.

The AddData method was not working because the ChartJs addData method expects a single value, not an array of values.