Update visualizzazione Doughnut: aggiunto spessore bordo
This commit is contained in:
@@ -101,15 +101,15 @@ namespace EgwCoreLib.BlazorTest.Pages
|
||||
answ.Add(currColor);
|
||||
if (currColor > 7)
|
||||
{
|
||||
colors.Add(new DoughnutStyling("#28FF69", "ccc"));
|
||||
colors.Add(new DoughnutStyling("#28FF69", "#00AA00"));
|
||||
}
|
||||
else if (currColor > 3)
|
||||
{
|
||||
colors.Add(new DoughnutStyling("orange", "ccc"));
|
||||
colors.Add(new DoughnutStyling("orange", "#99AA00"));
|
||||
}
|
||||
else
|
||||
{
|
||||
colors.Add(new DoughnutStyling("red", "ccc"));
|
||||
colors.Add(new DoughnutStyling("red", "#FF6969"));
|
||||
}
|
||||
}
|
||||
return answ.ToArray();
|
||||
|
||||
@@ -59,7 +59,14 @@
|
||||
{
|
||||
Datasets = new[]
|
||||
{
|
||||
new { Data = Data, BackgroundColor = BackgroundColor.Select(x=>x.color), borderColor = BackgroundColor.Select(x=>x.border), borderWidth= 0, offset= 1, borderRadius = 0 }
|
||||
new {
|
||||
Data = Data,
|
||||
BackgroundColor = BackgroundColor.Select(x=>x.color),
|
||||
BorderColor = BackgroundColor.Select(x=>x.border),
|
||||
BorderWidth = 1,
|
||||
offset= 1,
|
||||
borderRadius = 0
|
||||
}
|
||||
},
|
||||
Labels = Labels
|
||||
},
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<PackageReference Include="DeviceId" Version="6.7.0" />
|
||||
<PackageReference Include="DeviceId.Windows" Version="6.6.0" />
|
||||
<PackageReference Include="DeviceId.Windows.Wmi" Version="6.6.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||
<PackageReference Include="NLog" Version="5.3.4" />
|
||||
<PackageReference Include="System.Drawing.Common" Version="7.0.0" />
|
||||
<PackageReference Include="System.Management" Version="8.0.0" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
@@ -45,10 +46,34 @@ namespace EgwCoreLib.Utils
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Init classe validatore
|
||||
/// </summary>
|
||||
/// <param name="currMachineData"></param>
|
||||
public MachineDataValidator(string rawData)
|
||||
{
|
||||
// inizializzo info di base
|
||||
Dictionary<string, string> currMachineData = new Dictionary<string, string>();
|
||||
if (!string.IsNullOrEmpty(rawData))
|
||||
{
|
||||
try
|
||||
{
|
||||
currMachineData = JsonConvert.DeserializeObject<Dictionary<string, string>>(rawData);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
|
||||
#region Public Properties
|
||||
|
||||
public bool hasValidData
|
||||
{
|
||||
get => machTestData != null && machTestData.Count > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Restituisce HASH del codice impiego = payload utente
|
||||
/// </summary>
|
||||
@@ -216,4 +241,4 @@ namespace EgwCoreLib.Utils
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user