0

I have a project built with asp.net, c#. and using embeded object in HTML to show SVG files.

I have a request to show tool-tip over SVG elements. SVG is a separate file and having the content in XML. This file is basically generated after converting from Visio file.

Now I have to show some dynamic content in tool-tip over different SVG elements.

I have added a separate rect and text element and hide it in SVG element and on mouse over of any SVG element I am making the tool-tip visible. Its working up to this point.

Now I have to set the position of tool-tip which is bit tricky if I need to calculate position on the basis of target group element.

If I populate tool-tip over mouse position then tool-tip get dragged with mouse position which looks bad. so I want to populate tool-tip over target element position.

Please help me to set tool-tip position over target element!

mercury
  • 227
  • 4
  • 13

1 Answers1

0

Found the solution over below URL: How to determine size of Raphael object after scaling & rotating it?

used get_metrics function to calculate the required position to show tooltip.

Thanks a lot!

Community
  • 1
  • 1
mercury
  • 227
  • 4
  • 13