Thursday, April 17, 2014

Pentaho CDE Charts - How to Suffix different sign (% or $) on Y-Axis label

In Pentaho CDE CCC2 charts - If you want to suffix a Percent sign (%) or a Dollar sign ($) on the Y-Axis label of the Charts, do the following:


  1. Select the Chart Component
  2. Click on the Advanced Properties
  3. Scroll down till you find orthoAxisTickFormatter option. Click to edit it
  4. Paste the following code:
    function percent_suffix_yaxis(per) { return sprintf('%d %', per); }
    // Note: To change to a dollar ($) sign change % to $ after %d.
  5. Save the Dashboard and Preview it.


No comments: