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

Show zero instead of empty cell #237

Closed
esaesa opened this issue Nov 12, 2014 · 3 comments
Closed

Show zero instead of empty cell #237

esaesa opened this issue Nov 12, 2014 · 3 comments

Comments

@esaesa
Copy link

esaesa commented Nov 12, 2014

Hi
Thanks for all contributors in this lovely project.
How to show zero instead of empty cells

@esaesa
Copy link
Author

esaesa commented Nov 12, 2014

I found the solution.
aggregator: $.pivotUtilities.aggregatorTemplates.sum(function(x){ return (x==0) ? '0' : x;})(['Count_id']),

@esaesa esaesa closed this as completed Nov 12, 2014
@djmcit
Copy link

djmcit commented Feb 12, 2017

show full example

@nicolaskruchten
Copy link
Owner

Updating an old issue: this aesthetic choice has been reversed, and zeros are always displayed now when there is data in the cell (i.e. 'count' will never show zero because there is nothing to count).

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

3 participants