Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: [CCC2] How to change orthoAxisTitle / ortho2AxisTitle orientation ?

  1. #1

    Default [CCC2] How to change orthoAxisTitle / ortho2AxisTitle orientation ?

    Hello,

    I have a bar chart plotting 2 charts in one. Is it possible to change both axis titles orientation? Default behaviour is vertical. I want then horizontal, from left to right.

    Code:
    orthoAxisTitle: 'TJ / $1M',
    ortho2AxisTitle: 'dollars / $1M',
    Name:  Sin título.png
Views: 124
Size:  13.6 KB

  2. #2
    Join Date
    Mar 2012
    Posts
    645

    Default

    Hi _alatriste_,

    while you can change the orientation, by using the following extension points:

    extensionPoints: {
    orthoAxisTitleLabel_textAngle: 0, // FIXED after following comment, from «titleLabel_textAngle: 0,»
    ortho2AxisTitleLabel_textAngle: 0
    }

    the layout algorithm is not taking these into account to auto-size the panels.
    So you'll also have to specify appropriate sizes for each of the titles, using the options:

    titleSize: 100,
    ortho2AxisTitleSize: 100
    Last edited by duarte.leao; 03-06-2014 at 05:27 AM.

  3. #3

    Default

    Thx Duarte,

    extension points working fine.
    In my case as I was using orthoAxisTitle, i had to use orthoAxisTitleLabel_textAngle instead of titleLabel_textAngle.

    Thanks a lot, regards

  4. #4
    Join Date
    Jun 2007
    Posts
    103

    Default

    Good morning

    I'd like to bring this thread back to life by asking how to change the color of the ortho2axisTitle (dollars/$1M)... I'd like the text color to match the line color it represents. The color of the axis values themselves can be changed via ortho2AxisLabel_textStyle, but something like ortho2AxisTitle_textStyle set to green does nothing to the text itself.

    Thanks in advance
    - Russell

  5. #5
    Join Date
    Aug 2016
    Posts
    142

    Default

    Are you sure its the ortho2Axis you want to change?

    I just tried it there and it worked fine for me (orthoAxis as the test chart only had 1 axis)

    Name:  OrthoAxisLabel.jpg
Views: 97
Size:  8.0 KB

  6. #6
    Join Date
    Jun 2007
    Posts
    103

    Default

    Ah... I had the extension point wrong. I thought it would be ortho2AxisLabel_textStyle, it's ortho2AxisLabelTitle_textStyle.

    Thank you!
    - Russell

  7. #7
    Join Date
    Aug 2016
    Posts
    142

    Default

    No worries!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.