alipiec
Posts: 2
Joined: Mon Mar 13, 2023 4:28 pm

Have rangeSelector button and input not push down when the chart has a title

Hey, can anyone help out on this? Not sure if there is an attribute that stops that behavior, but when you add a title to a chart, the button box and the input box both push down. I'd like to have all those properties still be inline even if there is a title. I have two screen shots demonstrating the behavior
Attachments
Screenshot 2023-03-13 at 12.38.19 PM.png
Screenshot 2023-03-13 at 12.38.19 PM.png (60.19 KiB) Viewed 422 times
Screenshot 2023-03-13 at 12.38.42 PM.png
Screenshot 2023-03-13 at 12.38.42 PM.png (65.41 KiB) Viewed 422 times
jakub.j
Posts: 1091
Joined: Tue Jan 24, 2023 11:14 am

Re: Have rangeSelector button and input not push down when the chart has a title

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

To prevent this space at the top you can set title.floating to true and it will not push the button and input down. You can also specify where the title should be placed using title.align as I showed in the prepared demo.

Live demo: https://jsfiddle.net/BlackLabel/rs5aq0zh/

Feel free to ask any further questions!
Best regards
Jakub
alipiec
Posts: 2
Joined: Mon Mar 13, 2023 4:28 pm

Re: Have rangeSelector button and input not push down when the chart has a title

Is there a property where I can explicitly change the x and y position of the exporting button?
jakub.j
Posts: 1091
Joined: Tue Jan 24, 2023 11:14 am

Re: Have rangeSelector button and input not push down when the chart has a title

Hey
You can change the position of the button in exporting.buttons.contextButton with properties like x, y, align, verticalAlign.
I prepared a demo using all of those.

Demo: https://jsfiddle.net/BlackLabel/dLvsynjz/

More info can be found here: https://api.highcharts.com/highcharts/e ... textButton

Best regards
Jakub

Return to “Highcharts Stock”