echarts 受理情况仪表盘

#效果图
在这里插入图片描述
#上代码

var myRate1 = 10000;
option = {
    backgroundColor: '#031845',
    title: [
        {
            x: '12%',
            bottom: 100,
            text: '应申报',
            textStyle: {
                fontWeight: 'normal',
                fontSize: 30,
                color: '#fff',
            },
        },
        {
            x: '42%',
            bottom: 100,
            text: '已申报',
            textStyle: {
                fontWeight: 'normal',
                fontSize: 30,
                color: '#fff',
            },
        },
        {
            x: '75%',
            bottom: 100,
            text: '未申报',
            textStyle: {
                fontWeight: 'normal',
                fontSize: 30,
                color: '#fff',
            },
        },
    ],
    tooltip: {
        show: true,
    },
    series: [
        {
            type: 'gauge',
            center: ['50%', '55%'], // 默认全局居中
            radius: '50%',
            splitNumber: 10, //刻度数量
            min: 0,
            max: 20000,
            startAngle: 200,
            endAngle: -20,
            clockwise: true,
            axisLine: {
                show: true,
                lineStyle: {
                    width: 2,
                    shadowBlur: 0,
                    color: [[1, '#03B7C9']],
                },
            },
            axisTick: {
                show: true,
                lineStyle: {
                    color: '#03B7C9',
                    width: 1,
                },
                length: -15,
                splitNumber: 10,
            },
            splitLine: {
                show: true,
                length: -20,
                lineStyle: {
                    color: '#03B7C9',
                },
            },
            axisLabel: {
                distance: -20,
                textStyle: {
                    color: '#03B7C9',
                    fontSize: '15',
                    fontWeight: 'bold',
                },
            },
            pointer: {
                //仪表盘指针
                show: 0,
            },
            detail: {
                show: false,
            },
            data: [
                {
                    name: '',
                    value: myRate1,
                },
            ],
        },
        {
            startAngle: 200,
            endAngle: -20,
            type: 'gauge',
            center: ['50%', '55%'], // 默认全局居中
            radius: '45%',
            min: 0,
            max: 10000,
            splitNumber: 0,
            axisLine: {
                // 坐标轴线
                lineStyle: {
                    color: [
                        [0.66, '#dddddd'],
                        [1, '#dddddd'],
                    ], // 属性lineStyle控制线条样式
                    width: 4,
                },
            },

            axisLabel: {
                // 坐标轴小标记
                textStyle: {
                    // 属性lineStyle控制线条样式
                    fontWeight: 'bolder',
                    fontSize: 16,
                    color: 'rgba(30,144,255,0)',
                },
            },
            splitLine: {
                // 分隔线
                length: 10, // 属性length控制线长
                lineStyle: {
                    // 属性lineStyle(详见lineStyle)控制线条样式
                    width: 0,
                    color: '#444',
                },
            },
            pointer: {
                // 分隔线 指针
                color: '#666666',
                width: 0,
                length: 230,
            },
            detail: {
                show: false,
            },
        },
        {
            name: '已申报',
            type: 'gauge',
            startAngle: 200,
            endAngle: -20,
            radius: '40%',
            center: ['50%', '55%'], // 默认全局居中

            min: 0,
            max: 10000,

            axisLine: {
                show: false,
                lineStyle: {
                    width: 25,
                    shadowBlur: 0,
                    color: [
                        [0.2, '#00FAFC'],
                        [0.4, '#3BD542'],
                        [0.6, '#E3F424'],
                        [0.8, '#7E48DA'],
                        [1, '#E531A8'],
                    ],
                },
            },
            axisTick: {
                show: false,
            },
            splitLine: {
                show: false,
                length: 20,
            },

            axisLabel: {
                show: false,
            },
            pointer: {
                show: true,
            },
            detail: {
                show: true,
                offsetCenter: [0, '40%'],
                textStyle: {
                    fontSize: 30,
                },
            },
            itemStyle: {
                normal: {
                    color: '#03B7C9',
                },
            },
            data: [
                {
                    value: 19984,
                },
            ],
        },
        {
            type: 'gauge',
            center: ['20%', '55%'], // 默认全局居中
            radius: '35%',
            splitNumber: 10, //刻度数量
            min: 0,
            max: 10000,
            endAngle: 45,
            clockwise: true,
            axisLine: {
                show: true,
                lineStyle: {
                    width: 2,
                    shadowBlur: 0,
                    color: [[1, '#03B7C9']],
                },
            },
            axisTick: {
                show: true,
                lineStyle: {
                    color: '#03B7C9',
                    width: 1,
                },
                length: -15,
                splitNumber: 10,
            },
            splitLine: {
                show: true,
                length: -20,
                lineStyle: {
                    color: '#03B7C9',
                },
            },
            axisLabel: {
                distance: -20,
                textStyle: {
                    color: '#03B7C9',
                    fontSize: '15',
                    fontWeight: 'bold',
                },
            },
            pointer: {
                //仪表盘指针
                show: 0,
            },
            detail: {
                show: false,
            },
            data: [
                {
                    name: '',
                    value: myRate1,
                },
            ],
        },
        {
            type: 'gauge',
            center: ['20%', '55%'], // 默认全局居中
            radius: '30%',
            min: 0,
            max: 10000,
            endAngle: 45,
            splitNumber: 0,
            axisLine: {
                // 坐标轴线
                lineStyle: {
                    color: [
                        [0.66, '#dddddd'],
                        [1, '#dddddd'],
                    ], // 属性lineStyle控制线条样式
                    width: 4,
                },
            },

            axisLabel: {
                // 坐标轴小标记
                textStyle: {
                    // 属性lineStyle控制线条样式
                    fontWeight: 'bolder',
                    fontSize: 16,
                    color: 'rgba(30,144,255,0)',
                },
            },
            splitLine: {
                // 分隔线
                length: 10, // 属性length控制线长
                lineStyle: {
                    // 属性lineStyle(详见lineStyle)控制线条样式
                    width: 0,
                    color: '#444',
                },
            },
            pointer: {
                // 分隔线 指针
                color: '#666666',
                width: 0,
                length: 230,
            },
            detail: {
                show: false,
            },
        },
        {
            name: '应申报',
            type: 'gauge',
            endAngle: 45,
            radius: '25%',
            center: ['20%', '55%'], // 默认全局居中

            min: 0,
            max: 10000,

            axisLine: {
                show: false,
                lineStyle: {
                    width: 25,
                    shadowBlur: 0,
                    color: [
                        [0.2, '#00FAFC'],
                        [0.4, '#3BD542'],
                        [0.6, '#E3F424'],
                        [0.8, '#7E48DA'],
                        [1, '#E531A8'],
                    ],
                },
            },
            axisTick: {
                show: false,
            },
            splitLine: {
                show: false,
                length: 20,
            },

            axisLabel: {
                show: false,
            },
            pointer: {
                show: true,
            },
            detail: {
                show: true,
                offsetCenter: [0, '40%'],
                textStyle: {
                    fontSize: 30,
                },
            },
            itemStyle: {
                normal: {
                    color: '#03B7C9',
                },
            },
            data: [
                {
                    value: 14969,
                },
            ],
        },
        {
            type: 'gauge',
            center: ['80%', '55%'], // 默认全局居中
            radius: '35%',
            splitNumber: 10, //刻度数量
            min: 0,
            max: 10000,
            startAngle: 140,
            endAngle: -45,
            clockwise: true,
            axisLine: {
                show: true,
                lineStyle: {
                    width: 2,
                    shadowBlur: 0,
                    color: [[1, '#03B7C9']],
                },
            },
            axisTick: {
                show: true,
                lineStyle: {
                    color: '#03B7C9',
                    width: 1,
                },
                length: -15,
                splitNumber: 10,
            },
            splitLine: {
                show: true,
                length: -20,
                lineStyle: {
                    color: '#03B7C9',
                },
            },
            axisLabel: {
                distance: -20,
                textStyle: {
                    color: '#03B7C9',
                    fontSize: '15',
                    fontWeight: 'bold',
                },
            },
            pointer: {
                //仪表盘指针
                show: 0,
            },
            detail: {
                show: false,
            },
            data: [
                {
                    name: '',
                    value: myRate1,
                },
            ],
        },
        {
            type: 'gauge',
            center: ['80%', '55%'], // 默认全局居中
            radius: '30%',
            min: 0,
            max: 10000,
            startAngle: 140,
            endAngle: -45,
            splitNumber: 0,
            axisLine: {
                // 坐标轴线
                lineStyle: {
                    color: [
                        [0.66, '#dddddd'],
                        [1, '#dddddd'],
                    ], // 属性lineStyle控制线条样式
                    width: 4,
                },
            },

            axisLabel: {
                // 坐标轴小标记
                textStyle: {
                    // 属性lineStyle控制线条样式
                    fontWeight: 'bolder',
                    fontSize: 16,
                    color: 'rgba(30,144,255,0)',
                },
            },
            splitLine: {
                // 分隔线
                length: 10, // 属性length控制线长
                lineStyle: {
                    // 属性lineStyle(详见lineStyle)控制线条样式
                    width: 0,
                    color: '#444',
                },
            },
            pointer: {
                // 分隔线 指针
                color: '#666666',
                width: 0,
                length: 230,
            },
            detail: {
                show: false,
            },
        },
        {
            name: '未申报',
            type: 'gauge',
            startAngle: 140,
            endAngle: -45,
            radius: '25%',
            center: ['80%', '55%'], // 默认全局居中

            min: 0,
            max: 10000,

            axisLine: {
                show: false,
                lineStyle: {
                    width: 25,
                    shadowBlur: 0,
                    color: [
                        [0.2, '#00FAFC'],
                        [0.4, '#3BD542'],
                        [0.6, '#E3F424'],
                        [0.8, '#7E48DA'],
                        [1, '#E531A8'],
                    ],
                },
            },
            axisTick: {
                show: false,
            },
            splitLine: {
                show: false,
                length: 20,
            },

            axisLabel: {
                show: false,
            },
            pointer: {
                show: true,
            },
            detail: {
                show: true,
                offsetCenter: [0, '40%'],
                textStyle: {
                    fontSize: 30,
                },
            },
            itemStyle: {
                normal: {
                    color: '#03B7C9',
                },
            },
            data: [
                {
                    value: 5015,
                },
            ],
        },
    ],
};

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序员小挽

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值