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

Reversing xAxes ticks doesn't seem to work. #3306

Closed
marineb opened this issue Sep 14, 2016 · 5 comments · Fixed by #6343
Closed

Reversing xAxes ticks doesn't seem to work. #3306

marineb opened this issue Sep 14, 2016 · 5 comments · Fixed by #6343

Comments

@marineb
Copy link

marineb commented Sep 14, 2016

Hi, I'm able to reverse the yAxes, but not the xAxes. Are the specs different for the xAxes?

See sample code: https://jsfiddle.net/marineboudeau/4awme3fp/3.

And the part of the code I'm talking about:

options: {
        scales: {
            yAxes: [{
                ticks: {
                    reverse: true, // this works
                    beginAtZero:true
                }
            }],
            xAxes: [{
                ticks: {
                    reverse: true, // this doesn't seem to work
                    beginAtZero: true
                }
            }]
        }
    }
@etimberg
Copy link
Member

@marineb i can't remember if the reverse setting only works for numeric axes or not. This needs some investigation before triaging as eithe a bug or enhancement.

@marineb
Copy link
Author

marineb commented Sep 14, 2016

Thanks @etimberg! I created a new fiddle with numeric axes and it still doesn't seem to work. https://jsfiddle.net/marineboudeau/4awme3fp/6.

I'll reverse them programmatically in the meantime. Thanks!

@barothiz
Copy link

Hi! I have the same issue here. Reverse works on the y axes but not on x. Is there any news on this or a workaround? Thank you!

@AndrewNg
Copy link

Also having the same problem here, would appreciate any help or update on the issue!

@DevidCIC
Copy link

Any updates on this ?
I see that if the Y-Axis consists of numbers then setting the reversed flags works. But if the Y-Axis consists of letters than the reversed does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
6 participants