PDA

View Full Version : Specifying colours



Clemo
08-01-2007, 12:49 PM
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

gmoran
08-03-2007, 05:14 PM
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 (http://www.w3schools.com/html/html_colornames.asp)

Clemo
08-06-2007, 06:32 AM
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