您当前的位置: 首页 >  ar

漏刻有时

暂无认证

  • 0浏览

    0关注

    717博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

数据可视化Echarts学习(2):柱图任务进度完成比例图属性练习柱图堆叠

漏刻有时 发布时间:2020-02-16 10:27:09 ,浏览量:0

在这里插入图片描述

option = {
    title:{
        text:'漏刻有时任务进度属性练习',
        x:'center'
    },
    xAxis: {
    show:false,
       type: 'value',
    },
    yAxis: {
        type: 'category',
        axisLine:{show:false},
        axisTick:{show:false},
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    series: [
    {
        data: [100, 100, 100, 100, 100, 100, 100],
        type: 'bar',
        label:{
            show:false,
        },
        itemStyle:{
            color:'#222',
            barBorderRadius:[0,10,10,0],
            opacity:0.3
        },
        barGap: "-100%",//不同系列的柱间距离,柱子重叠,可以设置 barGap 为 '-100%';
    },
    {
        data: [82, 92, 91, 67, 90, 30, 32],
        type: 'bar',
        label:{
            show:true,
           position:'insideRight',
            textStyle:{
                color:'#fff'
            },
             formatter:'{c}%',//标签内容格式器,支持字符串模板和回调函数两种形式
        },
        itemStyle:{
             barBorderRadius:[0,10,10,0]
        }
    }]
};

关注
打赏
1661217259
查看更多评论
立即登录/注册

微信扫码登录

0.0600s