Replies: 1 comment
-
I'm not sure, but it might be because you should use ObservableCollection instead of List |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this snip that i made does not update my chart, despite of having the updateData able to fetch the latest data from the database.
I needed to restart my app in order for the new one to be shown.
using LiveChartsCore;
using LiveChartsCore.Defaults;
using LiveChartsCore.SkiaSharpView;
using LiveChartsCore.SkiaSharpView.WPF;
using System.ComponentModel;
using System.Data.SqlClient;
using System.Runtime.CompilerServices;
namespace Smart_Facilities.Functions
{
internal class MonthlyMhiClass : IDisposable
{
private readonly string connectionString;
private readonly CartesianChart chart;
private readonly Timer timer;
/Query data from the database/
private void GetLineData()
{
var newDaddy = new List();
/Check sizes for both/
private void UpdateData(List daddy_chill, List newDaddy)
{
int oldCount = daddy_chill.Count();
int newCount = newDaddy.Count();
}
Beta Was this translation helpful? Give feedback.
All reactions