Hi,
How to add a tooltip on vertical crosshair line ? Attaching snap for reference.
Thanks
Hello Rakesh,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I used the ItemToolTipLayer and CrosshairLayer in order to place both a crosshair and tooltip. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
I found one issue. If we add a ItemToolTipLayer it is not working, throwing an exception at CustomToolTip.Refresh() method.
I tried to fixed this problem but no success :(
What I am trying to do is that, I want to display common x-axis value on the top of the vertical line of crosshair and the y-axis value on the lineseries respectively.
Something that I had mentioned in attached picture.
Thanks...
I have modified the sample, so now it works as you want. Basically I added a CrosshairLayer and changed the Refresh method, so now there is no exception.
Hope this helps you.
Is it possible to placed this custom tooltip behaviour on x-axis ?
If you comment these two lines of code:
Canvas.SetLeft(_toolTip, crossPoint.X - _toolTip.ActualWidth / 2); Canvas.SetTop(_toolTip, 0);
from the Refresh method of the CustomToolTip class, the tooltip won't move along with the vertical crosshair. You can still use them in order to move the tooltip where you want.
By using Canvas' SetTop, SetLeft, SetBottom and SetRight methods you can change the position of the ToolTip.
Hi Stefan.
Thanks for your reply.
One last question, is it possible to show this custom tooltip on HorizontalAxisLabelPanel.
Thanks & Regards