Documentation:

Back
phpchartPlus Documentation
Tsiavos Chris <[email protected]>
Date: 18-Feb-2005
License: GPL
2.2 Changing the chart generation parameters

You can configure the example.php script to generate different chart images.All you have to do is to set the EXAMPLE constant (located at the beginning of the script) to a number between 0 and 3. According to the number chosen the following chart types/features are generated/utilized:


EXAMPLE=0  
Strategy Objects used: NullCache_Strategy, TXTData_Strategy, PHPConfig_Strategy
Chart Type: BarChart
Font: ActionMan.ttf
 
EXAMPLE=1  
Strategy Objects used: CacheToFile_Strategy, PEARDBData_Strategy, XMLConfig_Strategy
Chart Type: LineChart
Font: Aristocat.ttf
 
EXAMPLE=2  
Strategy Objects used: CacheToPEARDB_Strategy, XMLData_Strategy, PHPConfig_Strategy
Chart Type: AreaChart
Font: Built-in Font
Background: bgimage.png
 
EXAMPLE=3  
Strategy Objects used: NullCache_Strategy, PHPData_Strategy, PHPConfig_Strategy
Chart Type: PieChart
Font: ActionMan.ttf
 
*The fonts used, are retrieved from the Fonts Directory
**The background image used, is retrieved from the Data Directory
 
Parameter Possible Values
ImageWidth >0
ImageHeight >0
ImageOutputType png,jpeg,gif
ChartTitle string
ChartType Area, Bar, Line, Pie
ChartUseBlending Yes, No
ChartUseAntialias Yes, No
ChartHmargin >0
ChartVmargin >0
ChartUseStatus Yes, No
ImageColor_Start Use the color picker
ImageColor_Finish Use the color picker
ImageColor_Alpha 0-127
ChartColor_Start Use the color picker
ChartColor_Finish Use the color picker
ChartColor_Alpha 0-127
FontColor Use the color picker
FontWidth  
FontHeight  
FontFileLocation  
FontSize  
LegendColors array of colors. Use the color picker
LegendColors_Alpha array of alpha values. 0-127
GridNum >0
GridMinValue <=0
GridMaxValue >0
GridColor
Use the color picker
 

 
Hosted by www.Geocities.ws

1