简体   繁体   English

Highcharts无法在网页上运行

[英]Highcharts not working on webpage

Hopefully somebody can help me with this because it has been bugging me for days. 希望有人可以帮我解决这个问题,因为它困扰了我好几天了。

I am building a website that uses the Highcharts library to display a single line series chart. 我正在建立一个使用Highcharts库显示单个折线图的网站。 For some reason I cannot get the demo chart to display on my page. 由于某种原因,我无法使演示图表显示在页面上。 I have put my CSS, javascript and html into a jsFiddle and it displays correctly but when I open the page normally in HTML everything loads except for the chart. 我已经将我的CSS,javascript和html放入jsFiddle中,并且可以正确显示,但是当我以HTML正常打开页面时,除图表外,所有内容都会加载。

here is the jsFiddle of my webpage: 

http://jsfiddle.net/s5RUX/ http://jsfiddle.net/s5RUX/

here is the jsFiddle of the demo on the highcharts website: 

http://jsfiddle.net/z55AA/ http://jsfiddle.net/z55AA/

Can anybody tell me what is going wrong? 谁能告诉我怎么了?

Thanks 谢谢

You propably have to insert the scripts in a specific order (jQuery library first, then third-party one). 您可能必须按特定顺序插入脚本(首先是jQuery库,然后是第三方库)。 If it's not this, check if functions are not colliding with each others by debugger (built-in in chrome, for example), or is the proper jQuery version in your site is installed. 如果不是这样,请检查功能是否没有通过调试器(例如,内置于chrome中)相互冲突,或者是否已在您的站点中安装了正确的jQuery版本。

Highstock包含Highcharts,因此请在您的股票交易中消除Highcharts参考,该错误应消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM