Hi,
I've dug around the forums but haven't had much luck in finding any information related to this. We use the WPF XamDataChart to gather incoming data and are trying to find a way to have two sets of marked points. I haven't found a lot of information in the
First set: These are makers that reside on the axis line. Their purpose is to mark a point in time that some event happened. These are placed by users clicking a button elsewhere. This happens as the chart is being updated.
Second set: These are markers that reside on a chosen series. They are points selected by a user, and are placed via clicking on a line at a given point.
My best guess as to how to implement this is to simply create a secondary set series that are scatter-point series that has some overhead logic to plot the points. But if there is a simpler way (or any way, in the case of binding a marker to the axis) I would love to see! Thanks!
HI,
I am attaching a sample application that makes the marker larger when you click on it.
Sincerely, Matt Developer Support Engineer
I am following up on this forum thread.
Please let me know if you need further assistance.
Sincerely,
Matt Developer Support Engineer
I am attaching another project that adds a series via button click so the points show on the X-Axis.
Matt, that helps, thank you. It looks like to keep it on the axis line I'll have to bind to an event that gets raised when the bounds of the X axis change. Is the best event for this xamDataChart's LayoutUpdated or is there a better event to hook into?
The only question I have left then is how to have a legend, without the "marker" (the axis series) series from showing up in the legend. It appears that the legend can get children instances and from there I could find and set the marker series' visibility to collapsed, but your documentation says the children shouldn't be touched. Is there a better way that I'm not seeing?
Again, thank you for the help Matt, I really appreciate it.
HI Collin,
You you can specify a legend for each series. So don't specify a legend for the series you create on the X-Axis.
Here is a link to Multiple Legends
http://help.infragistics.com/NetAdvantage/WPFDV/2010.3/CLR4.0/?page=xamDataChart_Multiple_Legends.html
Matt DSE
Oh, I see! That did it, and was exactly what I was looking for, thank you so much!