echarts 5.0 仪表盘gauge


 

 

 

 

 

 https://echarts.apache.org/examples/zh/editor.html?c=gauge-ring

 

下面是options配置项目内容:

option = {
    series: [{
        type: 'gauge',
        startAngle: 225,
        endAngle: -45,
        pointer: {
            show: false
        },
        progress: {
            show: true,
            overlap: false,
            roundCap: true,
            clip: false,
            itemStyle: {
                borderWidth: 1,
                borderColor: ' #4EDAB6'
            }
        },
        axisLine: {

            lineStyle: {
                width: 40
            }
        },
        splitLine: {
            show: false,
            distance: 0,
            length: 10
        },
        axisTick: {
            show: false
        },
        axisLabel: {
            show: false,
            distance: 50
        },
        itemStyle: {
                color: '#4EDAB6'
            },
        data: [
        
        {
            value: 60,
            name: 'Commonly',
            title: {
                show:false
            },
            detail: {
               fontSize:34,
               color: '#4EDAB6',
               offsetCenter:['0','10%']
            }
        }
        ],
        title: {
            show:false
        },
        detail: {
           fontSize:34,
               color: '#4EDAB6'
        }
    }]
};

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM