1:Echarts2.0
![](https://images2017.cnblogs.com/blog/1003910/201708/1003910-20170807110537080-202282954.png)
这种皮肤下柱状图转折线图默认是平滑曲线
默认皮肤为硬折线:
![](https://images2017.cnblogs.com/blog/1003910/201708/1003910-20170807110659080-956019581.png)
如果需要在2.0的macarons皮肤下使用硬折线需显式设置以下属性:
series: [
{
name:'最高气温',
type:'line',
smooth:false, //false为硬折线 true为平滑折线
data:[11, 11, 15, 13, 12, 13, 10],
markPoint: {
data: [
{type: 'max', name: '最大值'},
{type: 'min', name: '最小值'}
]
},
markLine: {
data: [
{type: 'average', name: '平均值'}
]
}
}
]