制作条形圆角echarts

Ank*_*iya 1 javascript echarts baidu ngecharts

有没有一种方法,使巴在echarts在上面?对于本例中的ex

我能找到的选项roundCap极性,但无法找到任何简单吧图表

多一点*_*点点爱 5

你想设置'border-radius'吗?

var option = {
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [120, 200, 150, 80, 70, 110, 130],
            type: 'bar',
            itemStyle: {
                emphasis: {
                    barBorderRadius: [50, 50]
                },
                normal: {
                    barBorderRadius: [50, 50, 0 ,0 ]
                }
            }
        }]
    };
Run Code Online (Sandbox Code Playgroud)