Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%x not working properly #101

Open
clewott opened this issue Jan 30, 2015 · 4 comments
Open

%x not working properly #101

clewott opened this issue Jan 30, 2015 · 4 comments

Comments

@clewott
Copy link

clewott commented Jan 30, 2015

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

@krzysu
Copy link
Owner

krzysu commented Feb 4, 2015

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

@Roundaround
Copy link
Collaborator

@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
Copy link
Collaborator

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.

@Sieo
Copy link

Sieo commented Jul 21, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants