Commit e4c86d07 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 机架修正,当没走完全程,就会有 NULL_VALUE 数据, 影响了 YMIN, 导致没图看到

parent a9a049ea
......@@ -525,9 +525,16 @@ namespace FLY.Thick.Base.UI
return;
SeriesInfos[0].Datas.AddRange(reponse.OrgDatas[0].Select(ad => Misc.MyBase.ISVALIDATA(ad) ? ad : double.NaN));
var list = SeriesInfos[0].Datas.Where((d) =>
{
if (double.IsNaN(d))
return false;
else
return true;
});
//设置Y轴范围
int max = (int)SeriesInfos[0].Datas.Max();
int min = (int)SeriesInfos[0].Datas.Min();
int max = (int)list.Max();
int min = (int)list.Min();
//扩大3倍显示
int range = max - min;
if (range == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment