🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Format total

Valerio Precht asked on August 15, 2019

Good afternoon
I am evaluating FlexMonster and would like to know how to format the decimal in totals by default.
Thank you

2 answers

Vera Didenko Vera Didenko Flexmonster August 16, 2019

Hello, Valerio,
Thank you for writing to us.
Default report configurations, such as decimal formatting, can be defined in the report object.
For example, you can specify the desired decimal separator, the number of decimals to show after the decimal separator, and the maximum number of decimals to show after the decimal separator via the decimalSeparator, decimalPlaces, maxDecimalPlaces parameters accordingly:

formats: [
name: "",
decimalSeparator: ".",
decimalPlaces: 2,
maxDecimalPlaces: 2

Here is a JSFiddle example for illustration.
Please see our Number Formatting tutorial for reference.
Hope this helps.
Best Regards,

Valerio Precht August 16, 2019

Thanks for the reply Vera.
It was right.

Please login or Register to Submit Answer