You can click on the telephone button to toggle the sidebar.
Note: You can serve the HTML and CSS code from the link above in any location for testing purposes, it does not need to be on JSFiddle, the problem occurs everywhere .... or you could use the JSFiddle if you know how to load it fullscreen on mobile.
The bug is the following:
If you load this on an iPhone 6 in portrait mode, then the width of the highchart does not change when you hide the sidebar. Meaning the highchart can not be read.
If you load this on iPhone 6 in landscape mode, then the width of the highchart is responsive nicely and everything works as it should (please note your iPhone 6 should be in landscape mode BEFORE you reload the page).
I troubleshooted this quite a while, while preparing the JSFIDDLE, and I noticed the following:
Very strangely:
If you remove the following 5 lines of the HTML code, then everything works again?
Code: Select all
formatter() {
const unitName = this.tickPositionInfo.unitName;
const format = unitName === 'day' ? '%d' : this.dateTimeLabelFormat;
return Highcharts.dateFormat(format, this.value )
}
- Is this a bug please? What is a workaround?