页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
languagejs
{
    //此部分控制Y轴不显示文字
    "yAxis": {
        "type": "category",
        "boundaryGap": true,
        "axisTick": {
            "show": false
        },
        "axisLabel": {
            "show": true,
            "textStyle": {
                "color": "none",
            },
        },
    },

    "series": [{
        "barWidth": 15, //柱子宽度
        "barGap": 1, //柱子之间间距
        "itemStyle": {
            "normal": {
                //这部分让指标提示显示在上方
                "label": {
                    "formatter": "{b}{c}千万元",
                    "show": true,
                    "position": "top",
                }

            }
        }
    }]
}


问题:

自助仪表盘中的echarts图形使用横条图,然后想显示文字在上方,同时Y轴的文字不显示,如下图的效果:


解决方案: