AnsweredAssumed Answered

How to show complete values in an axis?

Question asked by Mauricio Valencia on Dec 13, 2018
Latest reply on Dec 14, 2018 by Paulo Pires

Hi everyone.

I have been working with some charts using Pentaho CDE. In a bar chart, I modified the "Axis Tick Formatter" property using this code:

 

function f(v) {

return v.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');

}

 

Before doing this, I was getting this:

 

 

And after doing that I am getting this:

 

 

As you can see, it is not possible to see the complete values, it is supposed that the maximun value that appears in the axis is: '1,200,000,000.00', but I just can see "1,200,00..". How can I show the value as I want (1,200,000,000.00)?

 

Thank you for your help!

Outcomes