-
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
Plot date on both axis #4022
Comments
To change the order, the |
@etimberg Thanks. Adding |
@etimberg How to reverse time scale in ticks? |
I think you would need to add some code after https://github.com/chartjs/Chart.js/blob/master/src/scales/scale.time.js#L310 that is similar to https://github.com/chartjs/Chart.js/blob/master/src/scales/scale.logarithmic.js#L157-L165 |
@etimberg Thanks for the reply. |
@karthiksd9 I agree that it's supposed to draw like that, but I think it actually does drawing from the top and the ticks array isn't correctly reversed. Either that, or the |
Hi @etimberg , |
The |
I am trying to plot the milestone chart, i.e. the chart that plots date on doth x and y axis.
I am using the
type: "time"
for both axis to do it :The problem is, Y axis date is displaying inverted. i.e. it doesn't start with lowest date.
It starts with end date and moves up to the start date.
Can someone please help me how to fix it.
here is the fiddle:
https://jsfiddle.net/ovw0rudn/2/
The text was updated successfully, but these errors were encountered: