|
series.Animate();
|
When I have the following code:
Series = new LineSeries
{
ItemsSource = Data,
XBindingPath = "EventEnqueuedUtcTime",
YBindingPath = "Temperature",
ListenPropertyChange = true,
EnableAnimation = true,
AnimationDuration = 50
};
The chart does not animate itself as I would expect. When my MvxObservableCollection changes it sometimes instantly draws the line and sometimes animates it.
How do I get the chart to animate correctly. This should be when my data collection changes and it then updates the chart in 1 second with an animation. How do I do this?
EDIT:
In addition, your live update example also doesnt use the animate properties. Your liveupdate example updates the data very often so it seems the chart animates. It makes me wonder if your library can animate in a different way. Your examples of AnimationDuration often use TimeSpan too, not a double value.
|
TimeSpan timeSpan = TimeSpan.FromSeconds(10);
columnSeries.AnimationDuration = timeSpan.TotalSeconds; |