Highcharts-ng Size does fill div until Inspect Element

前端 未结 1 1252
粉色の甜心
粉色の甜心 2021-01-21 11:10

I am adding highcharts to my Angular-Firebase app using Highcharts-NG and the highchart is not assuming the size of the div. However, when I got to inspect the element so I can

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-21 11:18

    I've found not so delicate way to fix it. Just add these lines:

     setTimeout(function() {
                        $(window).resize();
                    }, 0);
    

    0 讨论(0)
提交回复
热议问题