* UILineChart: 修复双Y轴时,数据为空,刷新出错的问题
This commit is contained in:
parent
8211491bb9
commit
35c1714ac2
@ -181,7 +181,7 @@ namespace Sunny.UI
|
||||
{
|
||||
get
|
||||
{
|
||||
if (AllDataCount() == 0) return false;
|
||||
//if (AllDataCount() == 0) return false;
|
||||
foreach (var series in Series.Values)
|
||||
{
|
||||
if (series.IsY2) return true;
|
||||
@ -234,6 +234,13 @@ namespace Sunny.UI
|
||||
max = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (AllDataCount() == 0)
|
||||
{
|
||||
min = 0;
|
||||
max = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
min = double.MaxValue;
|
||||
max = double.MinValue;
|
||||
@ -260,6 +267,7 @@ namespace Sunny.UI
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void GetAllDataXRange(out double min, out double max)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user