clickable labels

55 views
Skip to first unread message

bugzappy

unread,
Oct 18, 2009, 1:03:00 AM10/18/09
to jqplot-users
jqplot allows x-axis values equal to strings containing HTML markup,
which are rendered as such in a <div> element containing the x-axis
labels. I found this very useful for linking the x-axis labels of a
bar-chart to other pages.

However the links are not clickable. It turns out -- I believe, and at
least in my use case -- that the chart's canvas overlaps the labels
<div> element.

I solved the problem with this code right after creating the chart:

$('.jqplot-xaxis-tick').css('z-index', some_positive_number);

apologies in advance if this has been said already, but I thought it
could be a helpful trick.
Reply all
Reply to author
Forward
0 new messages