jqplot format tooltip values
Posted
by
Jeroen
on Stack Overflow
See other posts from Stack Overflow
or by Jeroen
Published on 2012-05-14T15:58:14Z
Indexed on
2012/11/19
11:06 UTC
Read the original article
Hit count: 292
I want to have a tooltip hover highlight thingy in jqplot. The problem is that I want it to give more detail then on the axes. So the formatter should be different. I can't get it to display the seconds to:
There's a JS fidle here!
I want the timestamp to display as hours:minutes:seconds, which would be format string '%H:%M:%S' or '%T' or '%X'. But how do I do that?
highlighter: {
show: true,
sizeAdjust: 3,
//useAxesFormatters: false,
//tooltipFormatString: '%H:%M:%S',
formatString: '<table class="jqplot-highlighter"><tr><td>tijd:</td><td>%s</td></tr><tr><td>snelheid:</td><td>%s</td></tr></table>',
},
© Stack Overflow or respective owner