对我来说,Internet Explorer中没有显示Highcharts图表。我搜索并看到额外的逗号可能有问题,但我的脚本中没有找到额外的逗号。
跟随小提琴只显示高图初始化部分。
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
credits: {
text: 'Reference: WHO Child Growth Standards (Birth-2 years in percentiles).'
},
xAxis: {
categories: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
gridLineWidth: 1,
gridLineColor: 'lightgray',
gridLineDashStyle: 'longdash',
title: {
text: 'Age (Completed months and years)'
}
},
yAxis: {
gridLineWidth: 1,
gridLineColor: 'lightgray',
gridLineDashStyle: 'longdash',
title: {
text: 'Length (cm)'
},
tickInterval: 5,
allowDecimals: false,
min: 45,
max: 95
},
plotOptions: {
spline: {
marker: {
radius: 0,
lineColor: '#666666',
lineWidth: 1
}
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
borderWidth: 0,
reversed: true,
y: 30,
width: 200,
itemMarginTop: 6,
itemMarginBottom: 6
},
exporting: {`enter code here`
enabled: false
}
});
答案 0 :(得分:0)
我发现的问题是jQuery的版本,由于某种原因,它在INternet Explorer上出错。 试试旧版本,例如jQuery 1.9.1 对我有用的工作
jQuery 1.9.1
答案 1 :(得分:0)
在gerenal中你应该运行jsfiddle.net/aparnaunny/RzyY8/1/show,因为ie8不支持小提琴。然后在ie8中运行你的控制台,你会看到prbolem在第361行。
if(age==2.0)
{
$("#median").append('Median height for this age is 87.1161 cm');
ind=malearr24.indexOf(height);
if(ind=='-1')
{