mariusmuntean / ChartJs.Blazor

Brings Chart.js charts to Blazor
https://www.iheartblazor.com/
MIT License
691 stars 152 forks source link

Support for time-axis #27

Closed NeilMacMullen closed 4 years ago

NeilMacMullen commented 5 years ago

From the jschart documentation https://www.chartjs.org/docs/latest/axes/cartesian/time.html Chart.js can support time-series axes by passing in a Date for the x value. Just wondering if this could be supported in this package? AFAICS, it could be done in a number of ways - simplest would be to derive TimePoint from Point and treat the x coordinate as DateTime.ticks before converting to a JS Date on interop?

SeppPenner commented 5 years ago

If I was you, I would take a look at https://github.com/Joelius300/ChartJSBlazor. This project is maintained at least.

Joelius300 commented 4 years ago

This was added to the library on Jun 23. I'm telling you the date because back then I was a git noob and I don't have a PR to show you. Anyway, it's implemented now and you can see it working live for a line-chart and a bar-chart.