Fix display grafico + date storico impianto

This commit is contained in:
Samuele Locatelli
2022-03-01 18:40:49 +01:00
parent 0728b898eb
commit 45f7f1d4e4
10 changed files with 201 additions and 73 deletions
+15 -1
View File
@@ -31,6 +31,9 @@
[Parameter]
public List<string> Labels { get; set; } = new List<string>();
[Parameter]
public List<string> pointColor { get; set; } = new List<string>();
[Parameter]
public List<string> lineColor { get; set; } = new List<string>();
@@ -89,6 +92,7 @@
yAxes = new
{
display = true,
position = "right",
ticks = new
{
maxTicksLimit = 10
@@ -102,6 +106,13 @@
distribution = "linear",
}
},
plugins = new
{
legend = new
{
display = false
},
},
Animation = false,
AspectRatio = AspRatio == 0 ? "auto" : $"{AspRatio}"
},
@@ -109,13 +120,16 @@
{
labels = Labels,
datasets = new[]
{
{
new
{
data = DataTS,
pointBorderColor = backColor,
borderColor = lineColor,
backgroundColor = backColor,
fill = true,
PointRadius = 2,
BorderWidth = 1,
lineTension= lTens,
stepped= false,
label= Title