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

StepSize Parameter #38

Closed gmlloves closed 1 year ago

gmlloves commented 1 year ago

Hello, one last thing :)

Can you implement the StepSize?

Scales.YAxisId, new Axis()
{
    Display = false,
    Ticks = new()
    {
       stepSize <-- Add this functionality 
    }
}

The Chartjs' config javascript:

scales: {
    y: {
        ticks: {stepSize: 1}
    }
}

Thank you in advance

erossini commented 1 year ago

I'll add this in the next release

erossini commented 1 year ago

Code is ready. You can see the demo here. I'll release the NuGet package tomorrow.

erossini commented 1 year ago

Is it working? Can I close the issue?

gmlloves commented 1 year ago

Hello Enrico, It works very well... Thank you!

You can close the issue (sorry, for the delay to answer to you) Gaston