怎么给柱状图最后两个设置其他颜色的虚线边框?
配置项如下
option = {
color: ['#16abfe','#ff7070','#aa7070'],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
crossStyle: {
color: '#999'
}
}
},
legend: {
data: ['总产值', '同比', '预测']
},
xAxis: [{
type: 'category',
data: ['2013年', '2014年', '2015年', '2016年', '2017年', '2018年', '2019年'],
axisPointer: {
type: 'shadow'
}
}],
yAxis: [
{
type: 'value',
name: '单位:亿元',
axisLabel: {
formatter: '{value}'
}
}, {
type: 'value',
name: '单位:%',
axisLabel: {
formatter: '{value} %'
}
},
],
series: [{
name: '总产值',
type: 'bar',
yAxisIndex: 0,
barWidth: '60%',
borderwidth:2,
borderColor: '#ff7070',
data: [60, 80, 88, 90, 100, 110, 130]
},
{
name: '同比',
type: 'line',
yAxisIndex: 1,
smooth: true,
data: [12, 20, 9, 5, 10]
},
{
name: '预测',
type: 'line',
yAxisIndex: 1,
smooth: false,
lineStyle: {
normal: {
width: 2,
color: '#aa7070',
type: 'dashed'
}
},
data: [,,,,10,8, 10]
}
]
};