}
diff --git a/MP.IOC/Components/Pages/CallStats.razor.cs b/MP.IOC/Components/Pages/CallStats.razor.cs
index 570881b2..177e6412 100644
--- a/MP.IOC/Components/Pages/CallStats.razor.cs
+++ b/MP.IOC/Components/Pages/CallStats.razor.cs
@@ -20,25 +20,28 @@ namespace MP.IOC.Components.Pages
#region Private Fields
+ private bool beginAtZero = false;
private List
currData = new();
private string currDetail = "";
private string currHistId = "";
- private StatInfoDto? currStatSel = null;
private string currPieId = "";
-
+ private StatInfoDto? currStatSel = null;
private string currTitle = "";
private string currTsId = "";
+ private bool lineStacked = false;
private List lineTitles = new List();
private int numDays = 5;
private List ParetoDay = new();
+ private string scaleFormat = "linear";
+ private bool showLegend = true;
private List tsData = new List();
private List tsDataDetail = new();
@@ -95,10 +98,10 @@ namespace MP.IOC.Components.Pages
}
[Inject]
- private IStatsDetailService SDetService { get; set; } = null!;
+ private IStatsAggrService SAggService { get; set; } = null!;
[Inject]
- private IStatsAggrService SAggService { get; set; } = null!;
+ private IStatsDetailService SDetService { get; set; } = null!;
#endregion Private Properties
@@ -122,6 +125,10 @@ namespace MP.IOC.Components.Pages
{
// salvo dati!
currStatSel = currStat;
+ lineStacked = currStat.Grouping != StatInfoDto.AggrLevel.Method;
+ showLegend = currStat.Grouping == StatInfoDto.AggrLevel.Method;
+ beginAtZero = currStat.Grouping != StatInfoDto.AggrLevel.Method;
+ scaleFormat = currStat.Grouping == StatInfoDto.AggrLevel.Method ? "logarithmic" : "linear";
string reqKey = currStat.Title;
currHistId = $"Bar_{reqKey}";
currPieId = $"Pie_{reqKey}";
@@ -261,6 +268,7 @@ namespace MP.IOC.Components.Pages
// ...secondo tipo richiesto (macchina/server e duration/count)
tsDataDetail = SAggService.GetTimeSeriesData(rawAggrData, grpMachine, isCount);
break;
+
case StatInfoDto.AggrLevel.Method:
// recupero dettaglio 7gg...
List rawData = await SDetService.GetFiltAsync(adesso.AddDays(-numDays), adesso, "", selDetail);
@@ -271,6 +279,7 @@ namespace MP.IOC.Components.Pages
// ...secondo tipo richiesto (duration/count)
tsDataDetail = SDetService.GetTimeSeriesData(rawData, isCount);
break;
+
case StatInfoDto.AggrLevel.None:
default:
break;
@@ -278,7 +287,6 @@ namespace MP.IOC.Components.Pages
lineTitles = tsDataDetail.Select(x => x.SeriesName).ToList();
TSDataMulti = tsDataDetail.Select(x => x.DataPoints).ToList();
}
-
}
#endregion Private Methods
diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj
index 3e004ed0..594ff56b 100644
--- a/MP.IOC/MP.IOC.csproj
+++ b/MP.IOC/MP.IOC.csproj
@@ -4,7 +4,7 @@
net8.0
enable
enable
- 8.16.2604.2818
+ 8.16.2604.2907
diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html
index f998854e..14683919 100644
--- a/MP.IOC/Resources/ChangeLog.html
+++ b/MP.IOC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MP-IOC
- Versione: 8.16.2604.2818
+ Versione: 8.16.2604.2907
Note di rilascio:
-
diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt
index fccf3868..403fcf6f 100644
--- a/MP.IOC/Resources/VersNum.txt
+++ b/MP.IOC/Resources/VersNum.txt
@@ -1 +1 @@
-8.16.2604.2818
+8.16.2604.2907
diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml
index 833e7c55..e0f943be 100644
--- a/MP.IOC/Resources/manifest.xml
+++ b/MP.IOC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 8.16.2604.2818
+ 8.16.2604.2907
https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip
https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html
false