高图表不适用于 chrome ,而相同的图表在 Firefox 上运行良好。
function display()
{
$(function () {
$('#container1').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Showing Requested,Processed and Relayed status on '
},
subtitle: {
text: 'Domain wise Break Down'
},
xAxis: {
categories: ['Gmail', 'Yahoo', 'Rediff', 'Hotmail', 'Others'],
title: {
text: null
}
},
yAxis: {
min: 0,
title: {
text: 'Request/Relay Status',
align: 'high'
},
labels: {
overflow: 'justify'
}
},
//tooltip: {
// valueSuffix: ' millions'
//},
plotOptions: {
bar: {
dataLabels: {
// enabled: true
}
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'top',
x: -40,
y: 100,
floating: true,
borderWidth: 1,
backgroundColor: '#FFFFFF',
shadow: true
},
credits: {
enabled: false
},
series: [{
name: 'Relayed',
data: [c111,c222,c333,c444,c555]
}, {
name: 'Processed',
data: [c666,c777,c888,c999,c100]
}, {
name: 'Requested',
data: [c110,c120,c130,c140,c150]
}]
});
});
}
</script>
chrome显示的错误
Uncaught TypeError: Cannot read property 'opacity' of undefined highcharts.js:24
Uncaught TypeError: Cannot read property 'prototype' of undefined exporting.js:9
Uncaught TypeError: Object #<Object> has no method 'highcharts' read_csv.php:67
当我在 Firefox 中打开它时,这个高图表工作正常,但是当我在 IE 和 Chrome 中打开它时,它显示上述错误。请建议我如何克服这些错误。