gpt4 book ai didi

javascript - angularjs, HighCharts (Aw, Snap!) 崩溃

转载 作者:行者123 更新时间:2023-11-30 06:23:54 25 4
gpt4 key购买 nike

当我试图点击 highchart 图表图例时它显示错误 噢,在 chrome 中捕捉,在 Firefox 中它需要很多时间来显示图表

在附加图片中可以看到错误和 Highcharts 图例:

highcharts

最佳答案

请更新您的谷歌浏览器。此代码最适合您:

$(function () {
var data = {
"xCategories": ["Oct 13","Nov 13","Dec 13","Jan 14"],
"ySeries": [
{
"name": "Product1",
"data": [11023.06902288,1059.48907912,1269.79964983,1620.3101287],
"type": "column"
},
{
"name": "Total volume",
"data": [2185819284,2101885633.7272727,2553791958.4090905,3229867446],
"type": "spline",
"yAxis": 1
}
],
};

$('#container').highcharts({
chart: {
animation: false,
type: 'column'
},
title: {text: null},
xAxis: {
title: {text: 'month'},
categories : data.xCategories
},
yAxis: [{
title: {text: 'Monthly spend ($)'}
},{
title: {text: 'volume'}, opposite: true
}],
tooltip: {
shared: true,valueDecimals: 2,valuePrefix: '$'
},
plotOptions: {
column: {stacking: 'normal'},
spline: {
tooltip: {valuePrefix: '', valueSuffix: ' units.', valueDecimals: 0}
},
series : {animation: false}
},
series: data.ySeries
});
});
<script
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

关于javascript - angularjs, HighCharts (Aw, Snap!) 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51637120/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com