无法在单个页面上显示多个Highcharts [英] Cannot display multiple Highcharts on a single page
问题描述
我想在一个页面上显示3个Highcharts生成的图表。我加载了前两个刚刚好,但是当我添加Javascript的第三个,他们都不显示。我在这个JSFiddle中复制了我的代码:
http: //jsfiddle.net/ricburton/bCU2E/
任何帮助或指导都会非常感激。
我已签出此答案:管理多个在单个网页中显示高分布图
并且搜索了很多。
你在某处,这里是我在firebug中查看:
$ b b
编辑
您尚未关闭上次关闭,请添加});
在代码的结尾
我也删除了2个闭包,只有一个,看到更新的代码: http://jsfiddle.net/bCU2E/2/
I am trying to display 3 Highcharts-generated graphs on one page. I have loaded up the first two just fine but when I add the Javascript for the third all of them do not show. I have duplicated my code in this JSFiddle:
http://jsfiddle.net/ricburton/bCU2E/
Any help or guidance would be really appreciated.
I have checked out this answer: Manage multiple highchart charts in a single webpage
And googled around a lot. I am sure it is my limited understanding of Javascript holding me back.
you've missed } somewhere, here is what I see in firebug:
missing } after function body
edit
you haven't closed last closure, add });
at the end of code
I have also removed 2 closures and only one, see updated code: http://jsfiddle.net/bCU2E/2/
这篇关于无法在单个页面上显示多个Highcharts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!