页面树结构

版本比较

标识

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

...

横条图原始数据项标签如下截图,希望左边的数据项标签显示为正值:

 Image RemovedImage Added

解决方案

可以参考以下扩展属性去实现:

  {

   

代码块
linenumberstrue
 {
    "series": [{

...


        "label":

...

 {
            "normal":

...

 {
                "show":

...

 true,
                "textStyle":

...

                },

...

 {
                },
                "formatter": "function(params){return params.value[0]*-1;}"

...

 

            }

        }

    }]




            }
        }
    }]
}

实现效果如下:

Image RemovedImage Added