我是从另一个答案中得到的,所以请给thegreyspot点功劳
I got this from another answer, so give thegreyspot some credit in this question.
解决方案:在图形加载后(或在用数据填充时)调用$(window).resize();
solution: call $(window).resize();
after the graph is loaded (or when you fill it with data)