Highcharts jQuery呈现问题 - 所有浏览器 [英] Highcharts jQuery rendering problem - all browsers

查看:112
本文介绍了Highcharts jQuery呈现问题 - 所有浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 Highcharts 构建堆叠柱形图时出现了一个奇怪的问题



当图表呈现时,不显示列,直到您调整浏览器大小,导致图表重新绘制。 (我认为)!
图表的其余部分显示(轴,标题等),但不显示列本身。

我在IE,Firefox和chrome中获得相同的行为。

我把我的代码放在jsfiddle上 - http://jsfiddle.net/ gd7bB / 173 /
加载它,你应该看不到数据,调整浏览器窗口大小和tada,数据出现(而不是列出现)!

对这一项的任何帮助都将得到大力赞赏。

当调用HighCharts构造函数时,不需要隐式调用 render


I have a strange problem whilst trying to build a stacked column chart using Highcharts

When the chart renders, the columns don't display, until, you resize the browser in anyway, causing the chart to redraw. (I think)! The rest of the chart displays (axis, titles, etc) but not the columns themselves.

I get the same behaviour in IE, Firefox and chrome.

I have put my code on jsfiddle - http://jsfiddle.net/gd7bB/173/ Load it up and you should see no data, resize the browser window and "tada", the data appears (rather the columns appear)!

Any help on this one would be massively appreciated.

解决方案

Remove line chart.render();

When HighCharts constructor is called there's no need to call render implicitly.

这篇关于Highcharts jQuery呈现问题 - 所有浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