代碼
- 需要設置
series.itemStyle.normal.barBorderRadius屬性,其中此屬性值支持 number 或 數組。 - 如果傳遞數組,則需要傳遞四個元素,依次表示 左上,右上,右下、左下
示例代碼:
series: [
{
data: [10,20,70,40],
type: 'bar',
barWidth: '40',
itemStyle: {
normal: {
barBorderRadius: [0,20,20,0]
}
}
}
]
效果

