echarts中的圆角条

Chr*_*ing 1 echarts baidu

有没有办法使 ECharts 图表中的条形圆角化,例如此处的示例?

Joo*_*rts 5

为了更精细地控制哪个角被圆化了多少 -borderRadius可以使用。

borderRadius: 5, // consistently set the size of 4 rounded corners
borderRadius: [5, 5, 0, 0] // (clockwise upper left, upper right, bottom right and bottom left)
Run Code Online (Sandbox Code Playgroud)
borderRadius: 5, // consistently set the size of 4 rounded corners
borderRadius: [5, 5, 0, 0] // (clockwise upper left, upper right, bottom right and bottom left)
Run Code Online (Sandbox Code Playgroud)

这是一个工作示例:https ://stackblitz.com/edit/js-7rkahr?file=index.js

文档:https://echarts.apache.org/en/option.html#series-bar.itemStyle.borderRadius