元数据中是有负数的,如何操作才能让它显示正的百分比,就像图里面不显示负的百分比,显示成正的百分比
标签的地方判断一下
function(){
if(this.value<0)
{
return FR.contentFormat(this.value*(-1), '#0.00%');
}
else{
return FR.contentFormat(this.value, '#0.00%');
-------------------------------
也可以参考这个文档
人口金字塔 https://help.fanruan.com/finereport/doc-view-1937.html
数据集处理一下
select case then zd < 0 then zd * -1 else zd end zd from a