fix:修改问题
1 图表legend部分:没有配置legend,图表按默认方式显示legend,应为 up{asset="1.1.1.1",datacenter="北京"}
2 单值类型图表,绝对值数据显示用整数
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user