...
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;
|
||||
|
||||
|
@@ -215,10 +215,11 @@
|
||||
<div class="col-12 col-lg-8 order-2 order-md-3 order-lg-2 mb-4">
|
||||
<div class="card col-12">
|
||||
<div class="row row-bordered g-0">
|
||||
|
||||
<div class="col-md-12">
|
||||
<SaleChart />
|
||||
</div>
|
||||
@if (dashBoard != null)
|
||||
{
|
||||
<div class="col-md-12">
|
||||
<SaleChart items="dashBoard?.ForSaleChart" />
|
||||
</div>}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user