kleebauer#
Posts: 1
Joined: Sat May 06, 2023 7:14 pm

Cutting closing times from x axis

Hi,

maybe anyone knows how to cut-off the gaps where the market is closed between 22:00 and 08:00 as well as on the weekend.

Please find the picture attached.

Many thanks for your help in advance

Leo
Attachments
Screenshot 2023-05-06 215747.png
Screenshot 2023-05-06 215747.png (22.02 KiB) Viewed 262 times
jakub.j
Posts: 1091
Joined: Tue Jan 24, 2023 11:14 am

Re: Cutting closing times from x axis

Welcome to our forum and thanks for contacting us with your question!

Highcharts Stock has a functionality called ordinal on the xAxis. It cuts out the unused space as you intented, I prepared a demo with xAxis.ordinal: true so that you can see how it cuts out the weekend with no data.

Demo: https://jsfiddle.net/BlackLabel/fxdc6jn3/
API: https://api.highcharts.com/highstock/xAxis.ordinal

Feel free to ask any further questions!
Best regards
Jakub

Return to “Highcharts Stock”