Highcharts IE 8中的jquery语法不起作用
当使用jquery语法$('#container').highcharts(…)时,我稍后想获取对该图表的引用,但在IE 8中出现错误。例如:Highcharts IE 8中的jquery语法不起作用,highcharts,Highcharts,当使用jquery语法$('#container').highcharts(…)时,我稍后想获取对该图表的引用,但在IE 8中出现错误。例如: $('#container').highcharts({ chart: { type: 'line', marginRight: 130, marginBottom: 25 }, title: { tex
$('#container').highcharts({
chart: {
type: 'line',
marginRight: 130,
marginBottom: 25
},
title: {
text: 'Monthly Average Temperature',
x: -20 //center
},
subtitle: {
text: 'Source: WorldClimate.com',
x: -20
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: 'Temperature (°C)'
},
plotLines: [{
value: 0,
width: 1,
color: '#808080'
}]
},
tooltip: {
valueSuffix: '°C'
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -10,
y: 100,
borderWidth: 0
},
series: [{
name: 'Tokyo',
data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
}, {
name: 'New York',
data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
}, {
name: 'Berlin',
data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
}, {
name: 'London',
data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
}]
});
$('#container').highcharts().showLoading();
最后一行在使用3.0.1版og highcharts和1.9.1版jquery的IE8(适用于IE10+chrome等)中失败。这不是推荐的方式吗
网页错误详细信息
用户代理:Mozilla/4.0(兼容;MSIE 8.0;Windows NT 6.0;Trident/4.0;SLCC1;.NET CLR 2.0.50727;Media Center PC 5.0;.NET CLR 3.0.04506)
时间戳:2013年4月30日星期二08:07:37 UTC
消息:“highcharts()”为空或不是对象
线路:66
字符:9
代码:0
URI:您有哪个版本的IE8?因为在my:8.0.6001.18702中工作正常,不会出现错误。Vista Ultimate 32位操作系统上的版本相同。internet区域的中高安全性和中等隐私设置。保护模式已打开。你在使用链接吗:是的,我已经测试了这个链接。我从浏览器快照中得到了相同的错误测试:我刚刚得到了相同的问题。