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 following up. The CategoryToolTip should display once at all times and stack all of your series' tooltips inside of a single box that you can align to the top, bottom, or center of the chart. Multiple tooltips should not be showing. It will track along each category on the X Axis by default. I've attached a sample demonstrating this along with a customized caption providing details about the category to summarize the points along the y axis using a PointerToolTipStyle.
Otherwise, regarding duplicate values, determing which series is obscured isn't trivial. You would need to know the order in which the series were added. Series are layered on top as they are created, so the first is the lowest (bottom) and the last series is the highest (top).
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.
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