Aggiunta gestione bordo parametrico

This commit is contained in:
Samuele Locatelli
2025-01-13 18:07:10 +01:00
parent a9853c1e46
commit 0843df6929
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -44,13 +44,13 @@
</div>
<div class="col-2 text-center">
<div>
<Doughnut Id="00" Type="@Doughnut.ChartType.Doughnut" Data="@SimData()" BackgroundColor="@colors"></Doughnut>
<Doughnut Id="00" Type="@Doughnut.ChartType.Doughnut" Data="@SimData()" BackgroundColor="@colors" BordWidth="1"></Doughnut>
</div>
<small>display con animazione</small>
</div>
<div class="col-2 text-center">
<div>
<Doughnut Id="03" Type="@Doughnut.ChartType.Doughnut" Data="@SimData()" BackgroundColor="@colors"></Doughnut>
<Doughnut Id="03" Type="@Doughnut.ChartType.Doughnut" Data="@SimData()" BackgroundColor="@colors" BordWidth="3"></Doughnut>
</div>
<small>display con animazione</small>
</div>
+4 -2
View File
@@ -31,7 +31,9 @@
public string[] Labels { get; set; } = null!;
private IJSObjectReference module { get; set; } = null!;
[Parameter]
public int BordWidth { get; set; } = 0;
[Parameter]
public bool AddSlash { get; set; } = false;
@@ -63,7 +65,7 @@
Data = Data,
BackgroundColor = BackgroundColor.Select(x=>x.color),
BorderColor = BackgroundColor.Select(x=>x.border),
BorderWidth = 1,
BorderWidth = BordWidth,
offset= 1,
borderRadius = 0
}