}
diff --git a/MP.Stats/Components/SelectionFilter.razor.cs b/MP.Stats/Components/SelectionFilter.razor.cs
index 1af49437..f42b27e0 100644
--- a/MP.Stats/Components/SelectionFilter.razor.cs
+++ b/MP.Stats/Components/SelectionFilter.razor.cs
@@ -55,6 +55,9 @@ namespace MP.Stats.Components
[Parameter]
public SelectData SelFilter { get; set; }
+ [Parameter]
+ public int MaxNumMacc { get; set; } = 10;
+
#endregion Public Properties
#region Protected Fields
@@ -165,9 +168,6 @@ namespace MP.Stats.Components
protected void ResetSelMacchine()
{
-#if false
- ListIdxMaccSel.Clear();
-#endif
ListIdxMaccSel = new List();
showAddMacc = false;
}
@@ -190,7 +190,8 @@ namespace MP.Stats.Components
protected List ddlMacchineMult
{
- get
+ get => ddlMacchine.Where(x => x.ValueField != "*").ToList();
+#if false
{
List answ = new List();
foreach (var item in ddlMacchine)
@@ -201,7 +202,8 @@ namespace MP.Stats.Components
}
}
return answ;
- }
+ }
+#endif
}
protected List ListIdxMaccSel
diff --git a/MP.Stats/Pages/TrendAnalysis.razor b/MP.Stats/Pages/TrendAnalysis.razor
index 0cc786b2..53c4bc9d 100644
--- a/MP.Stats/Pages/TrendAnalysis.razor
+++ b/MP.Stats/Pages/TrendAnalysis.razor
@@ -5,7 +5,7 @@
-
+
@if (isLoading)
diff --git a/MP.Stats/Pages/TrendAnalysis.razor.cs b/MP.Stats/Pages/TrendAnalysis.razor.cs
index 40815759..11584d01 100644
--- a/MP.Stats/Pages/TrendAnalysis.razor.cs
+++ b/MP.Stats/Pages/TrendAnalysis.razor.cs
@@ -202,7 +202,7 @@ namespace MP.Stats.Pages
#endregion Private Properties
- private int maxDisplay = 5;
+ private int MaxDisplay = 5;
#region Private Methods
@@ -230,14 +230,20 @@ namespace MP.Stats.Pages
// per ogni valore recupero timeserie downsampled fino al num max di quelle ottenibili...
int numAdd = 0;
+ var listSel = currFilter.ListIdxMaccSel;
foreach (var item in grpDict)
{
- numAdd++;
- // ora effettuo deduplica valori per tenere un subset minore ed evitare problemi visualizzazione...
- PlotRecords.AddRange(TimeSeriesUtils.DownsampleFluxModels(item.Value, MaxPoints));
- if(numAdd >= maxDisplay)
+ // verifico se sia tra le macchine selezionate...
+ if (listSel.Contains(item.Key))
{
- return;
+ numAdd++;
+ // ora effettuo deduplica valori per tenere un subset minore ed evitare problemi visualizzazione...
+ PlotRecords.AddRange(TimeSeriesUtils.DownsampleFluxModels(item.Value, MaxPoints));
+ // verifico comunque superamento limite amcchine
+ if (numAdd >= MaxDisplay)
+ {
+ return;
+ }
}
}
}