Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: CDE and color scheme

  1. #1
    Join Date
    Jan 2013
    Posts
    135

    Default CDE and color scheme

    Hi pentaho-users,
    my goal is to set color scheme outside of dashboard because changes are quite boring if you have many them. I read that with CCC2 is pvc.defaultColorScheme readonly, that means this is not the way I can change it. How can I do that? I would prefer to set it for different possible values ... so if I have 2 graphs they do not have the same colors(it the palette is beginning all the time) because the first one have values "actual" and "previous" and the second one "Level1", "Level2" ...
    Using Pentaho 4.5 and CCC2 from end of June.

    Thanks a lot for detailed description as this is not really my area I feel comfortably in,
    best regards,
    timfu83

  2. #2
    Join Date
    Mar 2012
    Posts
    645

    Default

    Call:

    pvc.setDefaultColorScheme(['red', 'green', ...]);

    from within a script loaded by all dashboards.

  3. #3
    Join Date
    Jan 2013
    Posts
    135

    Default

    Hi duarte,
    thanks a lot ... as I said I'm newbie to adding scripts but I created JS file, add as resource and it works!
    Hopefully it will work for all graphs - just concerning if I change the order of displayed values, they will get colors as defined - so mixed. But this I have to test with all of them and than write if I get a problem.

    Many many thanks,
    timfu83

  4. #4
    Join Date
    Mar 2012
    Posts
    645

    Default

    I'm not sure what you really want. Do you want fixed colors by series value? See this: http://forums.pentaho.com/showthread...804#post334804

  5. #5
    Join Date
    Jan 2013
    Posts
    135

    Default

    Hi duarte.leao,
    phantastic ... that's all for now.

    Thanks a lot!
    timfu83

Tags for this Thread

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.