-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Time Cartesian Axis #32
Comments
Could you change your code using ChartJs 4.1.0 please? |
I added an example using Chart.js 4.1.0 ( and date.fns) here: https://codepen.io/poulsenj/pen/ZEjXNJm |
Added another Chart.js 4.1.0 example using Javascript dates instead of strings. You can then disable Chart.js parsing date strings and get better performance with large data sets. https://codepen.io/poulsenj/pen/vYaewQx |
Good thank you. I'll have a look and let you know when the implementation is done. |
Hey, |
Hi,
Commit a2961e7 implementing Time Cartesian Axis has new struct
Enums.TimeUnit, two new classes
Models.Common.AxesTime/Models.Common.AxesTimeFormats, and an addition of
property AxesTime to class Models.Common.Axis. The current release has
those changes, except for the addition of property AxesTime to class
Models.Common.Axis. So how is AxesTime brought into play?
Johannes
…On Mon, Apr 22, 2024 at 4:21 PM Enrico Rossini ***@***.***> wrote:
Hey,
with the latest version of the component, now you can add time axis. Let
me know if it is working for you.
Enrico
—
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALCSNGVYALNGNDM6Z45G2T3Y6UMIFAVCNFSM6AAAAAASX42NRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRZGYZTGNBQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I got it working by adding property AxesTime to class Models.Common.Axis and adding file wwwroot/lib/Chart.js/moment.js as the chartjs-adapter-moment.js is part of the package, but moment.js itself is not. So moment.js should either be packed as well or included in the users project. |
Feature request for handling of large data series where x value is a DateTime. Requires moment.js.
Example: https://codepen.io/toxy1337/pen/rQRqrw
The text was updated successfully, but these errors were encountered: