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
116 stars 44 forks source link

Crash when declare callback for Ticks on Bar Chart #78

Closed osnipezzini closed 1 month ago

osnipezzini commented 2 months ago

Describe the bug When i declare a Callback for Ticks, i receive a critical error when loading component.

To Reproduce Steps to reproduce the behavior:

  1. Create a demo project
  2. Follow instructions for add this package on README
  3. Create a empty page amd add a new Bar Chart
  4. On Scales.YAxisId configuration, set a empty CallBack returning a empty array

Expected behavior A bar chart with no labels on ticks (on left)

Screenshots image image

Desktop: