Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Specifying colours

  1. #1
    Join Date
    Jul 2007
    Posts
    18

    Default Specifying colours

    Hi,

    Within the various charting elements is it possible to specify colours, for example with the pie chart can I specify the colours used to create the individual slices?

    Thanks

    Clemo

  2. #2
    gmoran Guest

    Default

    Clemo,

    Add the following XML to your chart definition:

    <color-palette>
    <color>#FFFF00</color>
    <color>#8FBC8F</color>
    <color>#F08080</color>
    <color>#FCCF12</color>
    <color>#FF00FF</color>
    <color>#FF0000</color>
    <color>#FFA500</color>
    <color>#4A0866</color>
    <color>#445500</color>-
    <color>#FFAA00</color>
    <color>#1E8AD3</color>
    <color>#AA6611</color>
    <color>#772200</color>
    </color-palette>

    The values are hex color values, you can add as many as you like. You can find some common ones here: http://www.w3schools.com/html/html_colornames.asp

  3. #3
    Join Date
    Jul 2007
    Posts
    18

    Default

    Thanks for that.

    Prersumably the charts start at the top colour and assigns the colors from the top down.

    Is there anyway of for example returning

    Region 1, 1000
    Region 2, 2000

    etc

    and specifying the colour directly rather than via the color palette.

    Hope that makes sense

    Clemo

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.