Hi.
Additionally, I have a question.
It is event about RadCartesianChart.
I want to occur event when data of chart is changed.
example code part.
------------------------------------------------------------------------------------------------------------------------
chart.xaml
<telerik:RadCartesianChart.SeriesProvider>
<telerik:ChartSeriesProvider Source="{Binding Series}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:CategoricalSeriesDescriptor ItemsSourcePath="Data" ValuePath="Value" CategoryPath="LocalTime" >
chartViewModel.cs
Series type is ObservableCollection<TrendSeries>
public class TrendSeries
{
public string Name { get; set; }
public ObservableCollection<TrendData> Data { get; set; }
public string Unit { get; set; }
public short Place { get; set; }
}
public class TrendData
{
public double Value { get; set; }
public short Place { get; set; }
public string LineName { get; set; }
public string Time { get; set; }
public string Color { get; set; }
public DateTime LocalTime { get; set; }
}
in timer event(tick)
........
ObservableCollection<TrendData> data = Series[i].Data;
data.Add(....)
------------------------------------------------------------------------------------------------------------------------
Finally, when 'data' is changed, some event occur.
What should I do for it?
Additionally, I have a question.
It is event about RadCartesianChart.
I want to occur event when data of chart is changed.
example code part.
------------------------------------------------------------------------------------------------------------------------
chart.xaml
<telerik:RadCartesianChart.SeriesProvider>
<telerik:ChartSeriesProvider Source="{Binding Series}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:CategoricalSeriesDescriptor ItemsSourcePath="Data" ValuePath="Value" CategoryPath="LocalTime" >
chartViewModel.cs
Series type is ObservableCollection<TrendSeries>
public class TrendSeries
{
public string Name { get; set; }
public ObservableCollection<TrendData> Data { get; set; }
public string Unit { get; set; }
public short Place { get; set; }
}
public class TrendData
{
public double Value { get; set; }
public short Place { get; set; }
public string LineName { get; set; }
public string Time { get; set; }
public string Color { get; set; }
public DateTime LocalTime { get; set; }
}
in timer event(tick)
........
ObservableCollection<TrendData> data = Series[i].Data;
data.Add(....)
------------------------------------------------------------------------------------------------------------------------
Finally, when 'data' is changed, some event occur.
What should I do for it?