Tooltips on tick values on svg axes?

58 views
Skip to first unread message

Dinosaur Jay

unread,
Apr 20, 2013, 7:32:26 AM4/20/13
to d3...@googlegroups.com
Hey,

As the title says, is it possible to enable tooltips with 'tipsy', plain 'html+css' or 'svg:title' on the tick values of an svg axis.
I know how to select the text elements of the tick values with d3, but I cannot add tooltips... Is there a way to do it ?

Thanks a lot!
Jan 

Romain Séguy

unread,
Apr 22, 2014, 4:05:57 AM4/22/14
to d3...@googlegroups.com
Hi, I am interested in that as well, have you found a solution?

Igor N

unread,
Apr 24, 2014, 9:50:05 AM4/24/14
to d3...@googlegroups.com
You have two at least two options :

1) Add title to each of the ticks -  http://jsfiddle.net/kgu87/tCN3G/

2) Implement custom mouseovers -  http://jsfiddle.net/kgu87/tCN3G/1

Personally I prefer #2 because of greater flexibility on what/how to display in tooltip. 
Reply all
Reply to author
Forward
0 new messages