Skip to content
Browse files

Removing examples directory.

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