...
This commit is contained in:
@@ -5,16 +5,10 @@
|
||||
private LineChart lineChart = default!;
|
||||
private LineChartOptions lineChartOptions = default!;
|
||||
private ChartData chartData = default!;
|
||||
public List<IdNameByCount<int>> items = new List<IdNameByCount<int>>();
|
||||
[Parameter] public List<IdNameByCount<int>> items { get;set; }
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
items.AddRange(new List<IdNameByCount<int>>()
|
||||
{
|
||||
new IdNameByCount<int>{ID=0,Title="1",count=10},
|
||||
new IdNameByCount<int>{ID=1,Title="2",count=5},
|
||||
new IdNameByCount<int>{ID=2,Title="3",count=12},
|
||||
new IdNameByCount<int>{ID=3,Title="4",count=21}
|
||||
});
|
||||
|
||||
|
||||
var colors = ColorBuilder.CategoricalTwelveColors;
|
||||
|
||||
|
Reference in New Issue
Block a user