dreamweaver
Posts: 16
Joined: Thu Oct 19, 2023 1:24 pm

Is it possible to have border around axis in highstock chart

Hello,

here is an example of stockchart with two series.

https://jsfiddle.net/guestMe/6vbxLhqm/3/

What i am trying to achieve is, having a border around axis chart area to have proper distinguished view. as shown in attached sreenshot.


Thanks,
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Is it possible to have border around axis in highstock chart

Hello!

It is possible, however, not using the default API, you must use SVGRenderer thanks to which, based on information about the axes get from the chart object, you can draw a rectangle with an appropriate stroke.

Demo: https://jsfiddle.net/BlackLabel/cumyerh3/
API: https://api.highcharts.com/class-refere ... VGRenderer
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
dreamweaver
Posts: 16
Joined: Thu Oct 19, 2023 1:24 pm

Re: Is it possible to have border around axis in highstock chart

Thanks a-lot.. looks like a great solution ...

Return to “Highcharts Stock”