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

Tooltip displaying 'None' for some data points in secondary Y-axis lines #2

Closed
sctchang opened this issue Feb 11, 2015 · 2 comments
Closed
Assignees
Labels

Comments

@sctchang
Copy link

So I have secondary Y-axis enabled (i.e. pygal.add('SomeLabel', data_point, secondary=True)) and some of the tooltips for certain data points are showing up as 'None' when you hover over them.

This doesn't happen when I add data points with the default Y-axis setting. I am using pygal-toggle-graphs as per your 'Usage' section in the md file. Do you know what is going wrong here?

Thanks for extending pygal with this very sorely needed functionality by the way.

hoverlabelnone1
hoverlabelnone2

@s3rvac
Copy link
Owner

s3rvac commented Feb 12, 2015

Thank you for your report. Are you sure that this is caused by my pygal-toggle-graphs module? I have tried to reproduce the bug but it does not seem to be related to this modul, i.e. it happens regardless of its presence. If it displays correct values when you stop using this module, please post the source code for the graph so I can reproduce the problem. Otherwise, the pygal repository is probably a better place to report this since it seems to be related to pygal, not to pygal-toggle-graphs.

By the way, do you have any Nones in your data points? pygal seems to show None in the graphs when there are Nones in the data points and secondary=True is used.

@s3rvac s3rvac self-assigned this Feb 12, 2015
@sctchang
Copy link
Author

By Odin's beard, you are very much correct my good sir! I must have noticed the bug AFTER installing pygal-toggle-graphs.

Yes, I do have Nones in my data points, and by default pygal is supposed to ignore the None data points. While it is doing that correctly when it renders the line, it does seem to screw up the tooltips when secondary=True is set.

I'll close this issue and resubmit it in pygal's repository posthaste!

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

No branches or pull requests

2 participants