Skip to content
This repository
Browse code

Removing examples directory.

  • Loading branch information...
commit a471208230cbd92c2b6e87a859fd2cc15271bc10 1 parent be3c68a
brandonsavage authored

Showing 233 changed files with 0 additions and 15,127 deletions. Show diff stats Hide diff stats

  1. 52  pchart/examples/buildAll.cmd
  2. 228  pchart/examples/delayedLoader/delayedLoading.js
  3. 34  pchart/examples/delayedLoader/draw.php
  4. 91  pchart/examples/delayedLoader/index.php
  5. BIN  pchart/examples/delayedLoader/wait.gif
  6. 69  pchart/examples/example.Combo.area.lines.php
  7. 76  pchart/examples/example.Combo.php
  8. 87  pchart/examples/example.Mixed.classes.php
  9. 56  pchart/examples/example.addRandomValues.php
  10. 77  pchart/examples/example.barcode.php
  11. 48  pchart/examples/example.barcode128.php
  12. 48  pchart/examples/example.barcode39.php
  13. 32  pchart/examples/example.basic.php
  14. 56  pchart/examples/example.cache.php
  15. 73  pchart/examples/example.createFunctionSerie.php
  16. 95  pchart/examples/example.createFunctionSerie.scatter.php
  17. 56  pchart/examples/example.draw2DPie.labels.php
  18. 68  pchart/examples/example.draw2DPie.php
  19. 56  pchart/examples/example.draw2DRing.php
  20. 56  pchart/examples/example.draw2DRingValues.php
  21. 53  pchart/examples/example.draw3DPie.labels.php
  22. 73  pchart/examples/example.draw3DPie.php
  23. 40  pchart/examples/example.draw3DPie.transparent.php
  24. 55  pchart/examples/example.draw3DRing.php
  25. 55  pchart/examples/example.draw3DRingValues.php
  26. 106  pchart/examples/example.drawAnscombeQuartet.php
  27. 35  pchart/examples/example.drawAntialiasPixel.php
  28. 67  pchart/examples/example.drawAreaChart.enhanced.php
  29. 62  pchart/examples/example.drawAreaChart.php
  30. 54  pchart/examples/example.drawAreaChart.simple.php
  31. 71  pchart/examples/example.drawAreaChart.threshold.php
  32. 63  pchart/examples/example.drawAreaMirror.php
  33. 40  pchart/examples/example.drawArrow.php
  34. 48  pchart/examples/example.drawArrowLabel.php
  35. 52  pchart/examples/example.drawBarChart.borders.php
  36. 41  pchart/examples/example.drawBarChart.can.php
  37. 45  pchart/examples/example.drawBarChart.floating.php
  38. 49  pchart/examples/example.drawBarChart.palette.php
  39. 65  pchart/examples/example.drawBarChart.php
  40. 42  pchart/examples/example.drawBarChart.poll.php
  41. 40  pchart/examples/example.drawBarChart.shaded.php
  42. 50  pchart/examples/example.drawBarChart.simple.php
  43. 52  pchart/examples/example.drawBarChart.spacing.php
  44. 46  pchart/examples/example.drawBarChart.span.php
  45. 40  pchart/examples/example.drawBarChart.vertical.php
  46. 57  pchart/examples/example.drawBestfit.php
  47. 40  pchart/examples/example.drawBezier.php
  48. 79  pchart/examples/example.drawBubbleChart.php
  49. 58  pchart/examples/example.drawBubbleChart.simple.php
  50. 58  pchart/examples/example.drawBubbleChart.square.php
  51. 54  pchart/examples/example.drawCircle.php
  52. 61  pchart/examples/example.drawContour.php
  53. 61  pchart/examples/example.drawDerivative.php
  54. 47  pchart/examples/example.drawDerivative.simple.php
  55. 54  pchart/examples/example.drawFilledCircle.php
  56. 57  pchart/examples/example.drawFilledRectangle.php
  57. 74  pchart/examples/example.drawFilledSplineChart.php
  58. 73  pchart/examples/example.drawFilledSplineChart.threshold.php
  59. 65  pchart/examples/example.drawFilledStepChart.php
  60. 47  pchart/examples/example.drawFromGIF.php
  61. 47  pchart/examples/example.drawFromJPG.php
  62. 47  pchart/examples/example.drawFromPNG.php
  63. 59  pchart/examples/example.drawGeometricMean.php
  64. 53  pchart/examples/example.drawGradientArea.php
  65. 59  pchart/examples/example.drawHarmonicMean.php
  66. 66  pchart/examples/example.drawIndicator.php
  67. 71  pchart/examples/example.drawLabel.barchart.php
  68. 87  pchart/examples/example.drawLabel.bubble.php
  69. 67  pchart/examples/example.drawLabel.caption.php
  70. 70  pchart/examples/example.drawLabel.php
  71. 87  pchart/examples/example.drawLabel.scatter.php
  72. 43  pchart/examples/example.drawLabel.stacked.php
  73. 51  pchart/examples/example.drawLabel.vertical.php
  74. 76  pchart/examples/example.drawLegend.php
  75. 42  pchart/examples/example.drawLine.php
  76. 66  pchart/examples/example.drawLineChart.php
  77. 67  pchart/examples/example.drawLineChart.plots.php
  78. 73  pchart/examples/example.drawLineChart.reversed.php
  79. 56  pchart/examples/example.drawLineChart.simple.php
  80. 55  pchart/examples/example.drawMedian.php
  81. 67  pchart/examples/example.drawPieLegend.php
  82. 69  pchart/examples/example.drawPlotChart.icon.php
  83. 64  pchart/examples/example.drawPlotChart.php
  84. 53  pchart/examples/example.drawPlotChart.simple.php
  85. 55  pchart/examples/example.drawPolygon.php
  86. 65  pchart/examples/example.drawProgress.php
  87. 56  pchart/examples/example.drawRectangle.php
  88. 62  pchart/examples/example.drawRoundedFilledRectangle.php
  89. 56  pchart/examples/example.drawRoundedRectangle.php
  90. 70  pchart/examples/example.drawScale.color.php
  91. 59  pchart/examples/example.drawScale.custom.php
  92. 56  pchart/examples/example.drawScale.dates.php
  93. 52  pchart/examples/example.drawScale.floating.php
  94. 65  pchart/examples/example.drawScale.labels.php
  95. 54  pchart/examples/example.drawScale.manual.php
  96. 64  pchart/examples/example.drawScale.multiple.php
  97. 53  pchart/examples/example.drawScale.php
  98. 49  pchart/examples/example.drawScale.reverse.php
  99. 69  pchart/examples/example.drawScatter.shape.php
  100. 67  pchart/examples/example.drawScatter.simple.php
  101. 81  pchart/examples/example.drawScatterBestFit.php
  102. 80  pchart/examples/example.drawScatterLineChart.php
  103. 75  pchart/examples/example.drawScatterLineChart.trigo.php
  104. 80  pchart/examples/example.drawScatterPlotChart.php
  105. 61  pchart/examples/example.drawScatterScale.manual.php
  106. 62  pchart/examples/example.drawScatterScale.php
  107. 81  pchart/examples/example.drawScatterSplineChart.php
  108. 46  pchart/examples/example.drawSimple.php
  109. 42  pchart/examples/example.drawSpline.php
  110. 66  pchart/examples/example.drawSplineChart.php
  111. 67  pchart/examples/example.drawSplineChart.reversed.php
  112. 61  pchart/examples/example.drawSplineChart.simple.php
  113. 45  pchart/examples/example.drawStackedAreaChart.normalized.php
  114. 69  pchart/examples/example.drawStackedAreaChart.php
  115. 40  pchart/examples/example.drawStackedAreaChart.simple.php
  116. 42  pchart/examples/example.drawStackedBarChart.border.php
  117. 42  pchart/examples/example.drawStackedBarChart.can.php
  118. 65  pchart/examples/example.drawStackedBarChart.php
  119. 40  pchart/examples/example.drawStackedBarChart.pyramid.php
  120. 53  pchart/examples/example.drawStackedBarChart.rounded.php
  121. 42  pchart/examples/example.drawStackedBarChart.shaded.php
  122. 79  pchart/examples/example.drawStandardDeviation.php
  123. 65  pchart/examples/example.drawStepChart.php
  124. 44  pchart/examples/example.drawStepChart.simple.php
  125. 50  pchart/examples/example.drawStockChart.median.php
  126. 65  pchart/examples/example.drawStockChart.php
  127. 49  pchart/examples/example.drawStockChart.simple.php
  128. 63  pchart/examples/example.drawSurface.palette.php
  129. 57  pchart/examples/example.drawSurface.php
  130. 58  pchart/examples/example.drawSurface.simple.php
  131. 55  pchart/examples/example.drawText.php
  132. 56  pchart/examples/example.drawThreshold.labels.php
  133. 66  pchart/examples/example.drawThreshold.php
  134. 67  pchart/examples/example.drawThresholdArea.php
  135. 67  pchart/examples/example.drawXThreshold.php
  136. 67  pchart/examples/example.drawXThresholdArea.php
  137. 64  pchart/examples/example.drawZoneChart.php
  138. 50  pchart/examples/example.drawingObjects.php
  139. 42  pchart/examples/example.normalize.php
  140. 65  pchart/examples/example.polar.php
  141. 51  pchart/examples/example.polar.values.php
  142. 55  pchart/examples/example.radar.fixedmax.php
  143. 50  pchart/examples/example.radar.labels.php
  144. 67  pchart/examples/example.radar.php
  145. 50  pchart/examples/example.radar.values.php
  146. 56  pchart/examples/example.setFontProperties.php
  147. 44  pchart/examples/example.setShadow.php
  148. 30  pchart/examples/example.singlebarcode128.php
  149. 30  pchart/examples/example.singlebarcode39.php
  150. 62  pchart/examples/example.split.php
  151. 66  pchart/examples/example.spring.complex.php
  152. 67  pchart/examples/example.spring.labels.php
  153. 65  pchart/examples/example.spring.php
  154. 70  pchart/examples/example.spring.relations.php
  155. 67  pchart/examples/example.text.alignment.php
  156. 36  pchart/examples/example.transparent.background.php
  157. 46  pchart/examples/example.writeBounds.php
  158. 264  pchart/examples/imageMap/imagemap.js
  159. 186  pchart/examples/imageMap/index.php
  160. 58  pchart/examples/imageMap/scripts/2DPie.php
  161. 58  pchart/examples/imageMap/scripts/2DRing.php
  162. 55  pchart/examples/imageMap/scripts/3DPie.php
  163. 55  pchart/examples/imageMap/scripts/3DRing.php
  164. 76  pchart/examples/imageMap/scripts/AreaChart.php
  165. 76  pchart/examples/imageMap/scripts/BarChart.labels.php
  166. 67  pchart/examples/imageMap/scripts/BarChart.php
  167. 76  pchart/examples/imageMap/scripts/BubbleChart.php
  168. 75  pchart/examples/imageMap/scripts/LineChart.php
  169. 71  pchart/examples/imageMap/scripts/PlotChart.php
  170. 56  pchart/examples/imageMap/scripts/PolarChart.php
  171. 57  pchart/examples/imageMap/scripts/RadarChart.php
  172. 90  pchart/examples/imageMap/scripts/ScatterLineChart.php
  173. 89  pchart/examples/imageMap/scripts/ScatterPlotChart.php
  174. 90  pchart/examples/imageMap/scripts/ScatterSplineChart.php
  175. 91  pchart/examples/imageMap/scripts/Shapes.php
  176. 75  pchart/examples/imageMap/scripts/SplineChart.php
  177. 67  pchart/examples/imageMap/scripts/StackedBarChart.php
  178. 71  pchart/examples/imageMap/scripts/StepChart.php
  179. 59  pchart/examples/imageMap/scripts/StockChart.php
  180. 365  pchart/examples/index.php
  181. BIN  pchart/examples/resources/accept.png
  182. BIN  pchart/examples/resources/application_view_list.png
  183. BIN  pchart/examples/resources/application_view_tile.png
  184. BIN  pchart/examples/resources/blocnote.png
  185. BIN  pchart/examples/resources/chart_bar.png
  186. BIN  pchart/examples/resources/chart_line.png
  187. BIN  pchart/examples/resources/computer.gif
  188. BIN  pchart/examples/resources/dash-explorer-blank.png
  189. BIN  pchart/examples/resources/dash-explorer-last.png
  190. BIN  pchart/examples/resources/dash-explorer-noleaf.png
  191. BIN  pchart/examples/resources/dash-explorer.png
  192. BIN  pchart/examples/resources/dash.png
  193. 25  pchart/examples/resources/dataset.txt
  194. BIN  pchart/examples/resources/folder.png
  195. BIN  pchart/examples/resources/hologram.png
  196. BIN  pchart/examples/resources/landscape1.jpg
  197. BIN  pchart/examples/resources/landscape2.jpg
  198. 6  pchart/examples/resources/palette.txt
  199. BIN  pchart/examples/resources/serie1.png
  200. BIN  pchart/examples/resources/serie2.png
  201. BIN  pchart/examples/resources/wait.gif
  202. BIN  pchart/examples/sandbox/graphix/accept.png
  203. BIN  pchart/examples/sandbox/graphix/application_form.png
  204. BIN  pchart/examples/sandbox/graphix/background.console.png
  205. BIN  pchart/examples/sandbox/graphix/chart_bar.png
  206. BIN  pchart/examples/sandbox/graphix/chart_bar_edit.png
  207. BIN  pchart/examples/sandbox/graphix/chart_curve.png
  208. BIN  pchart/examples/sandbox/graphix/chart_line.png
  209. BIN  pchart/examples/sandbox/graphix/cog.png
  210. BIN  pchart/examples/sandbox/graphix/color_swatch.png
  211. BIN  pchart/examples/sandbox/graphix/comment.png
  212. BIN  pchart/examples/sandbox/graphix/database_table.png
  213. BIN  pchart/examples/sandbox/graphix/layout_edit.png
  214. BIN  pchart/examples/sandbox/graphix/page_edit.png
  215. BIN  pchart/examples/sandbox/graphix/paintcan.png
  216. BIN  pchart/examples/sandbox/graphix/shape_flip_vertical.png
  217. BIN  pchart/examples/sandbox/graphix/tab.png
  218. BIN  pchart/examples/sandbox/graphix/vector.png
  219. BIN  pchart/examples/sandbox/graphix/wait.gif
  220. BIN  pchart/examples/sandbox/graphix/wand.png
  221. BIN  pchart/examples/sandbox/graphix/wrench.png
  222. BIN  pchart/examples/sandbox/includes/arrow.gif
  223. 61  pchart/examples/sandbox/includes/constants.txt
  224. BIN  pchart/examples/sandbox/includes/cross.gif
  225. 656  pchart/examples/sandbox/includes/functions.js
  226. BIN  pchart/examples/sandbox/includes/hs.png
  227. BIN  pchart/examples/sandbox/includes/hv.png
  228. 841  pchart/examples/sandbox/includes/jscolor.js
  229. 285  pchart/examples/sandbox/includes/rounded_corners_lite.inc.js
  230. 707  pchart/examples/sandbox/index.php
  231. 891  pchart/examples/sandbox/script/render.php
  232. 24  pchart/examples/sandbox/script/session.php
  233. 89  pchart/examples/sandbox/style.css
