Hi
I'm trying to figure out, how to add tooltips to the XamDataChart when the series are added through converters. I'm adding the series like in this example http://www.infragistics.com/community/forums/p/93191/461934.aspx#461934 but just can't figure out, how to get tooltips "attached" to the series.
Thanks in advance
Dennis
Hi Dennis,
Is that the correct thread that you are referring to? The only sample on there is one from Stefan and the only converter in his sample is for collapsing the tickmark label. There is no series being created through a converter.
Regardless of how you create the series though, the series has a ToolTip property which you can set.
http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=DataChart_Chart_Tooltips.html
Hi Rob
Yes, I have based my solution on that answer. I'm only creating /adding new lineseries in the converter instead of the possibility of also collapsing them. But I just can't get it to work by adding a tooltip. Found an example where it was added in codebehind, but couldn't get it to work when adding it in the convert for the individual series.
Can you send me a sample that creates a series from a converter? The sample on the other forum thread doesn't have a converter that does this. If you can't send me a sample, can you send me a copy of the converter you are currently using, and some code snippets showing where you are using this converter?
The converter within that example is creating the series in the example. I have removed the collapsing stuff from the converter, so now it's not possible to remove the series again, which I don't need anyway...
Thank you very much for the sample. It cleared up some other questions I had.
The reason no tooltips appear is because the series is a ScatterLineSeries. With ScatterLineSeries we only display tooltips when you mouse over the markers. Unfortunately in this case you disabled the markers so no tooltip will show. The reason we do this is for performance. Please take a look at the following forum thread. There is code you can use for displaying tooltips on the ScatterLineSeries when you hover over the line instead of the marker.
http://www.infragistics.com/community/forums/p/61168/311338.aspx#311338