bolgar_maxym
Posts: 4
Joined: Mon May 09, 2022 2:12 pm

Chart on a Cartesian coordinate system

Hi!

I need build chart on a Cartesian coordinate system, but I can't find any examples in highcharts docs.
Example what I need:
Image
Polar (radar) chart is look like something whats I need, but I want the 0 to be the very centre of the plot when it has negative and positive values, but 0 always shifts. Is it possible to place 0 in the center of the graph to make it look like cartesian coordinate system
Example what I have: https://jsfiddle.net/bolgar_maxym/4b1mst0p/2/
bolgar_maxym
Posts: 4
Joined: Mon May 09, 2022 2:12 pm

Re: Chart on a Cartesian coordinate system

Found dubious decision use regular line chart only with markers and move axes with axes property "offset", but I hope that more elegant decision exists
bolgar_maxym
Posts: 4
Joined: Mon May 09, 2022 2:12 pm

Re: Chart on a Cartesian coordinate system

bolgar_maxym wrote: Mon May 09, 2022 2:59 pm Found dubious decision use regular line chart only with markers and move axes with axes property "offset", but I hope that more elegant decision exists
https://jsfiddle.net/bolgar_maxym/yt235f79/15/
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Chart on a Cartesian coordinate system

Hello,

Set offset property is one of the easiest and good ways to get a chart like this. At the moment, I have no other idea to achieve it in any other way. In the demo attached below you have a simplified version similar to the chart in the picture you send.

Demo: https://jsfiddle.net/BlackLabel/mw2d9nj1/
API: https://api.highcharts.com/highcharts/xAxis.offset

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
bolgar_maxym
Posts: 4
Joined: Mon May 09, 2022 2:12 pm

Re: Chart on a Cartesian coordinate system

michal.f wrote: Wed May 11, 2022 10:09 am Hello,

Set offset property is one of the easiest and good ways to get a chart like this. At the moment, I have no other idea to achieve it in any other way. In the demo attached below you have a simplified version similar to the chart in the picture you send.

Demo: https://jsfiddle.net/BlackLabel/mw2d9nj1/
API: https://api.highcharts.com/highcharts/xAxis.offset

Let me know if you have any further questions!
Best regards!
I chose this way, thank you
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Chart on a Cartesian coordinate system

You're welcome!

Feel free to ask any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”