Refreshing CandleStick Chart

2 posts, 0 answers
  1. Maxim
    Maxim avatar
    10 posts
    Member since:
    May 2009

    Posted 21 May 2009 Link to this post

    Hello.
    I am using CandleStick Chart and need to update/refresh it.

    But when I try to use DefaultView.ChartArea.DataSeries.Clear() i've got  Null Reference Exception. If i change series definition to BarSeries everything works fine. What am I doing wrong?

       at Telerik.Windows.Controls.Charting.CandleStick.OnDataPointChanged(Object sender, DependencyPropertyChangedEventArgs e)
       at Telerik.Windows.Controls.Charting.BaseChartItem.DataPointChanged(DependencyObject target, DependencyPropertyChangedEventArgs changedEventArgs)
       at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.Charting.BaseChartItem.set_DataPoint(DataPoint value)
       at Telerik.Windows.Controls.Charting.BaseChartItem.ClearContainer()
       at Telerik.Windows.Controls.Charting.Series.ClearContainerForItemOverride(DependencyObject element, Object item)
       at System.Windows.Controls.ItemsControl.ClearVisualChildren(IList items)
       at System.Windows.Controls.ItemsControl.ItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Controls.ItemsControl.set_ItemsSource(IEnumerable value)
       at Telerik.Windows.Controls.Charting.Series.DataSeriesChanged(DependencyObject target, DependencyPropertyChangedEventArgs changedEventArgs)
       at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.Charting.Series.set_DataSeries(DataSeries value)
       at Telerik.Windows.Controls.Charting.ChartArea.ClearContainerForItemOverride(DependencyObject element, Object item)
       at System.Windows.Controls.ItemsControl.ClearVisualChildren(IList items)
       at System.Windows.Controls.ItemsControl.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)


  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 21 May 2009 Link to this post

    Hi Maxim,

    Indeed we must admit this is a bug within the chart control. However, our developers have already managed to address the problem accordingly and the fix will be included in the official service pack release that will be available later today.

    Sorry for the temporary inconvenience.


    Sincerely yours,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top