home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Shareware / Grafica / 3dpie / Examples / PieConfigScript.txt < prev    next >
Text File  |  2004-07-08  |  3KB  |  79 lines

  1. <?php
  2. /*----------------------------------------------------------*/
  3. /*                                                          */
  4. /* Very simple PHP script to demonstrate how data can be    */
  5. /* supplied to the graph from a server side process.        */
  6. /*                                                          */
  7. /* In reality this script would be extended to dynamically  */
  8. /* acquire the data from a source such as a database.       */
  9. /*                                                          */
  10. /*----------------------------------------------------------*/
  11.  
  12. print "<!-- Chart Switches -->\n";
  13. print "3D:                 true\n";
  14. print "Slabels:            true\n";
  15. print "displayPercentages: true\n";
  16. print "legend:             true\n";
  17. print "\n";
  18. print "<!-- Chart Characteristics -->\n";
  19. print "width:      330\n";
  20. print "height:     320\n";
  21. print "nPies:      3\n";
  22. print "ndecplaces: 0\n";
  23. print "depth3D:    10\n";
  24. print "3Dangle:    40\n";
  25. print "\n";
  26. print "<!-- Link Cursor --> \n";
  27. print "<!--  valid values are - crosshair, default, hand, move, text or wait -->\n";
  28. print "linkCursor: hand\n";
  29. print "\n";
  30. print "<!-- Popup segment Value Pre & Post Symbols -->\n";
  31. print "valuepresym: $\n";
  32. print "\n";
  33. print "<!-- thousand seperater -->\n";
  34. print "thousandseparator: ,\n";
  35. print "\n";
  36. print "<!-- Additional font information -->\n";
  37. print "popupfont:  Arial,B,10\n";
  38. print "slabelfont: Arial,N,10\n";
  39. print "\n";
  40. print "<!-- Additional color information -->\n";
  41. print "bgcolor:      #FFFFFF\n";
  42. print "labelcolor:   #323232\n";
  43. print "popupbgcolor: #A0A0CC\n";
  44. print "\n";
  45. print "<!-- Title --> \n";
  46. print "<!-- title   text|xpos,ypos|Font|Color Defintion -->\n";
  47. print "title: Sales by Region|5,10|Arial,B,12|#888888\n";
  48. print "\n";
  49. print "<!-- Legend Information -->\n";
  50. print "legendfont:       Arial,N,10\n";
  51. print "legendposition:   185,120\n";
  52. print "legendtitle:      Sales Region\n";
  53. print "LegendBackground: #FFFFFF\n";
  54. print "LegendBorder:     #DDDDDD\n";
  55. print "LegendtextColor:  #202020\n";
  56. print "\n";
  57. print "<!-- Free Form Text -->\n";
  58. print "<!--  textn         text,xpos,ypos,font-type,font-style,font-size,Rcolor,Gcolor,Bcolor -->\n";
  59. print "text1: Product ?|20,45|Arial,B,10|#000090\n";
  60. print "text2: Product Y|180,20|Arial,B,10|#000090\n";
  61. print "text3: Combined|20,170|Arial,B,10|#000090\n";
  62. print "\n";
  63. print "<!-- Pie Data --> \n";
  64. print "<!--  PieN   x,y,size,number of segments, seperation -->\n";
  65. print "Pie1: 50,50,60,6,0\n";
  66. print "Pie2: 215,30,60,6,5\n";
  67. print "Pie3: 40,180,90,6,0\n";
  68. print "\n";
  69. print "<!-- Segment Data --> \n";
  70. print "<!-- segmentN       series color|legend label|URL|Target Frame -->\n";
  71. print "segment1: 115,152,164|N America\n";
  72. print "segment2: 99,99,156|Europe\n";
  73. print "segment3: 185,53,8|Asia\n";
  74. print "segment4: 239,214,115|Africa\n";
  75. print "segment5: 0,63,68|Australia\n";
  76. print "segment6: 17,97,158|S America\n";
  77.  
  78.  
  79. ?>