52  pchart/examples/buildAll.cmd
... ...
@@ -1,52 +0,0 @@
1  
-ECHO OFF
2  
-setlocal ENABLEDELAYEDEXPANSION
3  
-
4  
-CLS
5  
-ECHO.
6  
-ECHO     ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
7  
-ECHO     º                                                                     º
8  
-ECHO     º  Processing all examples (this may takes 1-2 minutes)               º
9  
-ECHO     º                                                                     º
10  
-ECHO     ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
11  
-ECHO.
12  
-
13  
-php -v 1>NUL 2>NUL
14  
-IF %ERRORLEVEL% == 0 GOTO getVersion
15  
-GOTO noPHP
16  
-
17  
-:getVersion
18  
-FOR /F "tokens=1,2 delims= " %%G IN ('php -v') DO (
19  
- IF %%G==PHP SET PHPVersion=%%H
20  
- )
21  
-
22  
-:render
23  
-ECHO     The PHP binaries (%PHPVersion%) have been located in your system PATH
24  
-ECHO.
25  
-ECHO Processing examples : >resources\errors.log
26  
-
27  
-REM SET /P Var="   Progress : "<NUL
28  
-
29  
-FOR %%f IN (*.*) DO (
30  
-   set t=%%f
31  
-   if !t:~-3! == php (
32  
-     SET /P Var=þ<NUL
33  
-     ECHO %%f >>resources\errors.log
34  
-     php -q "%~dp0%%f" 1>NUL 2>>resources\errors.log
35  
-    )
36  
-)
37  
-
38  
-ECHO.
39  
-ECHO.
40  
-ECHO     All the example have been rendered in the following folder :
41  
-ECHO.
42  
-ECHO       %~dp0pictures\
43  
-GOTO end
44  
-
45  
-:noPHP
46  
-
47  
-ECHO     The PHP binaries can't be found. We strongly advise you to put it in
48  
-ECHO     the system path variable.
49  
-ECHO.
50  
-ECHO     Examples rendering has been aborded.
51  
-:end
52  
-PAUSE >NUL
228  pchart/examples/delayedLoader/delayedLoading.js
... ...
@@ -1,228 +0,0 @@
1  
- /*
2  
-     delayedLoader - JS to delay out of sight pictures rendering
3  
-
4  
-     Version     : 2.0.2
5  
-     Made by     : Jean-Damien POGOLOTTI
6  
-     Last Update : 10/12/10
7  
-
8  
-     This file can be distributed under the license you can find at :
9  
-
10  
-                       http://www.pchart.net/license
11  
-
12  
-     You can find the whole class documentation on the pChart web site.
13  
- */
14  
-
15  
- var PictureCache  = new Array();
16  
- var PictureCount  = 0;
17  
- var WaitPicture   = "wait.gif";
18  
- var DivClassName  = "pChart";
19  
- var DefaultWidth  = 70;
20  
- var DefaultHeight = 230;
21  
- var DefaultAlt    = "pChart rendered picture";
22  
-
23  
-
24  
- /* Do the DOM document processing */
25  
- function loaderInit()
26  
-  {
27  
-   WindowSize   = getWindowSize();
28  
-   WindowHeight = WindowSize[1];
29  
-   Offset       = getScrollXY();
30  
-   HeightOffset = Offset[1];
31  
-
32  
-   /* Enumerate the tags */
33  
-   Links = document.getElementsByTagName("a");   
34  
-   for (i = 0; i < Links.length; i++)   
35  
-    {   
36  
-     className = Links[i].className;   
37  
-
38  
-     if ( className == DivClassName )   
39  
-      {   
40  
-       ObjectWidth  = Links[i].getAttribute("data-pchart-width");
41  
-       ObjectHeight = Links[i].getAttribute("data-pchart-height");
42  
-       ObjectID     = Links[i].id;
43  
-       ObjectTop    = Links[i].offsetTop;
44  
-       ObjectURL    = Links[i].href;
45  
-       ObjectAlt    = Links[i].getAttribute("data-pchart-alt");
46  
-
47  
-       if ( ObjectWidth == null )  { ObjectWidth  = DefaultWidth; }
48  
-       if ( ObjectHeight == null ) { ObjectHeight = DefaultHeight; }
49  
-       if ( ObjectAlt == null )    { ObjectAlt    = DefaultAlt; }
50  
-
51  
-       if (ObjectID == "") { ObjectID = "pChart-"+i; Links[i].id = ObjectID; }
52  
-
53  
-       PictureCache[PictureCount]    = new Array();
54  
-       PictureCache[PictureCount][0] = ObjectID;
55  
-       PictureCache[PictureCount][1] = ObjectTop;
56  
-       PictureCache[PictureCount][2] = ObjectURL;
57  
-       PictureCache[PictureCount][3] = ObjectAlt;
58  
-       PictureCache[PictureCount][4] = ObjectWidth;
59  
-       PictureCache[PictureCount][5] = ObjectHeight;
60  
-
61  
-       PictureCount++;
62  
-      }   
63  
-    }   
64  
-
65  
-   /* Replace the <A> tags by <DIV> ones and attach the loader */
66  
-   for(i=0;i<PictureCount;i++)
67  
-    {
68  
-     ATag    = document.getElementById(PictureCache[i][0]);
69  
-     DivTag  = document.createElement("div");
70  
-     DivID   = "pChart-Div"+i; PictureCache[i][0] = DivID;
71  
-
72  
-     DivTag.setAttribute("id", DivID);
73  
-     DivTag.style.width  = PictureCache[i][4];
74  
-     DivTag.style.height = PictureCache[i][5];
75  
-     DivTag.style.backgroundColor = "#E0E0E0";
76  
-
77  
-     DivTag2  = ATag.parentNode.replaceChild(DivTag, ATag);
78  
-
79  
-     DivTop = DivTag.offsetTop;
80  
-     PictureCache[i][1] = DivTop;
81  
-
82  
-     changeOpac(50, i);
83  
-     changeContent("<img src='"+WaitPicture+"' width=24 height=24 alt=''/>",i);
84  
-
85  
-     if ( HeightOffset + WindowHeight > PictureCache[i][1] ) { triggerVisible(i); }
86  
-    }
87  
-  }
88  
-
89  
- /* Replace the contents of the delayed loading DIV */
90  
- function changeContent(html, id)
91  
-  { DivID = PictureCache[id][0]; document.getElementById(DivID).innerHTML = html; }
92  
-
93  
- /* Trigger the picture rendering when the pChart DIV became visible */
94  
- function triggerVisible(PictureID)
95  
-  {
96  
-   if ( !PictureCache[PictureID][6] == true )
97  
-    {
98  
-     PictureCache[PictureID][6] = true;
99  
-     ajaxRender(PictureCache[PictureID][2],PictureID);
100  
-    }
101  
-  }
102  
-
103  
- /* Catch the navigator window scrolling event */
104  
- function scrollEvent()
105  
-  {
106  
-   WindowSize   = getWindowSize();
107  
-   WindowHeight = WindowSize[1];
108  
-   Offset       = getScrollXY();
109  
-   HeightOffset = Offset[1];
110  
-
111  
-   for(i=0;i<=PictureCount-1;i++) { if ( HeightOffset + WindowHeight > PictureCache[i][1] ) { triggerVisible(i); } }
112  
-  }
113  
-
114  
- /* Cross browser X/Y window offset gatherer */
115  
- function getScrollXY()
116  
-  {
117  
-   var scrOfX = 0, scrOfY = 0;
118  
-
119  
-   if( typeof( window.pageYOffset ) == 'number' )
120  
-    { scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; }
121  
-   else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) )
122  
-    { scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; }
123  
-   else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) )
124  
-    { scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; }
125  
-
126  
-   return [ scrOfX, scrOfY ];
127  
-  }
128  
-
129  
- /* Cross browser X/Y window size gatherer */
130  
- function getWindowSize()
131  
-  {
132  
-   var myWidth = 0, myHeight = 0;
133  
-
134  
-   if( typeof( window.innerWidth ) == 'number' )
135  
-    { myWidth = window.innerWidth; myHeight = window.innerHeight; }
136  
-   else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
137  
-    { myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; }
138  
-   else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
139  
-    { myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; }
140  
-
141  
-   return [ myWidth, myHeight ];
142  
-  }
143  
-
144  
- /* Cross browser alpha transparency changer */
145  
- function changeOpac(opacity, id)   
146  
-  {
147  
-   DivID = PictureCache[id][0];
148  
-
149  
-   var object = document.getElementById(DivID).style;   
150  
-   object.opacity = (opacity / 100);   
151  
-   object.MozOpacity = (opacity / 100);   
152  
-   object.KhtmlOpacity = (opacity / 100);   
153  
-   object.filter = "alpha(opacity=" + opacity + ")";   
154  
-  }   
155  
-
156  
- /* Shade in-out function */
157  
- function opacity(id, opacStart, opacEnd, millisec)
158  
-  {
159  
-   var speed = Math.round(millisec / 100);
160  
-   var timer = 0;
161  
-
162  
-   if(opacStart > opacEnd)
163  
-    {
164  
-     for(i = opacStart; i >= opacEnd; i--)
165  
-      {
166  
-       setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
167  
-       timer++;
168  
-      }
169  
-    }
170  
-   else if(opacStart < opacEnd)
171  
-    {
172  
-     for(i = opacStart; i <= opacEnd; i++)
173  
-      {
174  
-       setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
175  
-       timer++;
176  
-      }
177  
-    }
178  
-  }
179  
-
180  
- /* Start the loader */
181  
- function StartFade(PictureID)
182  
-  {
183  
-   Loader     = new Image();
184  
-   URL        = PictureCache[PictureID][2];
185  
-   Loader.src = URL;   
186  
-   setTimeout("CheckLoadingStatus("+PictureID+")", 200);   
187  
-  }
188  
-
189  
- /* check the picture loading status */
190  
- function CheckLoadingStatus(PictureID)   
191  
-  {
192  
-   DivID = PictureCache[PictureID][0];
193  
-   URL   = PictureCache[PictureID][2];
194  
-   Alt   = PictureCache[PictureID][3];
195  
-
196  
-   if ( Loader.complete == true )   
197  
-    {
198  
-     changeOpac(0, PictureID);
199  
-     HTMLResult = "<center><img src='" + URL + "' alt='"+Alt+"'/></center>";
200  
-     document.getElementById(DivID).innerHTML = HTMLResult;
201  
-
202  
-     opacity(PictureID,0,100,100);
203  
-    }
204  
-   else  
205  
-    setTimeout("CheckLoadingStatus("+PictureID+")", 200);   
206  
-  }   
207  
-
208  
- /* Compute the pChart picture in background */
209  
- function ajaxRender(URL,PictureID)
210  
-  {
211  
-   var xmlhttp=false;   
212  
-   /*@cc_on @*/  
213  
-   /*@if (@_jscript_version >= 5)  
214  
-    try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } }  
215  
-   @end @*/  
216  
-  
217  
-   if (!xmlhttp && typeof XMLHttpRequest!='undefined')   
218  
-    { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp=false; } }   
219  
-  
220  
-   if (!xmlhttp && window.createRequest)   
221  
-    { try { xmlhttp = window.createRequest(); } catch (e) { xmlhttp=false; } }   
222  
-  
223  
-   xmlhttp.open("GET", URL,true);
224  
-
225  
-   xmlhttp.onreadystatechange=function()
226  
-    { if (xmlhttp.readyState==4) { StartFade(PictureID); } }   
227  
-   xmlhttp.send(null)   
228  
-  }
34  pchart/examples/delayedLoader/draw.php
... ...
@@ -1,34 +0,0 @@
1  
-<?php   
2  
- if ( !isset($_GET["Seed"]) )
3  
-  { $Seed = "Unknown"; }
4  
- else
5  
-  { $Seed = $_GET["Seed"]; }
6  
-
7  
- /* pChart library inclusions */
8  
- include("../../class/pDraw.class.php");
9  
- include("../../class/pImage.class.php");
10  
-
11  
- /* Create the pChart object */
12  
- $myPicture = new pImage(700,230);
13  
- $myPicture->drawGradientArea(0,0,700,230,DIRECTION_HORIZONTAL,array("StartR"=>220,"StartG"=>220,"StartB"=>220,"EndR"=>180,"EndG"=>180,"EndB"=>180,"Alpha"=>100));
14  
- $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,array("StartR"=>220,"StartG"=>220,"StartB"=>220,"EndR"=>180,"EndG"=>180,"EndB"=>180,"Alpha"=>50));
15  
- $RectangleSettings = array("R"=>180,"G"=>180,"B"=>180,"Alpha"=>100);
16  
-
17  
- /* Add a border to the picture */
18  
- $myPicture->drawRectangle(0,0,699,229,array("R"=>150,"G"=>150,"B"=>150));
19  
-
20  
- /* Write the title */ 
21  
- $myPicture->setFontProperties(array("FontName"=>"../../fonts/advent_light.ttf","FontSize"=>40));
22  
- $myPicture->drawText(130,130,"Delayed loading script",array("R"=>255,"G"=>255,"B"=>255));
23  
-
24  
- /* Write the seed # */ 
25  
- $myPicture->setFontProperties(array("FontName"=>"../../fonts/advent_light.ttf","FontSize"=>10));
26  
- $myPicture->drawText(130,140,"Seed # : ".$Seed,array("R"=>255,"G"=>255,"B"=>255));
27  
-
28  
- /* Draw a bezier curve */ 
29  
- $BezierSettings = array("R"=>255,"G"=>255,"B"=>255,"Ticks"=>4,"DrawArrow"=>TRUE,"ArrowTwoHeads"=>TRUE);
30  
- $myPicture->drawBezier(360,170,670,120,430,100,560,190,$BezierSettings);
31  
-
32  
- /* Render the picture (choose the best way) */
33  
- $myPicture->autoOutput("draw.png");
34  
-?>
91  pchart/examples/delayedLoader/index.php
... ...
@@ -1,91 +0,0 @@
1  
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
2  
-<head>
3  
- <script src='delayedLoading.js' type="text/javascript"></script>
4  
- <title>pChart 2.x - Delayed loading</title>
5  
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
6  
- <style>
7  
-  html       { height: 100%; }
8  
-  body       { background-color: #F0F0F0; font-family: tahoma; font-size: 14px; height: 100%;}
9  
-  td  	     { font-family: tahoma; font-size: 11px; }
10  
-  div.txt    { font-family: tahoma; font-size: 11px; width: 660px; padding: 15px; }
11  
-  a.smallLink:link    { text-decoration: none; color: #6A6A6A; }
12  
-  a.smallLink:visited { text-decoration: none; color: #6A6A6A; }
13  
-  a.smallLink:hover   { text-decoration: underline; color: #6A6A6A; }
14  
-  a.pChart { text-decoration: none; color: #6A6A6A; }
15  
- </style>
16  
-</head>
17  
-<body onscroll="scrollEvent();" onload="loaderInit();">
18  
-
19  
- <table style='border: 2px solid #FFFFFF;'><tr><td>
20  
-  <div style='font-size: 11px; padding: 2px; color: #FFFFFF; background-color: #666666; border-bottom: 3px solid #484848;'>&nbsp;Navigation</div>
21  
-  <table style='padding: 1px; background-color: #E0E0E0; border: 1px solid #D0D0D0; border-top: 1px solid #FFFFFF;'><tr>
22  
-   <td width=16><img src='../resources/application_view_tile.png' width=16 height=16 alt=''/></td>
23  
-   <td width=95>&nbsp;<a class=smallLink href='../'>Examples</a></td>
24  
-   <td width=16><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
25  
-   <td width=95>&nbsp;<a class=smallLink href='../sandbox/'>Sandbox</a></td>
26  
-   <td width=16><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
27  
-   <td width=95>&nbsp;<b>Delayed loader</b></td>
28  
-   <td width=16><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
29  
-   <td width=100>&nbsp;<a class=smallLink href='../imageMap/'>Image Map</a></td>
30  
-  </tr></table>
31  
- </td></tr></table>
32  
-
33  
- <br/>
34  
-
35  
- <div class=txt>
36  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
37  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
38  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
39  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
40  
- </div>
41  
- <a class='pChart' href='draw.php?Seed=1' data-pchart-alt='Picture1' data-pchart-width='700' data-pchart-height='230'>Picture 1</a>
42  
- <div class=txt>
43  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
44  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
45  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
46  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
47  
- </div>
48  
- <a class='pChart' href='draw.php?Seed=2' data-pchart-alt='Picture2'>Picture 2</a>
49  
- <div class=txt>
50  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
51  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
52  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
53  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
54  
- </div>
55  
- <a class='pChart' href='draw.php?Seed=3' data-pchart-alt='Picture3'>Picture 3</a>
56  
- <div class=txt>
57  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
58  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
59  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
60  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
61  
- </div>
62  
- <a class='pChart' href='draw.php?Seed=4' data-pchart-alt='Picture4'>Picture 4</a>
63  
- <div class=txt>
64  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
65  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
66  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
67  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
68  
- </div>
69  
- <a class='pChart' href='draw.php?Seed=5' data-pchart-alt='Picture5'>Picture 5</a>
70  
- <div class=txt>
71  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
72  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
73  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
74  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
75  
- </div>
76  
- <a class='pChart' href='draw.php?Seed=6' data-pchart-alt='Picture6'>Picture 6</a>
77  
- <div class=txt>
78  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
79  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
80  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
81  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
82  
- </div>
83  
- <a class='pChart' href='draw.php?Seed=7' data-pchart-alt='Picture7'>Picture 7</a>
84  
- <div class=txt>
85  
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
86  
-  aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
87  
-  Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
88  
-  occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
89  
- </div>
90  
-</body>
91  
-</html>
BIN  pchart/examples/delayedLoader/wait.gif
69  pchart/examples/example.Combo.area.lines.php
... ...
@@ -1,69 +0,0 @@
1  
-<?php   
2  
- /* CAT:Combo */
3  
-
4  
- /* pChart library inclusions */
5  
- include("../class/pData.class.php");
6  
- include("../class/pDraw.class.php");
7  
- include("../class/pImage.class.php");
8  
-
9  
- /* Create and populate the pData object */
10  
- $MyData = new pData();  
11  
- $MyData->addPoints(array(4,2,10,12,8,3),"Probe 1");
12  
- $MyData->addPoints(array(3,12,15,8,5,5),"Probe 2");
13  
- $MyData->setSerieTicks("Probe 2",4);
14  
- $MyData->setAxisName(0,"Temperatures");
15  
- $MyData->addPoints(array("Jan","Feb","Mar","Apr","May","Jun"),"Labels");
16  
- $MyData->setSerieDescription("Labels","Months");
17  
- $MyData->setAbscissa("Labels");
18  
-
19  
- /* Create the pChart object */
20  
- $myPicture = new pImage(700,230,$MyData);
21  
-
22  
- /* Turn of Antialiasing */
23  
- $myPicture->Antialias = FALSE;
24  
-
25  
- /* Draw the background */ 
26  
- $Settings = array("R"=>170, "G"=>183, "B"=>87, "Dash"=>1, "DashR"=>190, "DashG"=>203, "DashB"=>107);
27  
- $myPicture->drawFilledRectangle(0,0,700,230,$Settings); 
28  
-
29  
- /* Overlay with a gradient */ 
30  
- $Settings = array("StartR"=>219, "StartG"=>231, "StartB"=>139, "EndR"=>1, "EndG"=>138, "EndB"=>68, "Alpha"=>50);
31  
- $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,$Settings); 
32  
- 
33  
- /* Add a border to the picture */
34  
- $myPicture->drawRectangle(0,0,699,229,array("R"=>0,"G"=>0,"B"=>0));
35  
- 
36  
- /* Write the chart title */ 
37  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
38  
- $myPicture->drawText(150,35,"Average temperature",array("FontSize"=>20,"Align"=>TEXT_ALIGN_BOTTOMMIDDLE));
39  
-
40  
- /* Set the default font */
41  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6));
42  
-
43  
- /* Define the chart area */
44  
- $myPicture->setGraphArea(60,40,650,200);
45  
-
46  
- /* Draw the scale */
47  
- $scaleSettings = array("XMargin"=>10,"YMargin"=>10,"Floating"=>TRUE,"GridR"=>255,"GridG"=>255,"GridB"=>255,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE);
48  
- $myPicture->drawScale($scaleSettings);
49  
-
50  
- /* Write the chart legend */
51  
- $myPicture->drawLegend(540,20,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
52  
-
53  
- /* Turn on Antialiasing */
54  
- $myPicture->Antialias = TRUE;
55  
-
56  
- /* Draw the area chart */
57  
- $MyData->setSerieDrawable("Probe 1",TRUE);
58  
- $MyData->setSerieDrawable("Probe 2",FALSE);
59  
- $myPicture->drawAreaChart();
60  
-
61  
- /* Draw a line and a plot chart on top */
62  
- $MyData->setSerieDrawable("Probe 2",TRUE);
63  
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
64  
- $myPicture->drawLineChart();
65  
- $myPicture->drawPlotChart(array("PlotBorder"=>TRUE,"PlotSize"=>3,"BorderSize"=>1,"Surrounding"=>-60,"BorderAlpha"=>80));
66  
-
67  
- /* Render the picture (choose the best way) */
68  
- $myPicture->autoOutput("pictures/example.Combo.area.lines.png");
69  
-?>
76  pchart/examples/example.Combo.php
... ...
@@ -1,76 +0,0 @@
1  
-<?php
2  
- /* CAT:Combo */
3  
-
4  
- /* pChart library inclusions */
5  
- include("../class/pData.class.php");
6  
- include("../class/pDraw.class.php");
7  
- include("../class/pImage.class.php");
8  
-
9  
- /* Create the pData object with some random values*/
10  
- $MyData = new pData(); 
11  
- $MyData->addPoints(array(30,24,32),"This year");
12  
- $MyData->addPoints(array(28,20,27),"Last year");
13  
- $MyData->setSerieTicks("Last year",4);
14  
- $MyData->addPoints(array("Year","Month","Day"),"Labels");
15  
- $MyData->setAbscissa("Labels");
16  
-
17  
- /* Create the pChart object */
18  
- $myPicture = new pImage(700,230,$MyData);
19  
-
20  
- /* Turn on antialiasing */
21  
- $myPicture->Antialias = FALSE;
22  
-
23  
- /* Create a solid background */
24  
- $Settings = array("R"=>179, "G"=>217, "B"=>91, "Dash"=>1, "DashR"=>199, "DashG"=>237, "DashB"=>111);
25  
- $myPicture->drawFilledRectangle(0,0,700,230,$Settings);
26  
-
27  
- /* Do a gradient overlay */
28  
- $Settings = array("StartR"=>194, "StartG"=>231, "StartB"=>44, "EndR"=>43, "EndG"=>107, "EndB"=>58, "Alpha"=>50);
29  
- $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,$Settings);
30  
- $myPicture->drawGradientArea(0,0,700,20,DIRECTION_VERTICAL,array("StartR"=>0,"StartG"=>0,"StartB"=>0,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>100));
31  
-
32  
- /* Add a border to the picture */
33  
- $myPicture->drawRectangle(0,0,699,229,array("R"=>0,"G"=>0,"B"=>0));
34  
- 
35  
- /* Write the picture title */ 
36  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Silkscreen.ttf","FontSize"=>6));
37  
- $myPicture->drawText(10,13,"Chart title",array("R"=>255,"G"=>255,"B"=>255));
38  
-
39  
- /* Draw the scale */
40  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6));
41  
- $myPicture->setGraphArea(50,60,670,190);
42  
- $myPicture->drawFilledRectangle(50,60,670,190,array("R"=>255,"G"=>255,"B"=>255,"Surrounding"=>-200,"Alpha"=>10));
43  
- $myPicture->drawScale(array("CycleBackground"=>TRUE));
44  
-
45  
- /* Graph title */
46  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
47  
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
48  
- $myPicture->drawText(50,52,"Chart subtitle",array("FontSize"=>20,"Align"=>TEXT_ALIGN_BOTTOMLEFT));
49  
-
50  
- /* Draw the bar chart chart */
51  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6));
52  
- $MyData->setSerieDrawable("Last year",FALSE);
53  
- $myPicture->drawBarChart();
54  
-
55  
- /* Turn on antialiasing */
56  
- $myPicture->Antialias = TRUE;
57  
-
58  
- /* Draw the line and plot chart */
59  
- $MyData->setSerieDrawable("Last year",TRUE);
60  
- $MyData->setSerieDrawable("This year",FALSE);
61  
- $myPicture->setShadow(TRUE,array("X"=>2,"Y"=>2,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
62  
- $myPicture->drawSplineChart();
63  
-
64  
- $myPicture->setShadow(FALSE);
65  
- $myPicture->drawPlotChart(array("PlotSize"=>3,"PlotBorder"=>TRUE,"BorderSize"=>3,"BorderAlpha"=>20));
66  
-
67  
- /* Make sure all series are drawable before writing the scale */
68  
- $MyData->drawAll();
69  
-
70  
- /* Write the legend */
71  
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
72  
- $myPicture->drawLegend(580,35,array("Style"=>LEGEND_ROUND,"Alpha"=>20,"Mode"=>LEGEND_HORIZONTAL));
73  
-
74  
- /* Render the picture (choose the best way) */
75  
- $myPicture->autoOutput("pictures/example.combo.png");
76  
-?>
87  pchart/examples/example.Mixed.classes.php
... ...
@@ -1,87 +0,0 @@
1  
-<?php   
2  
- /* CAT:Combo */
3  
-
4  
- /* pChart library inclusions */
5  
- include("../class/pData.class.php");
6  
- include("../class/pDraw.class.php");
7  
- include("../class/pImage.class.php");
8  
- include("../class/pIndicator.class.php");
9  
-
10  
- /* Create and populate the pData object */
11  
- $MyData = new pData();  
12  
- for($i=0;$i<=80;$i++) { $MyData->addPoints(($i/10)*($i/10),"Statistical probability"); }
13  
- $MyData->setAxisName(0,"Probability");
14  
- $MyData->setAxisUnit(0,"%");
15  
-
16  
- /* Create the pChart object */
17  
- $myPicture = new pImage(700,350,$MyData);
18  
-
19  
- /* Turn of Antialiasing */
20  
- $myPicture->Antialias = FALSE;
21  
-
22  
- /* Draw the background */
23  
- $Settings = array("R"=>170, "G"=>183, "B"=>87, "Dash"=>1, "DashR"=>190, "DashG"=>203, "DashB"=>107);
24  
- $myPicture->drawFilledRectangle(0,0,700,350,$Settings);
25  
-
26  
- /* Overlay with a gradient */
27  
- $Settings = array("StartR"=>219, "StartG"=>231, "StartB"=>139, "EndR"=>1, "EndG"=>138, "EndB"=>68, "Alpha"=>50);
28  
- $myPicture->drawGradientArea(0,0,700,220,DIRECTION_VERTICAL,$Settings);
29  
- $Settings = array("StartR"=>1, "StartG"=>138, "StartB"=>68, "EndR"=>219, "EndG"=>231, "EndB"=>239, "Alpha"=>50);
30  
- $myPicture->drawGradientArea(0,222,700,350,DIRECTION_VERTICAL,$Settings);
31  
-
32  
- /* Add a border to the picture */
33  
- $myPicture->drawRectangle(0,0,699,349,array("R"=>0,"G"=>0,"B"=>0));
34  
- 
35  
- /* Set the default font */
36  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6));
37  
-
38  
- /* Define the chart area */
39  
- $myPicture->setGraphArea(60,40,650,200);
40  
-
41  
- /* Draw the scale */
42  
- $scaleSettings = array("XMargin"=>10,"YMargin"=>10,"Floating"=>TRUE,"LabelSkip"=>4,"GridR"=>220,"GridG"=>220,"GridB"=>220,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE);
43  
- $myPicture->drawScale($scaleSettings);
44  
-
45  
- /* Turn on Antialiasing */
46  
- $myPicture->Antialias = TRUE;
47  
-
48  
- /* Draw the line of best fit */
49  
- $myPicture->drawBestFit(array("Ticks"=>4,"Alpha"=>50,"R"=>0,"G"=>0,"B"=>0));
50  
-
51  
- /* Draw the line chart */
52  
- $myPicture->drawLineChart();
53  
-
54  
- /* Draw the series derivative graph */
55  
- $myPicture->drawDerivative(array("ShadedSlopeBox"=>TRUE,"CaptionLine"=>TRUE));
56  
-
57  
- /* Write the chart legend */
58  
- $myPicture->drawLegend(570,20,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
59  
-
60  
- /* Set the default font & shadow settings */
61  
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
62  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
63  
-
64  
- /* Write the chart title */ 
65  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
66  
- $myPicture->drawText(150,35,"Probability of heart disease",array("FontSize"=>20,"Align"=>TEXT_ALIGN_BOTTOMMIDDLE,"R"=>255,"G"=>255,"B"=>255));
67  
-
68  
- /* Write a label over the chart */
69  
- $LabelSettings = array("DrawVerticalLine"=>TRUE,"TitleMode"=>LABEL_TITLE_BACKGROUND,"TitleR"=>255,"TitleG"=>255,"TitleB"=>255);
70  
- $myPicture->writeLabel("Statistical probability",35,$LabelSettings);
71  
-
72  
- /* Create the pIndicator object */ 
73  
- $Indicator = new pIndicator($myPicture);
74  
-
75  
- /* Define the indicator sections */
76  
- $IndicatorSections   = "";
77  
- $IndicatorSections[] = array("Start"=>0,"End"=>29,"Caption"=>"Low","R"=>0,"G"=>142,"B"=>176);
78  
- $IndicatorSections[] = array("Start"=>30,"End"=>49,"Caption"=>"Moderate","R"=>108,"G"=>157,"B"=>49);
79  
- $IndicatorSections[] = array("Start"=>50,"End"=>80,"Caption"=>"High","R"=>226,"G"=>74,"B"=>14);
80  
-
81  
- /* Draw the 2nd indicator */
82  
- $IndicatorSettings = array("Values"=>35,"Unit"=>"%","CaptionPosition"=>INDICATOR_CAPTION_BOTTOM,"CaptionR"=>0,"CaptionG"=>0,"CaptionB"=>0,"DrawLeftHead"=>FALSE,"ValueDisplay"=>INDICATOR_VALUE_LABEL,"ValueFontName"=>"../fonts/Forgotte.ttf","ValueFontSize"=>15,"IndicatorSections"=>$IndicatorSections);
83  
- $Indicator->draw(60,275,580,30,$IndicatorSettings);
84  
-
85  
- /* Render the picture (choose the best way) */
86  
- $myPicture->autoOutput("pictures/example.mixed.png");
87  
-?>
56  pchart/examples/example.addRandomValues.php
... ...
@@ -1,56 +0,0 @@
1  
-<?php   
2  
- /* CAT:Misc */
3  
-
4  
- /* pChart library inclusions */
5  
- include("../class/pData.class.php");
6  
- include("../class/pDraw.class.php");
7  
- include("../class/pImage.class.php");
8  
-
9  
- /* Create the pData object with some random values*/
10  
- $MyData = new pData();  
11  
- $MyData->addRandomValues("Probe 1",array("Values"=>30,"Min"=>0,"Max"=>4));
12  
- $MyData->addRandomValues("Probe 2",array("Values"=>30,"Min"=>6,"Max"=>10));
13  
- $MyData->addRandomValues("Probe 3",array("Values"=>30,"Min"=>12,"Max"=>16));
14  
- $MyData->addRandomValues("Probe 4",array("Values"=>30,"Min"=>18,"Max"=>22));
15  
- $MyData->setAxisName(0,"Probes");
16  
-
17  
- /* Create the pChart object */
18  
- $myPicture = new pImage(700,230,$MyData);
19  
-
20  
- /* Create a solid background */
21  
- $Settings = array("R"=>179, "G"=>217, "B"=>91, "Dash"=>1, "DashR"=>199, "DashG"=>237, "DashB"=>111);
22  
- $myPicture->drawFilledRectangle(0,0,700,230,$Settings);
23  
-
24  
- /* Do a gradient overlay */
25  
- $Settings = array("StartR"=>194, "StartG"=>231, "StartB"=>44, "EndR"=>43, "EndG"=>107, "EndB"=>58, "Alpha"=>50);
26  
- $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,$Settings);
27  
- $myPicture->drawGradientArea(0,0,700,20,DIRECTION_VERTICAL,array("StartR"=>0,"StartG"=>0,"StartB"=>0,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>100));
28  
-
29  
- /* Add a border to the picture */
30  
- $myPicture->drawRectangle(0,0,699,229,array("R"=>0,"G"=>0,"B"=>0));
31  
- 
32  
- /* Write the picture title */ 
33  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Silkscreen.ttf","FontSize"=>6));
34  
- $myPicture->drawText(10,13,"addRandomValues() :: assess your scales",array("R"=>255,"G"=>255,"B"=>255));
35  
-
36  
- /* Draw the scale */
37  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
38  
- $myPicture->setGraphArea(50,60,670,190);
39  
- $myPicture->drawFilledRectangle(50,60,670,190,array("R"=>255,"G"=>255,"B"=>255,"Surrounding"=>-200,"Alpha"=>10));
40  
- $myPicture->drawScale(array("CycleBackground"=>TRUE,"LabelSkip"=>4,"DrawSubTicks"=>TRUE));
41  
-
42  
- /* Graph title */
43  
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
44  
- $myPicture->drawText(50,52,"Magnetic noise",array("FontSize"=>20,"Align"=>TEXT_ALIGN_BOTTOMLEFT));
45  
-
46  
- /* Draw the data series */
47  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6));
48  
- $myPicture->drawSplineChart();
49  
- $myPicture->setShadow(FALSE);
50  
-
51  
- /* Write the legend */
52  
- $myPicture->drawLegend(475,50,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
53  
-
54  
- /* Render the picture (choose the best way) */
55  
- $myPicture->autoOutput("pictures/example.addRandomValues.png");
56  
-?>
77  pchart/examples/example.barcode.php
... ...
@@ -1,77 +0,0 @@
1  
-<?php   
2  
- /* CAT:Barcode */
3  
-
4  
- /* pChart library inclusions */
5  
- include("../class/pDraw.class.php");
6  
- include("../class/pBarcode39.class.php");
7  
- include("../class/pBarcode128.class.php");
8  
- include("../class/pImage.class.php");
9  
-
10  
- /* Create the pChart object */
11  
- $myPicture = new pImage(600,310,NULL,TRUE);
12  
-
13  
- /* Draw the rounded box */
14  
- $myPicture->setShadow(TRUE,array("X"=>2,"Y"=>2,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>30));  
15  
- $Settings = array("R"=>255,"G"=>255,"B"=>255,"BorderR"=>0,"BorderG"=>0,"BorderB"=>0);
16  
- $myPicture->drawRoundedFilledRectangle(10,10,590,300,10,$Settings);
17  
-
18  
- /* Draw the cell divisions */
19  
- $myPicture->setShadow(FALSE);  
20  
- $Settings = array("R"=>0,"G"=>0,"B"=>0);
21  
- $myPicture->drawLine(10,110,590,110,$Settings);
22  
- $myPicture->drawLine(200,10,200,110,$Settings);
23  
- $myPicture->drawLine(400,10,400,110,$Settings);
24  
- $myPicture->drawLine(10,160,590,160,$Settings);
25  
- $myPicture->drawLine(220,160,220,200,$Settings);
26  
- $myPicture->drawLine(320,160,320,200,$Settings);
27  
- $myPicture->drawLine(10,200,590,200,$Settings);
28  
- $myPicture->drawLine(400,220,400,300,$Settings);
29  
-
30  
- /* Write the fields labels */
31  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>10)); 
32  
- $Settings = array("R"=>0,"G"=>0,"B"=>0,"Align"=>TEXT_ALIGN_TOPLEFT);
33  
- $myPicture->drawText(20,20,"FROM",$Settings); 
34  
- $myPicture->drawText(210,20,"TO",$Settings); 
35  
- $myPicture->drawText(20,120,"ACCT.\r\nNUMBER",$Settings); 
36  
- $myPicture->drawText(20,166,"QUANTITY",$Settings); 
37  
- $myPicture->drawText(230,166,"SHIPMENT CODE",$Settings); 
38  
- $myPicture->drawText(330,166,"SENDER CODE",$Settings); 
39  
- $myPicture->drawText(410,220,"MFG DATE",$Settings); 
40  
- $myPicture->drawText(410,260,"NET WEIGTH",$Settings); 
41  
-
42  
- /* Filling the fields values */
43  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>16)); 
44  
- $myPicture->drawText(70,20,"BEBEER INC\r\n342, MAIN STREET\r\n33000 BORDEAUX\r\nFRANCE",$Settings); 
45  
- $myPicture->drawText(250,20,"MUSTAFA'S BAR\r\n18, CAPITOL STREET\r\n31000 TOULOUSE\r\nFRANCE",$Settings); 
46  
-
47  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>35)); 
48  
- $myPicture->drawText(100,120,"2342355552340",$Settings); 
49  
-
50  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>20)); 
51  
- $Settings = array("R"=>0,"G"=>0,"B"=>0,"Align"=>TEXT_ALIGN_TOPRIGHT);
52  
- $myPicture->drawText(210,180,"75 CANS",$Settings); 
53  
- $myPicture->drawText(310,180,"TLSE",$Settings); 
54  
- $myPicture->drawText(580,180,"WAREHOUSE#SLOT#B15",$Settings); 
55  
-
56  
- $Settings = array("R"=>0,"G"=>0,"B"=>0,"Align"=>TEXT_ALIGN_TOPLEFT);
57  
- $myPicture->drawText(410,236,"06/06/2010",$Settings); 
58  
- $myPicture->drawText(410,276,"12.340 Kg",$Settings); 
59  
-
60  
- /* Create the barcode 39 object */ 
61  
- $Barcode39 = new pBarcode39("../"); 
62  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6)); 
63  
- $Settings = array("ShowLegend"=>TRUE,"Height"=>55,"DrawArea"=>TRUE,"DrawArea"=>FALSE); 
64  
- $Barcode39->draw($myPicture,"12250000234502",30,220,$Settings); 
65  
-
66  
- $Settings = array("ShowLegend"=>TRUE,"Height"=>14,"DrawArea"=>TRUE,"DrawArea"=>FALSE); 
67  
- $Barcode39->draw($myPicture,"75 cans",260,220,$Settings); 
68  
- $Barcode39->draw($myPicture,"06062010",260,260,$Settings); 
69  
-
70  
- /* Create the barcode 128 object */ 
71  
- $Barcode128 = new pBarcode128("../"); 
72  
- $Settings = array("ShowLegend"=>TRUE,"Height"=>65,"DrawArea"=>TRUE,"DrawArea"=>FALSE); 
73  
- $Barcode128->draw($myPicture,"TLSE",450,25,$Settings); 
74  
-
75  
- /* Render the picture (choose the best way) */
76  
- $myPicture->autoOutput("pictures/example.barcode.png");
77  
-?>
48  pchart/examples/example.barcode128.php
... ...
@@ -1,48 +0,0 @@
1  
-<?php   
2  
- /* CAT:Barcode */
3  
-
4  
- /* pChart library inclusions */
5  
- include("../class/pDraw.class.php");
6  
- include("../class/pBarcode128.class.php");
7  
- include("../class/pImage.class.php");
8  
-
9  
- /* Create the pChart object */
10  
- $myPicture = new pImage(700,230);
11  
-
12  
- /* Draw the background */
13  
- $Settings = array("R"=>170, "G"=>183, "B"=>87, "Dash"=>1, "DashR"=>190, "DashG"=>203, "DashB"=>107);
14  
- $myPicture->drawFilledRectangle(0,0,700,230,$Settings);
15  
-
16  
- /* Overlay with a gradient */
17  
- $Settings = array("StartR"=>219, "StartG"=>231, "StartB"=>139, "EndR"=>1, "EndG"=>138, "EndB"=>68, "Alpha"=>50);
18  
- $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,$Settings);
19  
- $myPicture->drawGradientArea(0,0,700,20,DIRECTION_VERTICAL,array("StartR"=>0,"StartG"=>0,"StartB"=>0,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>80));
20  
-
21  
- /* Draw the border */
22  
- $myPicture->drawRectangle(0,0,699,229,array("R"=>0,"G"=>0,"B"=>0));
23  
-
24  
- /* Write the title */
25  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Silkscreen.ttf","FontSize"=>6));
26  
- $myPicture->drawText(10,13,"Barcode 128 - Add barcode to your pictures",array("R"=>255,"G"=>255,"B"=>255));
27  
-
28  
- /* Create the barcode 128 object */
29  
- $Barcode = new pBarcode128("../");
30  
-
31  
- /* Draw a simple barcode */
32  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6));
33  
- $Settings = array("ShowLegend"=>TRUE,"DrawArea"=>TRUE);
34  
- $Barcode->draw($myPicture,"pChart Rocks!",50,50,$Settings);
35  
-
36  
- /* Draw a rotated barcode */
37  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>12));
38  
- $Settings = array("ShowLegend"=>TRUE,"DrawArea"=>TRUE,"Angle"=>90);
39  
- $Barcode->draw($myPicture,"Turn me on",650,50,$Settings);
40  
-
41  
- /* Draw a rotated barcode */
42  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>12));
43  
- $Settings = array("R"=>255,"G"=>255,"B"=>255,"AreaR"=>150,"AreaG"=>30,"AreaB"=>27,"ShowLegend"=>TRUE,"DrawArea"=>TRUE,"Angle"=>350,"AreaBorderR"=>70,"AreaBorderG"=>20,"AreaBorderB"=>20);
44  
- $Barcode->draw($myPicture,"Do what you want !",290,140,$Settings);
45  
-
46  
- /* Render the picture (choose the best way) */
47  
- $myPicture->autoOutput("pictures/example.drawbarcode128.png");
48  
-?>
48  pchart/examples/example.barcode39.php
... ...
@@ -1,48 +0,0 @@
1  
-<?php   
2  
- /* CAT:Barcode */
3  
-
4  
- /* pChart library inclusions */
5  
- include("../class/pDraw.class.php");
6  
- include("../class/pBarcode39.class.php");
7  
- include("../class/pImage.class.php");
8  
-
9  
- /* Create the pChart object */
10  
- $myPicture = new pImage(700,230);
11  
-
12  
- /* Draw the background */
13  
- $Settings = array("R"=>170, "G"=>183, "B"=>87, "Dash"=>1, "DashR"=>190, "DashG"=>203, "DashB"=>107);
14  
- $myPicture->drawFilledRectangle(0,0,700,230,$Settings);
15  
-
16  
- /* Overlay with a gradient */
17  
- $Settings = array("StartR"=>219, "StartG"=>231, "StartB"=>139, "EndR"=>1, "EndG"=>138, "EndB"=>68, "Alpha"=>50);
18  
- $myPicture->drawGradientArea(0,0,700,230,DIRECTION_VERTICAL,$Settings);
19  
- $myPicture->drawGradientArea(0,0,700,20,DIRECTION_VERTICAL,array("StartR"=>0,"StartG"=>0,"StartB"=>0,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>80));
20  
-
21  
- /* Draw the picture border */
22  
- $myPicture->drawRectangle(0,0,699,229,array("R"=>0,"G"=>0,"B"=>0));
23  
-
24  
- /* Write the title */
25  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Silkscreen.ttf","FontSize"=>6));
26  
- $myPicture->drawText(10,13,"Barcode 39 - Add barcode to your pictures",array("R"=>255,"G"=>255,"B"=>255));
27  
-
28  
- /* Create the barcode 39 object */
29  
- $Barcode = new pBarcode39("../");
30  
-
31  
- /* Draw a simple barcode */
32  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6));
33  
- $Settings = array("ShowLegend"=>TRUE,"DrawArea"=>TRUE);
34  
- $Barcode->draw($myPicture,"pChart Rocks!",50,50,$Settings);
35  
-
36  
- /* Draw a rotated barcode */
37  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>12));
38  
- $Settings = array("ShowLegend"=>TRUE,"DrawArea"=>TRUE,"Angle"=>90);
39  
- $Barcode->draw($myPicture,"Turn me on",650,50,$Settings);
40  
-
41  
- /* Draw a rotated barcode */
42  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>12));
43  
- $Settings = array("R"=>255,"G"=>255,"B"=>255,"AreaR"=>150,"AreaG"=>30,"AreaB"=>27,"ShowLegend"=>TRUE,"DrawArea"=>TRUE,"Angle"=>350,"AreaBorderR"=>70,"AreaBorderG"=>20,"AreaBorderB"=>20);
44  
- $Barcode->draw($myPicture,"Do what you want !",290,140,$Settings);
45  
-
46  
- /* Render the picture (choose the best way) */
47  
- $myPicture->autoOutput("pictures/example.barcode39.png");
48  
-?>
32  pchart/examples/example.basic.php
... ...
@@ -1,32 +0,0 @@
1  
-<?php
2  
- /* CAT:Misc */
3  
-
4  
- /* Include all the classes */ 
5  
- include("../class/pDraw.class.php"); 
6  
- include("../class/pImage.class.php"); 
7  
- include("../class/pData.class.php");
8  
-
9  
- /* Create your dataset object */ 
10  
- $myData = new pData(); 
11  
- 
12  
- /* Add data in your dataset */ 
13  
- $myData->addPoints(array(1,3,4,3,5));
14  
-
15  
- /* Create a pChart object and associate your dataset */ 
16  
- $myPicture = new pImage(700,230,$myData);
17  
-
18  
- /* Choose a nice font */
19  
- $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
20  
-
21  
- /* Define the boundaries of the graph area */
22  
- $myPicture->setGraphArea(60,40,670,190);
23  
-
24  
- /* Draw the scale, keep everything automatic */ 
25  
- $myPicture->drawScale();
26  
-
27  
- /* Draw the scale, keep everything automatic */ 
28  
- $myPicture->drawSplineChart();
29  
-
30  
- /* Render the picture (choose the best way) */
31  
- $myPicture->autoOutput("pictures/example.basic.png");
32  
-?>
56  pchart/examples/example.cache.php
... ...
@@ -1,56 +0,0 @@
1  
-<?php
2  
- /* CAT:Misc */
3  
-
4  
- /* Include all the classes */ 
5  
- include("../class/pDraw.class.php"); 
6  
- include("../class/pImage.class.php"); 
7  
- include("../class/pData.class.php");
8  
- include("../class/pCache.class.php");
9  
-
10  
- /* Create your dataset object */ 
11  
- $myData = new pData(); 
12  
- 
13  
- /* Add data in your dataset */ 
14  
- $myData->addPoints(array(1,3,4,3,5));
15  
-
16  
- /* Create the cache object */
17  
- $myCache = new pCache(array("CacheFolder"=>"../cache"));
18  
-
19  
- /* Compute the hash linked to the chart data */
20  
- $ChartHash = $myCache->getHash($myData);
21  
-
22  
- /* Test if we got this hash in our cache already */
23  
- if ( $myCache->isInCache($ChartHash))
24  
-  {
25  
-   /* If we have it, get the picture from the cache! */
26  
-   $myCache->autoOutput($ChartHash,"pictures/example.cache.png");
27  
-  }
28  
- else
29  
-  {
30  
-   /* Create a pChart object and associate your dataset */ 
31  
-   $myPicture = new pImage(700,230,$myData);
32  
-
33  
-   /* Choose a nice font */
34  
-   $myPicture->setFontProperties(array("FontName"=>"../fonts/Forgotte.ttf","FontSize"=>11));
35  
-
36  
-   /* Define the boundaries of the graph area */
37  
-   $myPicture->setGraphArea(60,40,670,190);
38  
-
39  
-   /* Draw the scale, keep everything automatic */ 
40  
-   $myPicture->drawScale();
41  
-
42  
-   /* Draw the scale, keep everything automatic */ 
43  
-   $myPicture->drawSplineChart();
44  
-
45  
-   /* Do some cosmetics */
46  
-   $myPicture->drawGradientArea(0,0,700,20,DIRECTION_VERTICAL,array("StartR"=>0,"StartG"=>0,"StartB"=>0,"EndR"=>50,"EndG"=>50,"EndB"=>50,"Alpha"=>100));
47  
-   $myPicture->setFontProperties(array("FontName"=>"../fonts/Silkscreen.ttf","FontSize"=>6));
48  
-   $myPicture->drawText(10,13,"Test of the pCache class",array("R"=>255,"G"=>255,"B"=>255));
49  
-
50  
-   /* Push the rendered picture to the cache */
51  
-   $myCache->writeToCache($ChartHash,$myPicture);
52  
-
53  
-   /* Render the picture */
54  
-   $my