@page "/counter"
@using Syncfusion.Blazor.Charts
@**@
@code {
public string chartLabel = "{value} inches";
public int chartYMin = 0;
public int chartYMax = 200;
public int chartYInterval = 10;
public int chartYHighRed = 65;
public int chartYLowRed = 20;
public string ChartXLabelFormat = "dd HH:mm";
public IntervalType ChartXIntervalType = IntervalType.Minutes;
public string chartTitle = "Instrument";
public string chartSubTitle = "Loading...";
private string chartUnits = "inches";
public class SalesInfo
{
public DateTime Month { get; set; }
public decimal SalesValue { get; set; }
}
public List Sales;
protected override void OnInitialized()
{
Sales = new List();
DateTime tdt = DateTime.Now.AddDays(-1);
decimal tdv = 35;
for (int i = 0; i < 700; i++)
{
tdv = tdv + (i * .0001M);
SalesInfo nsi = new SalesInfo { Month = tdt.AddMinutes(i), SalesValue = tdv };
Sales.Add(nsi);
}
}
}