home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 March
/
CMCD0305.ISO
/
Software
/
Shareware
/
Grafica
/
3dpie
/
Examples
/
PieConfigScript.txt
< prev
next >
Wrap
Text File
|
2004-07-08
|
3KB
|
79 lines
<?php
/*----------------------------------------------------------*/
/* */
/* Very simple PHP script to demonstrate how data can be */
/* supplied to the graph from a server side process. */
/* */
/* In reality this script would be extended to dynamically */
/* acquire the data from a source such as a database. */
/* */
/*----------------------------------------------------------*/
print "<!-- Chart Switches -->\n";
print "3D: true\n";
print "Slabels: true\n";
print "displayPercentages: true\n";
print "legend: true\n";
print "\n";
print "<!-- Chart Characteristics -->\n";
print "width: 330\n";
print "height: 320\n";
print "nPies: 3\n";
print "ndecplaces: 0\n";
print "depth3D: 10\n";
print "3Dangle: 40\n";
print "\n";
print "<!-- Link Cursor --> \n";
print "<!-- valid values are - crosshair, default, hand, move, text or wait -->\n";
print "linkCursor: hand\n";
print "\n";
print "<!-- Popup segment Value Pre & Post Symbols -->\n";
print "valuepresym: $\n";
print "\n";
print "<!-- thousand seperater -->\n";
print "thousandseparator: ,\n";
print "\n";
print "<!-- Additional font information -->\n";
print "popupfont: Arial,B,10\n";
print "slabelfont: Arial,N,10\n";
print "\n";
print "<!-- Additional color information -->\n";
print "bgcolor: #FFFFFF\n";
print "labelcolor: #323232\n";
print "popupbgcolor: #A0A0CC\n";
print "\n";
print "<!-- Title --> \n";
print "<!-- title text|xpos,ypos|Font|Color Defintion -->\n";
print "title: Sales by Region|5,10|Arial,B,12|#888888\n";
print "\n";
print "<!-- Legend Information -->\n";
print "legendfont: Arial,N,10\n";
print "legendposition: 185,120\n";
print "legendtitle: Sales Region\n";
print "LegendBackground: #FFFFFF\n";
print "LegendBorder: #DDDDDD\n";
print "LegendtextColor: #202020\n";
print "\n";
print "<!-- Free Form Text -->\n";
print "<!-- textn text,xpos,ypos,font-type,font-style,font-size,Rcolor,Gcolor,Bcolor -->\n";
print "text1: Product ?|20,45|Arial,B,10|#000090\n";
print "text2: Product Y|180,20|Arial,B,10|#000090\n";
print "text3: Combined|20,170|Arial,B,10|#000090\n";
print "\n";
print "<!-- Pie Data --> \n";
print "<!-- PieN x,y,size,number of segments, seperation -->\n";
print "Pie1: 50,50,60,6,0\n";
print "Pie2: 215,30,60,6,5\n";
print "Pie3: 40,180,90,6,0\n";
print "\n";
print "<!-- Segment Data --> \n";
print "<!-- segmentN series color|legend label|URL|Target Frame -->\n";
print "segment1: 115,152,164|N America\n";
print "segment2: 99,99,156|Europe\n";
print "segment3: 185,53,8|Asia\n";
print "segment4: 239,214,115|Africa\n";
print "segment5: 0,63,68|Australia\n";
print "segment6: 17,97,158|S America\n";
?>