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

Upgrade to .NET 8 & Implement Time Cartesian Axis #64

Closed AnthoDingo closed 6 months ago

AnthoDingo commented 8 months ago

Upgrade to .NET 8 Implement Time Cartesian Axis. Not implemented in this PR : time.parser

erossini commented 8 months ago

Thank you so much for your PR. I'm doing some updates and tests and I will merge it within days. Enrico

erossini commented 8 months ago

Hi! I was testing your code. I noticed the change in the Max and Min from double to string. Now, the animation graph is now looking like the following screenshot

image

Do you mind to create an example for the Time Cartesian Axis?

Thank you so much for your contribution. Enrico

AnthoDingo commented 8 months ago

Hello,

Below a functional example : image

The code I use.

{
    Scales.YAxisId, new Axis()
    {
        Type = "linear",
        BeginAtZero = true,
        Ticks = new Ticks()
        {
            Color = "#666"
        },
            Grid = new Grid()
        {
            Color = "#0000001a"
        },
    }
}
erossini commented 6 months ago

I have just fixed the PR. You added a new class called Colors that was in conflict with a class with the same name in the demo project. Also, I updated the PR with my new changes from the main branch.

Can you add an example how to use the libraries chartjs-adapter-moment and chartjs-plugin-autocolors please? Thank you in advance, Enrico