Keerthi Hangal
Posts: 8
Joined: Fri Jan 07, 2022 6:00 am

Disabling legend should show No Data instead of hiding only the bars.

Hi, I am using Highstock for rendering scrollbar in my chart. After disabling the legend, I don't want the chart to display any X axis labels, scrollbar or anything. Instead, I want it to show the "No data to display" message.
Please find the ref link here: https://jsfiddle.net/rvckm6e5/1/
User avatar
dawid.d
Posts: 838
Joined: Thu Oct 06, 2022 11:31 am

Re: Disabling legend should show No Data instead of hiding only the bars.

Hi,

Thanks for contacting us with your question!

You can use the "No data to display" module. See: https://api.highcharts.com/highcharts/noData

If you want to hide the axes, you can additionally do it programmatically, e.g. in a render event.

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

Let me know if that was what you were looking for!
Best regards
Dawid Draguła
Highcharts Developer

Return to “Highcharts Stock”