fix:修改问题

1 图表legend部分:没有配置legend,图表按默认方式显示legend,应为  up{asset="1.1.1.1",datacenter="北京"}
2 单值类型图表,绝对值数据显示用整数
This commit is contained in:
hyx
2020-05-21 14:23:52 +08:00
parent e92e635ae0
commit 515cecb28f
4 changed files with 6 additions and 19 deletions

View File

@@ -1400,10 +1400,7 @@
}
let alias=this.dealLegendAlias(host,this.data.elements[pos].legend);
if(!alias || alias===''){
alias = this.data.elements[pos].expression;
}
if(alias){
host = alias;
alias = host;
}
legend.push({name:host+innerPos,alias:alias});
// 图表中每条线的名字,去掉最后的逗号与空格:metric名称, 标签1=a,标签2=c