GDChart Pie Options GDChart v0.94b
Standard Pie Options

Option NameTypeDefault ValueNotes
GDCPIE_BGColor unsigned long 0x000000L 1
GDCPIE_PlotColor unsigned long 0xC0C0C0L 1
GDCPIE_LineColor unsigned long GDC_DFLTCOLOR 1 2
GDCPIE_EdgeColor unsigned long GDC_NOCOLOR 1 Defaults to: edging off
       
GDCPIE_other_thresholdchar -1 unused
GDCPIE_3d_angle unsigned short 45o  
GDCPIE_3d_depth unsigned short 10 pixels
GDCPIE_title char* NULL  
GDCPIE_title_size enum GDC_font_sizeGDC_MEDBOLD  
GDCPIE_label_size enum GDC_font_sizeGDC_SMALL  
GDCPIE_label_dist int 1+8/2 can be neg for lables "inside" the slice
GDCPIE_label_line unsigned char FALSE  
       
GDCPIE_explode int* (int*)NULL num slices array of explode distance (in pixels)
       
GDCPIE_Color unsigned long* NULL num slices array of individual slice colors1
GDCPIE_missing unsigned char* NULL num slices array of TRUE/FALSE
       
GDCPIE_percent_labels GDCPIE_PCT_TYPE3 GDCPIE_PCT_NONEinclude '%' and in which position
Blue: available only in v0.9.5 & v0.10 or higher
 GDCPIE_percent_fmt char * "%.0f%%" Control of PIE slice % label formatting
Purple: available only in v0.11 or higher
GDCPIE_perspective unsigned short 0 Perspective view of pie (%)
GDCPIE_title_font
GDCPIE_label_font
char * NULL Name of font to use. 4
The fontname is the full pathname to a TrueType font file, or a font face name if the GDFONTPATH environment variable or FreeType's DEFAULT_FONTPATH variable have been set intelligently.
GDCPIE_title_ptsize
GDCPIE_label_ptsize
double 0.0 Font Point size 4

All options are defaulted and optional. I.e., none need be set by the calling application.
[For now] all options are global, and owned by the client, not the lib. This will likely change in a future release.
1 Colors are specified as RGB in hex. E.g., 0x8080FF would be light blue.
2 GDC_DFLTCOLOR results in an "opposite" color of the background color.

3 
GDCPIE_PCT_TYPE
Position is relative to label
GDCPIE_PCT_NONE
GDCPIE_PCT_ABOVE
GDCPIE_PCT_BELOW
GDCPIE_PCT_RIGHT
GDCPIE_PCT_LEFT
4 Available only if built with FreeType support.