flot.tooltip icon indicating copy to clipboard operation
flot.tooltip copied to clipboard

%x not working properly

Open clewott opened this issue 11 years ago • 4 comments

I have 4 different lines that I have plotted. The %y value works correctly pulls in the info all four. The %x however only pulls in the correct info for one of them and then gives a value of NaN.0 on the other three. They are all created the same way for the arrays that Flot.js iterates over to plot the data. screen shot 2015-01-29 at 8 42 16 pm screen shot 2015-01-29 at 8 42 38 pm

clewott avatar Jan 30 '15 01:01 clewott

source code of this plugin is quite simple so I encourage you to look for a fix by yourself, I don't have much time to work on this plugin recently, and pull requests are always welcomed

krzysu avatar Feb 04 '15 13:02 krzysu

@crotten Could you provide your tooltipOpts object? There are a lot of plugin-specific cases and debugging would go faster if I new which case yours would fall under.

Roundaround avatar May 11 '15 02:05 Roundaround

Scratch that, I believe I found it. Try v0.8.5 for a fix - though I warn you, since it appears you use custom CSS styling, that the plugin no longer assigns an id to the tooltip, but a class instead. So if you currently give it a custom id, you'll have to change the option from id to cssClass, and then regardless, in your CSS, you'll have to change your selectors from an id # selector to a class . one.

Let me know how it works for you.

Roundaround avatar May 11 '15 04:05 Roundaround

Hi there, I'm facing the same issue. i have a set of data and i'm changing the ticks on the xaxis (in order to display dates)

and i have two lines, the first display correctly the date given in xaxis, but the second just seems to give the index of the label for xaxis ...

data are like this : first line plotting : [[1,0],[2,0],[3,0],[4,1]], second line plotting : [[1,1],[2,1],[3,1],[4,2]]

and the xaxis label : [[1,'2010'],[2,'2011'],[3,'2012'],[4,'2013']]

when i hover the first line, i get '2010 value is 0' (for a '%x value is %y') but when i do the same on the second line, i get '1.00 value is 1'.

(see that the yaxis is working fine though)

thanks

Sieo avatar Jul 21 '15 15:07 Sieo