I'm using the chart controls from WinRTXAMLToolkit
, to draw a pie chart. The chart is updated on the screen using the values from a few slider
controls.
When the sliders values are changed, I call in a function to calculate a formula (say compound interest) based on the sliders' values.
And then I change the ItemsSource
of the chart's SeriesDefinitions
to point to the new collection of data.
I'm trying to have a 'live' PieChart which updates instantly. The problem is when I keep changing the values of the sliders, there is a 1-2 second delay for the chart to draw itself again - and this makes the slider movement 'freeze' in between for a second.
Is there any way around this problem ? Can I move the chart-updation to a different thread so that the UI thread remains free and doesn't freeze up ?