Occasionally my XamDataChart will have series that graph directly on top of each other, because the values of the series are identical. This is functioning as expected. My tooltip however will only show for the top most series, but I would like to show a combined tooltip for all the series that are behind the top most series. Currently we create a tooltip for each series and give it some specific values, so combining the tooltips into a single tooltip may not be feasible since I'm generating my series and their associated tooltips programmatically. I would also settle for displaying all the possible tooltips stacked either vertically or horizontally. Is this possible?
Hello Gary,
Thank you for contacting Infragistics. The CategoryToolTipLayer displays grouped tooltips for series using a category axis rather than each series individually using an ItemTooltipLayer
You will need to add a CategoryToolTipLayer to your chart's Series collection .
eg.
var catToolTipLayerSeries = new CategoryToolTipLayer(); catToolTipLayerSeries.ToolTipPosition = CategoryTooltipLayerPosition.InsideStart; chart.Series.Add(catToolTipLayerSeries);
A list of all of our tooltips and examples can be found in our online documentation:
https://es.infragistics.com/help/wpf/datachart-chartannotationlayers
Let me know if you have any questions.
Michael,
Thank you for your response. I implemented as you suggested, however this is not what I was hoping it would be. Using a CategoryTooltipLayer will show all tooltips for any line series in the target area, so if I have a dozen line series graphed, this will show all 12 tooltips stacked. I am looking for a way to show stacked tooltips when hovering over a line series that has the same value as a series behind it. Essentially when two lines are drawn directly on top of each other the top most line series obscures the ones drawn behind it. I am hoping for a way to draw the tooltips specifically for the series that are obscured.