Search code examples
pentahopentaho-cde

How to change second y-axis text font size in pentaho ccc charts


enter image description hereHow to change second y-axis text font-size in pentaho chart

I putted some text (i.e Monthly Cost ($000) in orthoAxisTitle it shows fine. How to put some text in second y-axis alsoenter image description here


Solution

  • If you want to define ortho2 axis title, put your text to ortho2AxisTitle parameter and its font definition to ortho2AxisTitleFont parameter:

    • ortho2AxisTitle: Your title
    • ortho2AxisTitleFont: 10px sans-serif

    If you want to adjust font of ortho2 axis label, define the font using extensionPoints parameter:

    • extensionPoints: [["ortho2AxisLabel_font", "normal 17px "Open Sans"'"]]

    enter image description here

    You can define the font also for all axes by setting axisLabel_font extension point. And then play with the rest of axes by e.g. setting text angle:

    • extensionPoints: [["axisLabel_font", "normal 17px "Open Sans"'"], ["ortho2AxisLabel_textAngle", "-0.6"]]