Amcharts shows data only on resize event

Viewed 2290

I am having a really strange error while using AmCharts preview in twitter bootstrap modal.
Actually its a modal that is used to preview some graph data but it does not actually shows graphs sometimes until:

-I open inspect element dialog.(means window resize event)
-Or by re sizing the inspect element dialog if its already open.(again means window resize event)
-I manually resize browser window

From perspective of my backend there is no problem sending data it always send same data.

I know my problem is really silly but i think may be someone might occurred with this one.
Thanks in advance

4 Answers

I had the similar issue, and below code worked for me.

document.body.style.overflow = 'hidden';
setTimeout(() => {
  document.body.style.overflow = 'visible';
}, 500);
Related