单行进度条echarts 柱状配置项内容和展示

带有北京边框的进度条

配置项如下
      option = {
    backgroundColor: '#031d33',
    grid: {
        top: 0,
        bottom: 0,
        left: '10%',
        right: '10%',
    },
    xAxis: {
        show: false,
        type: 'value',
        boundaryGap: [0, 0],
    },
    yAxis: [
        {
            type: 'category',
            data: [''],
            axisLine: { show: false },
            axisTick: [
                {
                    show: false,
                },
            ],
        },
    ],
    series: [
        {
            name: '金额',
            type: 'bar',
            zlevel: 1,
            itemStyle: {
                normal: {
                    barBorderRadius: 30,
                    color: new echarts.graphic.LinearGradient(1, 0, 0, 1, [
                        {
                            offset: 1,
                            color: 'rgba(48, 236, 166, 1)',
                        },
                        {
                            offset: 0,
                            color: 'rgba(48, 236, 166, 0.5)',
                        },
                    ]),
                },
            },
            barWidth: 20,
            data: [10],
        },
        {
            name: '背景',
            type: 'bar',
            barWidth: 20,
            barGap: '-100%',
            data: [20],
            itemStyle: {
                normal: {
                    color: 'rgba(28, 128, 213, 0.19)',
                    borderWidth: 1,
                    borderColor: 'rgba(48, 236, 166, 1)',
                    barBorderRadius: 30,
                },
            },
        },
    ],
};

    
截图如下