Fix grafici controlli
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user