Aggiunta gestione bordo parametrico
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user