Language Reference » Settings functions » setGraphArea
|
|
Latest updates
Toolbox
Google AdSense
|
setGraphArea - Define the bounding box of your charts This function allows you to define the bounding box that will be used for all charting function that will be called. It is mandatory to define the coordinates of this rectangular area before calling any chart drawing component.
Calling this function
setGraphArea($X1,$Y1,$X2,$Y2);Where : X1,Y1 is the top left corner of the bounding box.
X2,Y2 is the borrom right corner of the bounding box. Sample script /* Define the chart area*/ $myPicture->setGraphArea(20,40,680,210); This will define the charting area at position (20,40)-(680,210). Note that this command will not display anything, the transparent box in the sample picture is just here to help you figuring out where will be set the graph area.
© Copyrights
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has
been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 415 users have registered.
This page has been rendered in 0,01 seconds. Wiki revision 1.37.
|