Pentaho

 View Only

 How to show complete values in an axis?

  • Pentaho
  • Pentaho
Mauricio Valencia's profile image
Mauricio Valencia posted 12-13-2018 22:56

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:

pastedimage_2

And after doing that I am getting this:

pastedimage_3

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!


#Pentaho
Paulo Pires's profile image
Paulo Pires

Hi Mauricio,

There is a CCC property that allows to set the size of the axis of the chart, in this case is orthoAxisSize.

In your chart, in the extension points, add this property and the value in pixels that you want, try 100 and increase or decrease until you got it right.

You can check the documentation Community Chart Components | Pentaho Community for all the available options for each type of CCC Chart.

Best regards