MinaRC
Posts: 9
Joined: Thu Feb 04, 2021 8:24 pm

Disable viewport auto scaling in highcharts

Hello, I’m facing a problem in highcharts responsive scaling. Whenever I’m adding the viewport meta tag in header of my index.html file, the graphs are getting distorted.

Code: Select all

<meta name=“viewport” content=“device-width, initial-scale=1”>

Expected behaviour (only working when no viewport):

Image

Actual behaviour:

Image

I want to be able to include the viewport meta tag with my graphs looking like in the first image.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Disable viewport auto scaling in highcharts

Hello MinaRC!

We appreciate you reaching out to us!

I was trying to reproduce your problem, but in my case everything is working correctly. Could you reproduce the issue in an online editor that I could work on? In the link below you can find a basic template. :)

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

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”