![](https://box.kancloud.cn/fdf04a5e55200f6f6753e2f646b63c9a_910x445.gif)
[运行一下](http://www.shouce.ren/study/api/s/7088)
~~~
<!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] //画板的边距
},
xAxis : {
categories : ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月']
},
seriesOptions : { //设置多个序列共同的属性
areaCfg : { //不同类型的图对应不同的共用属性,lineCfg,areaCfg,columnCfg等,type + Cfg 标示
smooth : true,
markers : {
single : true,
marker : {
fill : null,
stroke : '#eff',
radius : 6,
'stroke-width':4
},
actived : {
fill : null,
stroke : '#eff',
radius : 6,
'stroke-width':4
}
}
}
},
tooltip : {
valueSuffix : '°C'
},
series : [{
name: 'Tokyo',
data: [20, 6.9, 15, 3, 18.2, 4, 25.2, 6, 23.3, 8, 13.9, 9.6]
}, {
name: 'New York',
data: [-0.2, 16, 5.7, 20, 17.0, 3, 24.8, 4.1, 20.1, 5.1, 8.6, 2.5]
}]
});
chart.render();
</script>
</body>
</html>
~~~