Merge branch 'Release/AddRedisScriptMan_03'

This commit is contained in:
Samuele Locatelli
2026-04-21 11:14:09 +02:00
7 changed files with 34 additions and 37 deletions
+2 -2
View File
@@ -54,7 +54,7 @@
responsive = true,
scales = new
{
yAxes = new
y = new
{
suggestedMin = 0,
display = true,
@@ -82,7 +82,7 @@
labels = Labels
}
};
// creazione di un oggetto anonymous type con tutte le opzioni da passare a chart.js, tipo verticale
// creazione di un oggetto anonymous type con tutte le opzioni da passare a chart.js, tipo orizzontale
var configHor = new
{
type = "bar",
+24 -24
View File
@@ -7,10 +7,10 @@
[Parameter]
public string Id { get; set; } = "MyTs";
[Parameter]
public string Title { get; set; } = "DEMO Pie Chart";
[Parameter]
public string LegendPos { get; set; } = "right";
@@ -25,7 +25,7 @@
[Parameter]
public List<string> backColor { get; set; } = new List<string>();
[Parameter]
public double AspRatio { get; set; } = 0;
@@ -55,29 +55,28 @@
/// <returns></returns>
protected async Task renderChart()
{
var showLegend = Labels.Count <= 15;
var options = new Dictionary<string, object>
{
["responsive"] = true,
["animation"] = false,
["plugins"] = new
{
legend = new { display = showLegend, position = LegendPos },
title = new { display = true, text = Title }
}
};
if (AspRatio != 0)
{
options["aspectRatio"] = AspRatio;
}
// creazione di un oggetto anonymous type con tutte le opzioni da passare a chart.js
var config = new
{
type = "pie",
options = new
{
responsive = true,
plugins = new
{
legend = new
{
position = LegendPos
},
title = new
{
display = true,
text = Title
}
},
Animation = false,
AspectRatio = AspRatio == 0 ? "auto" : $"{AspRatio}",
HoverBorderWidth = 3
},
options,
data = new
{
labels = Labels.ToArray(),
@@ -86,8 +85,9 @@
new
{
data = Data,
borderColor= lineColor,
backgroundColor= backColor
borderColor = lineColor,
backgroundColor = backColor,
hoverBorderWidth = 3
}
}
}
+4 -7
View File
@@ -66,12 +66,14 @@ namespace MP.IOC.Components.Pages
private List<double> DatiPareto
{
get => currData.OrderByDescending(x => x.Value).Take(ParetoTake).Select(x => x.Value).ToList();
get => currData.OrderByDescending(x => x.Value).Select(x => x.Value).ToList();
//get => currData.OrderByDescending(x => x.Value).Take(5).Select(x => x.Value).ToList();
}
private List<string> LabelPareto
{
get => currData.OrderByDescending(x => x.Value).Take(ParetoTake).Select(x => x.Label).ToList();
get => currData.OrderByDescending(x => x.Value).Select(x => x.Label).ToList();
//get => currData.OrderByDescending(x => x.Value).Take(5).Select(x => x.Label).ToList();
}
private List<string> LabelPlot
@@ -93,11 +95,6 @@ namespace MP.IOC.Components.Pages
get => GetDistinctColors(tsDataDetail.Count, "1");
}
private int ParetoTake
{
get => currData.Count() <= 25 ? currData.Count() : 25;
}
[Inject]
private IStatsDetailService SDetService { get; set; } = null!;
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>6.16.2604.2109</Version>
<Version>6.16.2604.2111</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MP-IOC </i>
<h4>Versione: 6.16.2604.2109</h4>
<h4>Versione: 6.16.2604.2111</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2604.2109
6.16.2604.2111
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2604.2109</version>
<version>6.16.2604.2111</version>
<url>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>