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

Pie %n tooltip template shows total number represented by a pie slice #112

Merged
merged 3 commits into from
Jun 6, 2015

Conversation

kenirwin
Copy link
Contributor

@kenirwin kenirwin commented Jun 4, 2015

This pull request updates the js/jquery.flot.tooltip.source.js to add a '%n' replacement template available in pie charts. Under the previous tooltip templates, it was possible to get a percentage to show in the tooltip, but not the total number (N) of items/instances/etc represented by that segment of the pie chart. This addition adds the %n template to the javascript source code as well as a demo in the examples/pie.html file.

@Roundaround
Copy link
Collaborator

I trust that your code is up to snuff, but I would still like to review the code before merging. I should have time to do it after work tomorrow!

@kenirwin
Copy link
Contributor Author

kenirwin commented Jun 5, 2015

Thanks. I have a fix for the %ct problem worked out too, but it looks to me like submitting two pull requests for .js code at the same time would cause trouble, since the grunted, minified code would be hard to merge. Is that the case? If so, I'll just make the pull requests more slowly and sequentially.

Roundaround added a commit that referenced this pull request Jun 6, 2015
Pie %n tooltip template shows total number represented by a pie slice
@Roundaround Roundaround merged commit 0c40195 into krzysu:master Jun 6, 2015
@kenirwin kenirwin deleted the pie_n branch June 7, 2015 15:20
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

Successfully merging this pull request may close these issues.

2 participants