Hitachi Vantara Pentaho Community Forums
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Defining chart colors

  1. #1

    Default Defining chart colors

    Hi all!

    If I don't define the color-palette of my dashboard-charts in their xaction-file a standard color-palette of pentaho is beeing used. Where can I change these colors to implement a corporate design?

    Thank you in advance

  2. #2

    Default

    No Idea?

  3. #3
    Join Date
    Dec 2005
    Posts
    531

    Default

    It depends in what way you create the charts.

    E.g. if you use the "new" chartbeans you can create a theme in .../pentaho-solutions/system/chartbeans/themes

    If you use the "old" chart component you'll find your answer here. You just create a color-palette tag like this within the chart tag:
    Code:
    <color-palette>
    		<color>#336699</color>
    		<color>#99CCFF</color>
    		<color>#999933</color>
    		<color>#666699</color>
    		<color>#CC9933</color>
    		<color>#006666</color>
    		<color>#3399FF</color>
    		<color>#993300</color>
    		<color>#CCCC99</color>
    		<color>#666666</color>
    		<color>#FFCC66</color>
    		<color>#6699CC</color>
    		<color>#663366</color>
    		<color>#9999CC</color>
    		<color>#CCCCCC</color>
    		<color>#669999</color>
    		<color>#CCCC66</color>
    		<color>#CC6600</color>
    		<color>#9999FF</color>
    		<color>#0066CC</color>
    		<color>#99CCCC</color>
    		<color>#999999</color>
    		<color>#FFCC00</color>
    		<color>#009999</color>
    		<color>#99CC33</color>
    		<color>#FF9900</color>
    		<color>#999966</color>
    		<color>#66CCCC</color>
    		<color>#339966</color>
    		<color>#CCCC33</color>
    	</color-palette>

  4. #4

    Default

    Thanks Ingo for your answer!

    Until now I have defined the colors using the "old" way by placing the color-palette in each chart definition. But If I want to change these colors I need to change them in every chart I created so long. That's a bit complicated and I wondered if there was a way to define the colors "globally".

    Do I need to upgrade from my currently used version 3.0 of the bi-server to 3.5 to use the "new" way with the chart beans template?

    What I actually wanted to know is where the standard colors of pentaho charts are defined. If I don't use the color-palette attribute in the chart definition a predefined color-palette is beeing used. It would be great to know where this one is stored.

  5. #5
    Join Date
    Dec 2005
    Posts
    531

    Default

    Hi,

    I think chartbeans were introdoced in 3.5 but I'm not sure. Have a look if you find chartbeans samples in the BI Developers Samples.

    The standard color palette might be defined somewhere in the source code of the chart classes, but again I'm not sure.

  6. #6

    Default

    Thanks Ingo for your help

    I've upgraded to 3.5 and wanted to use chart beans in my dashboard but I read here: http://wiki.pentaho.com/display/Serv...aho+ChartBeans that the integration of chart beans into cdf is not yet possible. Is that true or did I get something wrong?

  7. #7
    Join Date
    Dec 2005
    Posts
    531

    Default

    There is no widget for them, but you could create an xaction using the chart beans and use the xaction component to dispaly them in CDF...but you have to try it out yourself, that is theory on my part at the moment.

  8. #8

    Default

    I will try it and let you know how it works.

    Thanks again

  9. #9

    Default

    Okay...

    I tried to open one of the chart beans samples within a cdf dashboard. If I open this Action Sequence it shows the chart but inside the dashboard it doesn't work and the tomcat console doesn't produce any messages. Firebug shows this "<div id="cdfErrorDiv"/>" where the chart should be placed.

    Has anyone succeded in placing a chart beans chart into a cdf-dashboard?

    Maybe the size of the chart has to be reduced? Or is this done automatically?

  10. #10
    Join Date
    Jul 2007
    Posts
    2,497

    Default

    Never worked with charbeans, I don't know...
    Pedro Alves
    Meet us on ##pentaho, a FreeNode irc channel

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.