How to do a tooltip on an SVG generated by Raphael

后端 未结 4 1992
时光取名叫无心
时光取名叫无心 2020-12-05 02:55

I\'m doing a bit of a pedagogical exercise, converting XML to SVG with XSLT, Javascript and Raphael. I\'m sure it\'s the hard way...but it\'s educational.

The proble

4条回答
  •  一个人的身影
    2020-12-05 03:26

    In case someone will seek for an example of tooltip over g Rapahel charts (I guess it could be easily used with plain Rapahel too) I did one that use dynamically created div (so no third part tooltip plugin needed) that acts as a tooltop over pie chart

    Interactive Pie Chart with Tooltip

    It uses mousemove and mouseout of raphael...

    b.t.w I use the legend as a source of the tooltip - of course its not a must an could be replaced by any other text (just replace the this.label[1].attrs.text with some other text)

提交回复
热议问题