Hi, when the data is updated for a chart's ItemsSource, the palette is also updated (the property is linked to a converter). However, there is a problem when trying to apply this palette to the pie series. See below for the exception.
Linear charts work fine, this is only a problem with pie charts. Pie charts load as expected - it's only when the palette is updated that this error is thrown.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at System.Collections.ObjectModel.Collection`1.get_Item(Int32 index)
at Telerik.Windows.Controls.ChartView.ChartPalette.GetEntry(String family, Int32 index)
at Telerik.Windows.Controls.ChartView.PieSeries.ApplyPaletteCore()
at Telerik.Windows.Controls.ChartView.PresenterBase.ApplyPalette()
at Telerik.Windows.Controls.ChartView.PresenterBase.UpdatePalette(Boolean force)
at Telerik.Windows.Controls.ChartView.RadChartBase.ProcessPaletteChanged(Boolean force)
at Telerik.Windows.Controls.ChartView.RadChartBase.OnPaletteChanged(DependencyObject target, DependencyPropertyChangedEventArgs args)
at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
at System.Windows.Data.BindingExpression.SendDataToTarget()
at System.Windows.Data.BindingExpression.SourcePropertyChanged(PropertyPathListener sender, PropertyPathChangedEventArgs args)
at System.Windows.PropertyPathListener.ReconnectPath()
at System.Windows.Data.Debugging.BindingBreakPoint.<>c__DisplayClass4.<
BreakOnSharedType
>b__3()
Linear charts work fine, this is only a problem with pie charts. Pie charts load as expected - it's only when the palette is updated that this error is thrown.