nicolaskruchten / pivottable

Open-source Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.
https://pivottable.js.org/
MIT License
4.36k stars 1.08k forks source link

rendering empty cell for 'null' or 'undefined' #894

Open isc30 opened 6 years ago

isc30 commented 6 years ago

Hi, I would like to know what is the best approach to render an empty cell when the value is null or undefined. In case I need to create a custom cell renderer, how to do it? thanks a lot 👍

nicolaskruchten commented 6 years ago

It should be possible to create a locale file with a number formatter that returns an empty string for null or undefined etc. https://github.com/nicolaskruchten/pivottable/wiki/Localization