/* | |
title: Set Style of Single Bar. | |
category: bar | |
titleCN: 自定义单个柱子颜色 | |
difficulty: 1 | |
*/ | |
option = { | |
xAxis: { | |
type: 'category', | |
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] | |
}, | |
yAxis: { | |
type: 'value' | |
}, | |
series: [{ | |
data: [120, { | |
value: 200, | |
itemStyle: { | |
color: '#a90000' | |
} | |
}, 150, 80, 70, 110, 130], | |
type: 'bar' | |
}] | |
}; |