Charts - Support for different digits formats and support for more customized setting

See #2079 for more info