Hi,
I'm rather new to the ChartView component, so bear with me.
I have a RadCartesianChart that displays runtime values (a double and a DateTime essentially) on a LineSeries and is refreshed roughly once a second. The horizontal axis is a DateTimeCategoricalAxis and the vertical axis is a LinearAxis. The application is set up so that the user can display values from the last 30 seconds, 1 minute, 5 minutes or 30 minutes. However, as far as I can see, there is no way to force the chart to display a set time span, e.g. from DateTime.Now-30 seconds to DateTime.Now. Rather, the chart renders the horizontal axis according to what's in the data.
To accommodate this, I have had to implement logic that pushes and pops values from the databound ItemsSource so that it contains roughly the amount of values that I want to plot (30 seconds, 1 minute etc). However, as there is no guarantee that values come in at a fixed interval and "on the second", this results in the horizontal axis and chart as a whole "shifting about" a bit. It's also somewhat computationally intensive.
Is there any way to archive what I'm after using the RadCartesianChart?
Best regards,
Rickard
I'm rather new to the ChartView component, so bear with me.
I have a RadCartesianChart that displays runtime values (a double and a DateTime essentially) on a LineSeries and is refreshed roughly once a second. The horizontal axis is a DateTimeCategoricalAxis and the vertical axis is a LinearAxis. The application is set up so that the user can display values from the last 30 seconds, 1 minute, 5 minutes or 30 minutes. However, as far as I can see, there is no way to force the chart to display a set time span, e.g. from DateTime.Now-30 seconds to DateTime.Now. Rather, the chart renders the horizontal axis according to what's in the data.
To accommodate this, I have had to implement logic that pushes and pops values from the databound ItemsSource so that it contains roughly the amount of values that I want to plot (30 seconds, 1 minute etc). However, as there is no guarantee that values come in at a fixed interval and "on the second", this results in the horizontal axis and chart as a whole "shifting about" a bit. It's also somewhat computationally intensive.
Is there any way to archive what I'm after using the RadCartesianChart?
Best regards,
Rickard