I just created a pie Chart with the WPF Toolkit. I wanted to create a AddIn for MS Dynamics NAV. If I call that method in NAV:
public void setChart(string chartKey, float chartValue)
{
KeyValuePair<string, float> value = new KeyValuePair<string, float>(chartKey, chartValue);
values.Add(value);
}
my Chart is not refreshing. My ObservableCollection is updating but it doesn't Show any Chart. If I just do
setChart("AB123",60);
to the constructor it works.
How can I update the Chart. I also call pieChart.DataContext = values;
in the constructor. If I call it again in setChart it still not work.