echarts 柱状图--圆角

series: [
    {
      type: "bar",
      barWidth: "40%",
      stack: "total",
      itemStyle: {
        barBorderRadius: [0, 0, 8, 8], // 重点
      },
      data: [],
    },
]

 

官方文档:borderRadius不起作用,经过尝试发现使用barBorderRadius有效。

 

记录进步!

posted @ 2021-10-15 17:13  玛卡巴鉲  阅读(840)  评论(0编辑  收藏  举报