3 个回答
series:[{
    label: {
        normal: {
            show: true,
            position: 'inside',
            formatter: '{c}%'
        }
    }
}]
    series: [{
      type: 'bar',
      itemStyle: {
        normal: {
          label: {
            show: true,
            position: 'inside',//数据在中间显示
            formatter:'{c}%'//百分比显示
          }
        }
      },
      data: [46, 20, 62, 12, 10, 80]
    }]
      yAxis: [{
                type: 'value',
                name: '单位: %',
                nameTextStyle: {
                    color: 'rgba(255,64,104,0.5)',
                },
                axisLabel: {
                    formatter: '{value} %',
                    textStyle: {
                        color: 'rgba(255,64,104,0.5)',
                    }
                },
                axisLine: {
                    show: false
                },
                axisTick: {
                    show: false
                },
                splitLine: {
                    show: true,
                    lineStyle: {
                        type: "dotted",
                        color: ["rgba(255,60,104,.1)"]
                    }
                }
            }],
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题