[英]Highchart is not working on Google chrome
High chart is not working on chrome , while same chart works fine on Firefox. 高图表不适用于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>
Errors shown by 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
this high chart works fine when I open it in firefox but it show above mentioned errors when I open it in IE and Chrome. 当我在Firefox中打开它时,这个高图表运行正常,但是当我在IE和Chrome中打开它时,它会显示上述错误。 Please suggest how can I overcome these errors.
请建议我如何克服这些错误。
This problem will happen if you are loading jQuery multiple times. 如果您多次加载jQuery将发生此问题。
Try loading a single instance of jQuery (ideally the latest). 尝试加载单个jQuery实例(理想情况下是最新的)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.