cullsin
Posts: 25
Joined: Thu May 05, 2022 4:31 pm

x-axis label is not showing consistently

Hi,

I have made 5 charts and whenever I navigate to different charts, the xAxis label/tick is not showing permanently. It is sometimes not showing at all. I have attached the chart image where the xAxis label is not showing.

Can you please suggest how I reset HighChart whenever I navigate the URL?
Attachments
sample-min.png
sample-min.png (130.47 KiB) Viewed 458 times
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: x-axis label is not showing consistently

Hello Raja K!
We appreciate you reaching out to us with your inquiry.

It is hard to tell you what is not working and what could be done without taking look at your code. Maybe you have some errors in your console, which impact the chart drawing?

You can try to use a methods like chart.redraw() or chart.reflow() described here: https://api.highcharts.com/class-refere ... art#redraw https://api.highcharts.com/class-refere ... art#reflow after changing the URL, but charts should work without it. If you still have a problem could you provide me with a demo of reproducing the issue in an online editor that I could work on? You can use for example https://codesandbox.io/ or something other.

I am looking for your response.
Kind regards!
Hubert Kozik
Highcharts Developer
cullsin
Posts: 25
Joined: Thu May 05, 2022 4:31 pm

Re: x-axis label is not showing consistently

Hi,

Thanks. I have the same code for the chart rendering. As you saw in the attached chart, the xAxis is not showing. Is that because of chart height ?

Raja K
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: x-axis label is not showing consistently

Hey Raja K,
As I said It is hard to tell you what is not working and what could be done without taking look at your code. Could you reproduce the issue in an online editor that I could work on? You can start here: https://jsfiddle.net/BlackLabel/0pbeym97/

Also, I don't think that it could be a problem, but maybe the lower chart is hiding some part of the higher chart and that's why you don't see xAxis?
I am looking for your response.
Regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”