Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150888 | Jan 23,2020 08:19 AM UTC | Mar 3,2020 04:14 AM UTC | Blazor | 8 |
![]() |
Tags: Charts |
EjsChart Chart;
EjsChart Chart1;
EjsChart Chart2;
EjsChart Chart3;
protected override void OnInitialized()
{
// create the timer
t = new System.Timers.Timer(1000);
t.Start();
// when it elapses, add a newly created LiveData, and refresh
t.Elapsed += async (s, e) =>
{
dataSource.Add(new LiveData { TimeStamp = DateTime.Now, Value = rng.Next(0, 100) });
this.Chart.RefreshLiveData();
this.Chart1.RefreshLiveData();
this.Chart2.RefreshLiveData();
this.Chart3.RefreshLiveData();
};
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.