y轴非均值折线图
调试运行
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>图形展示</title>
</head>
<body>
<div class="detail-section">
<div id="canvas">
</div>
</div>
<script src="http://g.tbcdn.cn/bui/acharts/1.0.32/acharts-min.js"></script>
<!-- https://g.alicdn.com/bui/acharts/1.0.29/acharts-min.js -->
<script type="text/javascript">
var chart = new AChart({
theme : AChart.Theme.SmoothBase,
id : 'canvas',
width : 950,
height : 500,
plotCfg : {
margin : [50,50,80] //画板的边距
},
yAxis : {
ticks : [0,20,500,5000,5100]
},
seriesOptions : { //设置多个序列共同的属性
lineCfg : { //不同类型的图对应不同的共用属性,lineCfg,areaCfg,columnCfg等,type + Cfg 标示
smooth : true,
pointStart : 20,
pointInterval : 100
}
},
tooltip : {
valueSuffix : '¥'
},
series : [{
name: 'Tokyo',
data: [10,412,5020,5034,5023,5078,5008,5025,4997,420,18,40]
}]
});
chart.render();
</script>
</body>
</html>