[email protected]
Posts: 1
Joined: Mon Aug 15, 2022 10:39 pm

Issue with xrange chart inverted and reversed

I am trying to do an x-range chart that is both inverted and with the x axis reversed, but it doesn't seem to be working. When it's not inverted, reversed seems to work fine, but when it is inverted, the reversal of the x axis no longer seems to work

https://jsfiddle.net/qyxrw427/
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Issue with xrange chart inverted and reversed

Hello [email protected]!
Welcome to our forum and thanks for contacting us with your question!

When chart.inverted property is set to true, the x-axis is reversed by default. If you change, e.g. in your demo, xAxis.reversed to false everything works correctly.

Demo: https://jsfiddle.net/BlackLabel/axhz1k2d/
API Reference: https://api.highcharts.com/highcharts/chart.inverted

Let me know if you have any further questions.
Kind regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”