添加页面补招功能
This commit is contained in:
@@ -209,7 +209,7 @@ const histogram = (res: any) => {
|
||||
var tips = ''
|
||||
for (var i = 0; i < params.length; i++) {
|
||||
tips += params[i].name + '</br/>'
|
||||
tips += '监测点数' + ':' + ' ' + ' ' + (params[i].value == 0.14159 ? '暂无数据' : params[i].value) + '</br/>'
|
||||
tips += '超标监测点占比' + ':' + ' ' + ' ' + (params[i].value == 0.14159 ? '暂无数据' : params[i].value) + '</br/>'
|
||||
}
|
||||
return tips
|
||||
}
|
||||
@@ -220,7 +220,7 @@ const histogram = (res: any) => {
|
||||
data: res.map((item: any) => item.name)
|
||||
},
|
||||
yAxis: {
|
||||
name: '等级',// 给X轴加单位
|
||||
name: '超标占比',// 给X轴加单位
|
||||
min: 0,
|
||||
max: 100,
|
||||
|
||||
@@ -239,7 +239,7 @@ const histogram = (res: any) => {
|
||||
dataZoom: null,
|
||||
series: [
|
||||
{
|
||||
|
||||
|
||||
type: 'bar',
|
||||
data: res.map((item: any) => {
|
||||
return item.lineRatio == 3.14159 ? 0.14159 : item.lineRatio
|
||||
|
||||
Reference in New Issue
Block a user