Am 27.08.2012 um 21:20 schrieb Koua Lo <[email protected]>:

> Christian,
> 
> I'm trying to do a simple pie chart using ChartDirector.  It looks like I
> can do it with the "setColor" method, but I can't seem to get it to
> work. First of all, what is a colorvalue "number"?

Well, first if you don't set any colors, you get the default color palette.

If you want to set the palette, but need to use the kDataColor constant to 
define that you want to change the colors for the data, not the one for 
background or border.
Like this:
  
  // The colors to use for the sectors
  dim colors(-1) as integer
  
  colors.Append &h66aaee // make
  colors.Append &heebb22 // female
  
  // Set the sector colors
  c.setColors(c.kDataColor, colors)
  
The array can be of type integer or color as the function takes both.

Greetings
Christian

-- 
Check out the Omega Bundle:

http://www.omegabundle.com/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to