Fix grafici controlli

This commit is contained in:
Samuele Locatelli
2022-02-26 14:18:47 +01:00
parent a3a8c0ffaf
commit f0fa776829
7 changed files with 77 additions and 93 deletions
+10 -3
View File
@@ -7,6 +7,12 @@
[Parameter]
public string Id { get; set; } = "MyTs";
[Parameter]
public string Title { get; set; } = "DEMO Pie Chart";
[Parameter]
public string LegendPos { get; set; } = "right";
[Parameter]
public List<double> Data { get; set; } = new List<double>();
@@ -61,16 +67,17 @@
{
legend = new
{
position = "right"
position = LegendPos
},
title = new
{
display = true,
text = "Chart.js Pie Chart"
text = Title
}
},
Animation = false,
AspectRatio = AspRatio == 0 ? "auto" : $"{AspRatio}"
AspectRatio = AspRatio == 0 ? "auto" : $"{AspRatio}",
HoverBorderWidth = 3
},
data = new
{