Unplanned
Last Updated: 04 Jan 2017 07:34 by ADMIN
ADMIN
Martin Ivanov
Created on: 15 Dec 2015 13:28
Category: ChartView
Type: Bug Report
1
ChartView: MovingAverageIndicator doesn't recalculate its data points when a new item is added in its ItemsSource at runtime
MovingAverageIndicator doesn't recalculate its data points when a new item is added in its ItemsSource at runtime

Workaround:
To update the data points of the indicator reset its Period property when a new item is added in the ItemsSource. For example:

// add new item
var indicator = chart.Indicators[0] as MovingAverageIndicator;
var period = indicator.Period;
indicator.Period = 0;
indicator.Period = period;
0 comments