This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, We want to save some information on the datapoint other than x, y objects, I thought DataPoint's Tag is good place to do so. But I have a hard time to figure it out how to make the binding for the tag work, either by xaml or by code. We have XBinding and YBinding on DataSeries, can we have a DataPointTagBinding (not confused with the Tag on DataSeries)? Obviously, I guess I cannot use the Tag since, on scatter series, the Tag is used for the symbol's path. Where can I save the extra information on the point? So I can do other things when I right click on the point (selected) on the chart? Please help! Thanks. Gordon |
|
|
Hello Gordon The recommended way to do this is to put additional information into the data point models. So you'd have a class that represents a single data point which has X and Y values as well as any other information you need for each data point. When you get a CartesianDataPoint control that was right clicked, you can get the raw model object from the DataContext property. Jason Fauchelle |
|
|
Thank you, Jason. I always forgot this useful property of the DataPoint. Gordon |
|