Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 99250

Dynamically adding and removing data poitns from a scatter series

$
0
0
Hello Jason,

Can you share the model for your data points, a small sample of what your data looks like and summarize what you want the outcome to be (a mockup would be best)? With this I'll be able to better suggest what axes to use that would visualize your data the best.

Regarding the updating of the Charts' data source, you can indeed bind/set an ObservableCollection to the ScatterSeries.ItemsSource property and update the ObservableCollection directly. The ScatterSeries will render any changes to the ObservableCollection's items.

Note that if you replace the ObservableColleciton entirely, make sure you have PropertyChanged implemented. For example:

private ObservableCollection<T> chartData;
 
public ObservableCollection<T> ChartData
{
     get { return chartData ?? ( chartData = new ObservableCollection<T>()); }
     set { chartData= value; OnPropertyChanged();}
}


Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 99250


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>