Skip to content
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 Chart.js 3.0 #32

Open
Rio517 opened this issue Nov 3, 2020 · 3 comments
Open

Support Chart.js 3.0 #32

Rio517 opened this issue Nov 3, 2020 · 3 comments

Comments

@Rio517
Copy link

Rio517 commented Nov 3, 2020

Now that chart.js is on beta 5 and the team says that there will be no new releases of the 2.x, it might make sense to add support for the 3.x version.

The developer migration guide is here: https://www.chartjs.org/docs/next/getting-started/v3-migration/#developer-migration

Unfortunately, it does look like there are some significant changes. Including Chart.scaleService was replaced with Chart.registry. Scale defaults are now in Chart.defaults.scales[type].

Thanks for all your hard work!

@diegomarquez-real
Copy link

Quick question so on my x axis will change on its by default depending on the dates that are put in. Is there a way I can make the x-axes show all 24hours only.
Example:
00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24

@fanthos
Copy link
Owner

fanthos commented Nov 17, 2020

I tried to add support for 3.0, but its still WIP and not working for now. Currently I don't have enough time to fixing it for 3.0.

[WIP]https://github.com/fanthos/chartjs-chart-timeline/tree/chartjs-3.0

@akteigland
Copy link

Updated link to the migration guide:

https://www.chartjs.org/docs/3.0.2/getting-started/v3-migration.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants