-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
New chart type: Time Series #1059
Comments
I has developed scatter chart plugin for the chart.js library. It supports datetime scale. |
@dima117 That is very interesting and already solves some problems! Thanks for the tip! |
@arnoutaertgeerts Feel free to contact me, if you will have any questions or suggestions. |
@arnoutaertgeerts, just wondering if you've had a chance to write a series line chart extension? It's something I've been considering doing as well. |
Take a look at v2.0-dev. It has a new time scale that kicks butt |
oh man. thats awesome! i took a glance at the v2.0 milestone but must have overlooked the time scale stuff |
@tannerlinsley could you share a working example of time scale using the latest alpha? |
There should be a time-scale sample in the example directory
|
I tried that, doesn't seem to be working here. It's just empty |
Are you using the built alpha-4 release or the latest 2.0-dev branch? I would suggest pulling the latest changes from 2.0-dev branch, running |
Perfect, it works now. Thank you 👍 |
No problem! I'm going to close this issue unless there's anything else? |
Okey I'm totally new to this so maybe someone can explain how I can get this latest 2.0 dev branch? Cause I am also looking for some kind of time scale for in my charts. |
@francisdb okey thanks! and then put them in my original Chart.js file? should they replace the old Chart.min.js and Chart.js files or should they co-excist in another folder (the v2.0-dev folder). |
You should replace them but likely the api will not be compatible so this will not be a simple drop in replacement. And since it's a development version things might change over time... On the other hand I don't think it's a good idea to use dev versions if you are not used to playing with this kind of stuff. |
I think one of the main chart types that is missing in
Chartjs
is theTime Series
chart. This chart type would allow for easy plotting of time series where the x-axis consists of an array ofDate
objects.The main differences with the
Line
chart type are:The main features could then be:
Date
objects for the x-axis.Date
.The functionality would ideally mimic the highstock time series functionality.
I'm interested in developing this chart type but could use help. We could start from the same code that is used to create the
Line
chart type.Could I get some input here on wether you guys think this is useful, how to approach this task and which other features could be included?
The text was updated successfully, but these errors were encountered: