我使用highcharts绘制条形图。为了启用滚动条,我使用了Highstock.js。当添加highstock.js时,抛出异常作为IE中预期的对象。下面是代码示例
<script src="../js/jquery-2.1.1.js"></script>
<script src="../js/jquery.js"></script>
<script src="../js/bootstrap.js"></script>
<script src="../js/jsMethods.js"></script>
<script type="text/javascript" src="../js/jquery.dataTables.min.js"></script>
<script src="../js/dataTables.bootstrap.js"></script>
<script src="../js/highstock.js"></script>
<script src="../js/highcharts.js"></script>
$(function () {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'CompareModal',
type: 'column'
},
title: {
text: '',
},
xAxis: {
categories: color,
min: 6
},
plotOptions: {
column: {
pointPadding: 0.2,
borderWidth: 0
}
},
scrollbar: {
enabled: true
},
series: [{
name: 'Volume',
data: colorVolume
}]
});
})