summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/pChart2.1.2/examples/imageMap
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/pChart2.1.2/examples/imageMap')
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/imagemap.js256
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/index.php209
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DPie.php58
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DRing.php58
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DPie.php55
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DRing.php55
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BarChart.php67
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BubbleChart.php76
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/LineChart.php74
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PlotChart.php69
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PolarChart.php56
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/RadarChart.php57
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterLineChart.php89
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterPlotChart.php89
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterSplineChart.php90
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/Shapes.php91
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/SplineChart.php74
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StackedBarChart.php67
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StepChart.php71
-rw-r--r--notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StockChart.php59
20 files changed, 0 insertions, 1720 deletions
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/imagemap.js b/notFinishedCode/pChart2.1.2/examples/imageMap/imagemap.js
deleted file mode 100644
index 860899d..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/imagemap.js
+++ /dev/null
@@ -1,256 +0,0 @@
- /*
- imageMap - JS to handle image maps over pChart graphix
-
- Version : 2.1.2
- Made by : Jean-Damien POGOLOTTI
- Last Update : 08/04/11
-
- 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 cX = 0;
- var cY = 0;
- var LastcX = null;
- var LastcY = null;
- var rX = 0;
- var rY = 0;
- var currentStatus = false;
- var initialized = false;
- var currentTooltipDivID = "";
- var currentTitle = "";
- var currentMessage = "";
- var currentAlpha = 0;
- var timerID = null;
- var timerInterval = 10;
- var timerStep = 5;
- var currentTimerMode = 0;
- var timerLock = false;
- var SmoothMove = false;
- var SmoothMoveFactor = 5;
-
- /* Create an image map */
- function createMap(imageMapID)
- {
- var testMAP = document.getElementById(imageMapID);
- if ( testMAP != null ) { testMAP.parentNode.removeChild(testMAP); }
-
- var element = document.createElement("MAP");
-
- element.id = imageMapID;
- element.name = imageMapID;
- document.body.appendChild(element);
- }
-
- /* Create the tooltip div */
- function createTooltipDiv(TooltipDivID)
- {
- var testDiv = document.getElementById(TooltipDivID);
- if ( testDiv != null ) { return(0); }
-
- var element = document.createElement("DIV");
-
- element.id = TooltipDivID;
- element.innerHTML = "";
- element.style.display = "inline-block";
- element.style.position = "absolute";
- element.style.opacity = 0;
- element.style.filter = "alpha(opacity=0)";
-
- document.body.appendChild(element);
- }
-
- /* Hide the tooltip */
- function hideDiv(TooltipDivID)
- {
- var element = document.getElementById(TooltipDivID);
-
- fadeOut(TooltipDivID);
- }
-
- /* Show the tooltip */
- function showDiv(TooltipDivID,Color,Title,Message)
- {
- var element = document.getElementById(TooltipDivID);
-
- if ( currentTooltipDivID != TooltipDivID || currentTitle != Title || currentMessage != Message)
- { createToolTip(TooltipDivID,Color,Title,Message); }
-
- if ( !initialized ) { moveDiv(TooltipDivID); initialized = true; }
-
- fadeIn(TooltipDivID);
-
- currentTooltipDivID = TooltipDivID;
- currentTitle = Title;
- currentMessage = Message;
- }
-
- /* Move the div to the mouse location */
- function moveDiv(TooltipDivID)
- {
- var element = document.getElementById(TooltipDivID);
-
-
-if(self.pageYOffset)
- { rX = self.pageXOffset; rY = self.pageYOffset; }
-
-else if(document.documentElement && document.documentElement.scrollTop)
- { rX = document.documentElement.scrollLeft; rY = document.documentElement.scrollTop; }
-
-else if(document.body)
- { rX = document.body.scrollLeft; rY = document.body.scrollTop; }
-
-if(document.all)
- {
- cX += rX; cY += rY;
- }
-
- if ( SmoothMove && LastcX != null )
- { cX = LastcX - (LastcX-cX)/4; cY = LastcY - (LastcY-cY)/SmoothMoveFactor; }
-
- element.style.left = (cX+10) + "px";
-
- element.style.top = (cY+10) + "px";
-
- LastcX = cX; LastcY = cY;
- }
-
- /* Compute the tooltip HTML code */
- function createToolTip(TooltipDivID,Color,Title,Message)
- {
- var element = document.getElementById(TooltipDivID);
-
- var HTML = "<div style='border:2px solid #606060'><div style='background-color: #000000; font-family: tahoma; font-size: 11px; color: #ffffff; padding: 4px;'><b>"+Title+" &nbsp;</b></div>";
- HTML += "<div style='background-color: #808080; border-top: 2px solid #606060; font-family: tahoma; font-size: 10px; color: #ffffff; padding: 2px;'>";
- HTML += "<table style='border: 0px; padding: 0px; margin: 0px;'><tr valign='top'><td style='padding-top: 4px;'><table style='background-color: "+Color+"; border: 1px solid #000000; width: 9px; height: 9px; padding: 0px; margin: 0px; margin-right: 2px;'><tr><td></td></tr></table></td><td>"+Message+"</td></tr></table>";
- HTML += "</div></div>";
-
- element.innerHTML = HTML;
- }
-
- /* Bind an image map to a picture */
- function bindMap(imageID,imageMapID)
- {
- var image = document.getElementById(imageID);
- image.useMap = "#"+imageMapID;
- }
-
- /* Add an area to the specified image map */
- function addArea(imageMapID,shapeType,coordsList,actionOver,actionOut)
- {
- var maps = document.getElementById(imageMapID);
- var element = document.createElement("AREA");
-
- element.shape = shapeType;
- element.coords = coordsList;
- element.onmouseover = function() { eval(actionOver); };
- element.onmouseout = function() { eval(actionOut); };
- maps.appendChild(element);
- }
-
- /* Retrieve the current cursor position Mozilla */
- function UpdateCursorPosition(e)
- {
- cX = e.pageX; cY = e.pageY;
- if ( currentStatus || timerID != null ) { moveDiv(currentTooltipDivID); }
- }
-
-
- /* Retrieve the current cursor position IE */
- function UpdateCursorPositionDocAll(e)
- {
- cX = event.clientX; cY = event.clientY;
- if ( currentStatus || timerID != null ) { moveDiv(currentTooltipDivID); }
- }
-
- /* Fade general functions */
- function fadeIn(TooltipDivID) { currentTimerMode = 1; initialiseTimer(TooltipDivID); } function fadeOut(TooltipDivID) { currentTimerMode = 2; initialiseTimer(TooltipDivID); } function initialiseTimer(TooltipDivID)
- { if ( timerID == null ) { timerID = setInterval("fade('"+TooltipDivID+"')",timerInterval); } }
-
-
-
- /* Handle fading */
- function fade(TooltipDivID)
- {
- var element = document.getElementById(TooltipDivID);
-
- currentStatus = true;
- if ( currentTimerMode == 1 ) /* Fade in */
- {
- currentAlpha = currentAlpha + timerStep;
- if ( currentAlpha >= 100 ) { currentAlpha = 100; clearInterval(timerID); timerID = null; }
- }
- else if ( currentTimerMode == 2 ) /* Fade out */
- {
- currentAlpha = currentAlpha - timerStep;
- if ( currentAlpha <= 0 ) { currentStatus = false; currentAlpha = 0; clearInterval(timerID); timerID = null; }
- }
-
- element.style.opacity = currentAlpha * .01;
- element.style.filter = 'alpha(opacity=' +currentAlpha + ')';
- }
-
- /* Add a picture element that need ImageMap parsing */
- function addImage(PictureID,ImageMapID,ImageMapURL)
- {
- createTooltipDiv('testDiv');
- createMap(ImageMapID);
- bindMap(PictureID,ImageMapID);
-
- setTimeout("checkLoadingStatus('"+PictureID+"','"+ImageMapID+"','"+ImageMapURL+"')", 200);
- }
-
- /* Check the loading status of the image */
- function checkLoadingStatus(PictureID,ImageMapID,ImageMapURL)
- {
- var element = document.getElementById(PictureID);
-
- if ( element.complete == true )
- downloadImageMap(PictureID,ImageMapID,ImageMapURL);
- else
- setTimeout("checkLoadingStatus('"+PictureID+"','"+ImageMapID+"','"+ImageMapURL+"')", 200);
- }
-
- /* Download the image map when the picture is loaded */
- function downloadImageMap(PictureID,ImageMapID,ImageMapURL)
- {
- 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", ImageMapURL,true);
-
- xmlhttp.onreadystatechange=function()
- { if (xmlhttp.readyState==4) { parseZones(ImageMapID,xmlhttp.responseText); } }
- xmlhttp.send(null)
- }
-
- /* Process the image map & create the zones */
- function parseZones(ImageMapID,SerializedZones)
- {
- var Zones = SerializedZones.split("\r\n");
-
- for(i=0;i<=Zones.length-2;i++)
- {
- var Options = Zones[i].split(";");
- addArea(ImageMapID,Options[0],Options[1],'showDiv("testDiv","'+Options[2]+'","'+Options[3]+'","'+Options[4].replace('"','')+'");','hideDiv("testDiv");');
- }
- }
-
- /* Attach the onMouseMove() event to the document body */
- if(document.all)
- { document.onmousemove = UpdateCursorPositionDocAll; }
-
- else
- { document.onmousemove = UpdateCursorPosition; }
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/index.php b/notFinishedCode/pChart2.1.2/examples/imageMap/index.php
deleted file mode 100644
index 21f2e70..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/index.php
+++ /dev/null
@@ -1,209 +0,0 @@
-<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewPHP") { $Script = $_GET["Script"]; highlight_file($Script); exit(); } ?>
-<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewHTML") { $Script = $_GET["Script"]; writeHTML($Script); exit(); } ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <script src='imagemap.js' type="text/javascript"></script>
- <title>pChart 2.x - Image map</title>
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
- <style>
- body { background-color: #F0F0F0; font-family: tahoma; font-size: 14px;}
- td { font-family: tahoma; font-size: 11px; }
- div.txt { font-family: tahoma; font-size: 11px; width: 660px; padding: 15px; }
- div.folder { cursor: hand; cursor: pointer; }
- 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.smallLinkGrey:link { text-decoration: none; color: #6A6A6A; }
- a.smallLinkGrey:visited { text-decoration: none; color: #6A6A6A; }
- a.smallLinkGrey:hover { text-decoration: underline; color: #6A6A6A; }
- a.smallLinkBlack:link { text-decoration: none; color: #000000; }
- a.smallLinkBlack:visited { text-decoration: none; color: #000000; }
- a.smallLinkBlack:hover { text-decoration: underline; color: #000000; }
- a.pChart { text-decoration: none; color: #6A6A6A; }
- a img, img { border: none; }
- </style>
-</head>
-<body>
-<?php
- /* Files that we don't want to see in the tree */
- $Exclusion = array(".","..");
-
- /* Determine the current package version */
- $FileHandle = fopen("../../readme.txt", "r");
- for ($i=0; $i<=5; $i++) { $buffer = fgets($FileHandle, 4096); }
- fclose($FileHandle);
- $Values = preg_split("/:/",$buffer);
- $Values = preg_split("/ /",$Values[1]);
- $Version = strip_tags($Values[1]);
-
- /* Build a list of the examples & categories */
- $DirectoryHandle = opendir("scripts");
- {
- $Tree = "";
- while (($FileName = readdir($DirectoryHandle)) !== false)
- {
- if ( !in_array($FileName,$Exclusion))
- $Tree[] = str_replace(".php","",$FileName);
- }
- }
-?>
-
- <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=100>&nbsp;<a class=smallLinkGrey href='../'>Examples</a></td>
- <td width=16><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
- <td width=100>&nbsp;<a class=smallLinkGrey href='../sandbox/'>Sandbox</a></td>
- <td width=16><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
- <td width=100>&nbsp;<a class=smallLinkGrey href='../delayedLoader/'>Delayed loader</a></td>
- <td width=16><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
- <td width=100>&nbsp;<b>Image Map</b></td>
- </tr></table>
- </td></tr></table>
-
- <br/>
-
- <table><tr><td valign='top'>
- <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; width: 222px;'>&nbsp;Release <?php echo $Version; ?></div>
- <div style='border: 3px solid #D0D0D0; border-top: 1px solid #FFFFFF; background-color: #FAFAFA; width: 220px; overflow: auto'>
- <div style='padding: 1px; padding-bottom: 3px; color: #000000; background-color:#D0D0D0;'>
- <table><tr>
- <td><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
- <td>&nbsp;Examples folder contents</td>
- </tr></table>
- </div>
-<?php
- foreach($Tree as $Key => $Element)
- {
- if ( $Key == count($Tree)-1 ) { $Icon = "../resources/dash-explorer-last.png"; } else { $Icon = "../resources/dash-explorer.png"; }
-
- echo "<table noborder cellpadding=0 cellspacing=0>\r\n";
- echo " <tr valign=middle>\r\n";
- echo " <td><img src='".$Icon."' width=16 height=20 alt=''/></td>\r\n";
- echo " <td><img src='../resources/application_view_tile.png' width=16 height=16 alt=''/></td>\r\n";
- echo " <td><div class=folder onclick='showExample(".chr(34).$Element.chr(34).");'>&nbsp;".$Element."</div></td>\r\n";
- echo " </tr>\r\n";
- echo "</table>\r\n";
- }
-?>
-
- </div>
- </td></tr></table>
- </td><td width=20></td><td valign='top' style='padding-top: 5px; font-size: 12px;'>
- <table><tr>
- <td><img src='../resources/chart_bar.png' width=16 height=16 alt=''/></td>
- <td>&nbsp;Rendering area</td>
- </tr></table>
-
- <div style='display:table-cell; padding: 10px; border: 2px solid #FFFFFF; vertical-align: middle; overflow: auto; background-image: url("resources/dash.png");'>
- <div style='font-size: 10px;' id=render>
- <table><tr><td><img src='../resources/accept.png' width=16 height=16 alt=""/></td><td>Click on an example to render it!</td></tr></table>
- </div>
- </div>
-
- <br/><br/>
-
- <table><tr>
- <td><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
- <td>&nbsp;HTML Source area</td>
- </tr></table>
-
- <div style='display:table-cell; padding: 10px; border: 2px solid #FFFFFF; vertical-align: middle; overflow: auto; background-image: url("resources/dash.png");'>
- <div id=htmlsource style='width: 700px; font-size: 13px; font-family: Lucida Console'>
-
- &lt;html&gt;<br/>
- &lt;head&gt;<br/>
- &nbsp;&nbsp; &lt;style&gt;<br/>
- &nbsp;&nbsp;&nbsp;&nbsp; div.pChartPicture { border: 0px; }<br/>
- &nbsp;&nbsp; &lt;/style&gt;<br/>
- &lt;/head&gt;<br/>
- &lt;body&gt;<br/>
- &nbsp;&nbsp; &lt;script src="imagemap.js" type="text/javascript"&gt;&lt;/script&gt;<br/>
- &nbsp;&nbsp; &lt;img src="draw.php" id="testPicture" alt="" class="pChartPicture"/&gt;<br/>
- &lt;/body&gt;<br/>
- &lt;script&gt;<br/>
- &nbsp;&nbsp; addImage("testPicture","pictureMap","draw.php?ImageMap=get");<br/>
- &lt;/script&gt;<br/>
-
- </div>
- </div>
-
- <br/><br/>
-
- <table><tr>
- <td><img src='../resources/application_view_list.png' width=16 height=16 alt=''/></td>
- <td>&nbsp;PHP Source area</td>
- </tr></table>
-
- <div style='display:table-cell; padding: 10px; border: 2px solid #FFFFFF; vertical-align: middle; overflow: auto; background-image: url("resources/dash.png");'>
- <div style='font-size: 10px;' id=source style='width: 700px;'>
- <table><tr><td><img src='../resources/accept.png' width=16 height=16 alt=""/></td><td>Click on an example to get its source!</td></tr></table>
- </div>
- </div>
-
-</td></tr></table>
-</body>
-</html>
-<script>
- function showExample(FileName)
- {
- document.getElementById("render").innerHTML = "<img src='scripts/"+FileName+".php?Seed="+Math.random(100)+"' id='testPicture' alt='' class='pChartPicture'/>";
- viewPHP("scripts/"+FileName+".php");
- // viewHTML("scripts/"+FileName+".php");
-
- addImage('testPicture','pictureMap','scripts/'+FileName+'.php?ImageMap=get');
- }
-
- function viewPHP(URL)
- {
- 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 @*/
-
- URL = "index.php?Action=ViewPHP&Script=" + URL;
-
- 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) { Result = xmlhttp.responseText; document.getElementById("source").innerHTML = Result.replace("/\<BR\>/"); } }
- xmlhttp.send(null)
- }
-
- function viewHTML(URL)
- {
- 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 @*/
-
- URL = "index.php?Action=ViewHTML&Script=" + URL;
-
- 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) { Result = xmlhttp.responseText; document.getElementById("htmlsource").innerHTML = Result.replace("/\<BR\>/"); } }
- xmlhttp.send(null)
- }
-</script>
-<?php
- function writeHTML($Script)
- {
- echo $Script;
- }
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DPie.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DPie.php
deleted file mode 100644
index affabc8..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DPie.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pPie.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(300,260,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMap2DPieChart",IMAGE_MAP_STORAGE_FILE,"2DPieChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMap2DPieChart",IMAGE_MAP_STORAGE_FILE,"2DPieChart","../tmp");
-
- /* 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);
-
- /* Add a border to the picture */
- $myPicture->drawRectangle(0,0,299,259,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Set the default font properties */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/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 */
- $Settings = array("RecordImageMap"=>TRUE);
- $PieChart = new pPie($myPicture,$MyData,$Settings);
-
- /* Draw an AA pie chart */
- $PieSettings = array("DrawLabels"=>TRUE,"LabelStacked"=>TRUE,"Border"=>TRUE,"RecordImageMap"=>TRUE);
- $PieChart->draw2DPie(160,125,$PieSettings);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/2DPieChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DRing.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DRing.php
deleted file mode 100644
index fad3d96..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/2DRing.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pPie.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(300,260,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMap2DRingChart",IMAGE_MAP_STORAGE_FILE,"2DRingChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMap2DRingChart",IMAGE_MAP_STORAGE_FILE,"2DRingChart","../tmp");
-
- /* 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);
-
- /* Add a border to the picture */
- $myPicture->drawRectangle(0,0,299,259,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Set the default font properties */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/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 */
- $Settings = array("RecordImageMap"=>TRUE);
- $PieChart = new pPie($myPicture,$MyData,$Settings);
-
- /* Draw an AA pie chart */
- $PieSettings = array("DrawLabels"=>TRUE,"LabelStacked"=>TRUE,"Border"=>TRUE,"RecordImageMap"=>TRUE);
- $PieChart->draw2DRing(160,125,$PieSettings);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/2DRingChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DPie.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DPie.php
deleted file mode 100644
index 695ce20..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DPie.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pPie.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(300,260,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMap3DPieChart",IMAGE_MAP_STORAGE_FILE,"3DPieChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMap3DPieChart",IMAGE_MAP_STORAGE_FILE,"3DPieChart","../tmp");
-
- /* 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);
-
- /* Add a border to the picture */
- $myPicture->drawRectangle(0,0,299,259,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Set the default font properties */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/Forgotte.ttf","FontSize"=>10,"R"=>80,"G"=>80,"B"=>80));
-
- /* Create the pPie object */
- $Settings = array("RecordImageMap"=>TRUE);
- $PieChart = new pPie($myPicture,$MyData,$Settings);
-
- /* Draw an AA pie chart */
- $PieSettings = array("DrawLabels"=>TRUE,"LabelStacked"=>TRUE,"Border"=>TRUE,"RecordImageMap"=>TRUE);
- $PieChart->draw3DPie(160,150,$PieSettings);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/3DPieChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DRing.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DRing.php
deleted file mode 100644
index 5a255e3..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/3DRing.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pPie.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(300,260,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMap3DRingChart",IMAGE_MAP_STORAGE_FILE,"3DRingChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMap3DRingChart",IMAGE_MAP_STORAGE_FILE,"3DRingChart","../tmp");
-
- /* 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);
-
- /* Add a border to the picture */
- $myPicture->drawRectangle(0,0,299,259,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Set the default font properties */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/Forgotte.ttf","FontSize"=>10,"R"=>80,"G"=>80,"B"=>80));
-
- /* Create the pPie object */
- $Settings = array("RecordImageMap"=>TRUE);
- $PieChart = new pPie($myPicture,$MyData,$Settings);
-
- /* Draw an AA pie chart */
- $PieSettings = array("InnerRadius"=>30,"OuterRadius"=>80,"DrawLabels"=>TRUE,"Border"=>TRUE,"RecordImageMap"=>TRUE);
- $PieChart->draw3DRing(160,150,$PieSettings);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/3DRingChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BarChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BarChart.php
deleted file mode 100644
index 11104ec..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BarChart.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(150,220,300,-250,-420,-200,300,200,100),"Server A");
- $MyData->addPoints(array(140,0,340,-300,-320,-300,200,100,50),"Server B");
- $MyData->setAxisName(0,"Hits");
- $MyData->addPoints(array("January","February","March","April","May","Juin","July","August","September"),"Months");
- $MyData->setSerieDescription("Months","Month");
- $MyData->setAbscissa("Months");
-
- /* Create the pChart object */
- $myPicture = new pImage(700,230,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapBarChart",IMAGE_MAP_STORAGE_FILE,"BarChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapBarChart",IMAGE_MAP_STORAGE_FILE,"BarChart","../tmp");
-
- /* 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));
-
- /* Set the default font */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6));
-
- /* Define the chart area */
- $myPicture->setGraphArea(60,40,650,200);
-
- /* Draw the scale */
- $scaleSettings = array("GridR"=>200,"GridG"=>200,"GridB"=>200,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE);
- $myPicture->drawScale($scaleSettings);
-
- /* Write the chart legend */
- $myPicture->drawLegend(580,12,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
-
- /* Turn on shadow computing */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
-
- /* Draw the chart */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
- $Settings = array("RecordImageMap"=>TRUE);
- $myPicture->drawBarChart($Settings);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/BarChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BubbleChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BubbleChart.php
deleted file mode 100644
index c7e18a2..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/BubbleChart.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pBubble.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(34,55,15,62,38,42),"Probe1");
- $MyData->addPoints(array(5,30,20,9,15,10),"Probe1Weight");
- $MyData->addPoints(array(5,10,-5,-1,0,-10),"Probe2");
- $MyData->addPoints(array(6,10,14,10,14,6),"Probe2Weight");
- $MyData->setSerieDescription("Probe1","This year");
- $MyData->setSerieDescription("Probe2","Last year");
- $MyData->setAxisName(0,"Current stock");
- $MyData->addPoints(array("Apple","Banana","Orange","Lemon","Peach","Strawberry"),"Product");
- $MyData->setAbscissa("Product");
- $MyData->setAbscissaName("Selected Products");
-
- /* Create the pChart object */
- $myPicture = new pImage(700,230,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapBarChart",IMAGE_MAP_STORAGE_FILE,"BarChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapBarChart",IMAGE_MAP_STORAGE_FILE,"BarChart","../tmp");
-
- /* Turn of AAliasing */
- $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));
-
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6));
-
- /* Define the chart area */
- $myPicture->setGraphArea(60,30,650,190);
-
- /* Draw the scale */
- $scaleSettings = array("GridR"=>200,"GridG"=>200,"GridB"=>200,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE);
- $myPicture->drawScale($scaleSettings);
-
- /* Create the Bubble chart object and scale up */
- $myPicture->Antialias = TRUE;
- $myBubbleChart = new pBubble($myPicture,$MyData);
-
- /* Scale up for the bubble chart */
- $bubbleDataSeries = array("Probe1","Probe2");
- $bubbleWeightSeries = array("Probe1Weight","Probe2Weight");
- $myBubbleChart->bubbleScale($bubbleDataSeries,$bubbleWeightSeries);
-
- /* Draw the bubble chart */
- $Settings = array("RecordImageMap"=>TRUE,"ForceAlpha"=>50);
- $myBubbleChart->drawBubbleChart($bubbleDataSeries,$bubbleWeightSeries,$Settings);
-
- /* Write the chart legend */
- $myPicture->drawLegend(570,13,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/Bubble Chart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/LineChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/LineChart.php
deleted file mode 100644
index bce48eb..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/LineChart.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(-4,VOID,VOID,12,8,3),"Probe 1");
- $MyData->addPoints(array(3,12,15,8,5,-5),"Probe 2");
- $MyData->addPoints(array(2,7,5,18,19,22),"Probe 3");
- $MyData->setSerieTicks("Probe 2",4);
- $MyData->setSerieWeight("Probe 3",2);
- $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);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapLineChart",IMAGE_MAP_STORAGE_FILE,"LineChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapLineChart",IMAGE_MAP_STORAGE_FILE,"LineChart","../tmp");
-
- /* 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"=>FONT_PATH."/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"=>FONT_PATH."/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;
-
- /* Draw the line chart */
- $Settings = array("RecordImageMap"=>TRUE);
- $myPicture->drawLineChart($Settings);
-
- /* Write the chart legend */
- $myPicture->drawLegend(540,20,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/LineChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PlotChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PlotChart.php
deleted file mode 100644
index 7bbecd5..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PlotChart.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- for($i=0;$i<=20;$i++) { $MyData->addPoints(rand(0,20),"Probe 1"); }
- for($i=0;$i<=20;$i++) { $MyData->addPoints(rand(0,20),"Probe 2"); }
- $MyData->setSerieShape("Probe 1",SERIE_SHAPE_FILLEDTRIANGLE);
- $MyData->setSerieShape("Probe 2",SERIE_SHAPE_FILLEDSQUARE);
- $MyData->setAxisName(0,"Temperatures");
-
- /* Create the pChart object */
- $myPicture = new pImage(700,230,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMap1",IMAGE_MAP_STORAGE_FILE,"PlotChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMap1",IMAGE_MAP_STORAGE_FILE,"PlotChart","../tmp");
-
- /* 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"=>FONT_PATH."/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"=>FONT_PATH."/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;
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
-
- /* Draw the line chart */
- $myPicture->drawPlotChart(array("RecordImageMap"=>TRUE));
-
- /* Write the chart legend */
- $myPicture->drawLegend(580,20,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/PlotChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PolarChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PolarChart.php
deleted file mode 100644
index d015900..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/PolarChart.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pRadar.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(10,20,30,40,50,60,70,80,90),"ScoreA");
- $MyData->addPoints(array(20,40,50,12,10,30,40,50,60),"ScoreB");
- $MyData->setSerieDescription("ScoreA","Coverage A");
- $MyData->setSerieDescription("ScoreB","Coverage B");
-
- /* Define the absissa serie */
- $MyData->addPoints(array(40,80,120,160,200,240,280,320,360),"Coord");
- $MyData->setAbscissa("Coord");
-
- /* Create the pChart object */
- $myPicture = new pImage(300,300,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapPolarChart",IMAGE_MAP_STORAGE_FILE,"PolarChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapPolarChart",IMAGE_MAP_STORAGE_FILE,"PolarChart","../tmp");
-
- /* Draw the background */
- $myPicture->drawGradientArea(0,0,300,300,DIRECTION_VERTICAL,array("StartR"=>200,"StartG"=>200,"StartB"=>200,"EndR"=>240,"EndG"=>240,"EndB"=>240,"Alpha"=>100));
-
- /* Add a border to the picture */
- $RectangleSettings = array("R"=>180,"G"=>180,"B"=>180,"Alpha"=>100);
- $myPicture->drawRectangle(0,0,299,299,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Set the default font properties */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/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"=>10));
-
- /* Create the pRadar object */
- $SplitChart = new pRadar();
-
- /* Draw a radar chart */
- $myPicture->setGraphArea(10,10,290,290);
- $Options = array("RecordImageMap"=>TRUE,"LabelPos"=>RADAR_LABELS_HORIZONTAL,"BackgroundGradient"=>array("StartR"=>255,"StartG"=>255,"StartB"=>255,"StartAlpha"=>50,"EndR"=>32,"EndG"=>109,"EndB"=>174,"EndAlpha"=>30),"AxisRotation"=>0,"DrawPoly"=>TRUE,"PolyAlpha"=>50, "FontName"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6);
- $SplitChart->drawPolar($myPicture,$MyData,$Options);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/PolarChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/RadarChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/RadarChart.php
deleted file mode 100644
index 96bc44c..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/RadarChart.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pRadar.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(8,4,6,4,2,7),"ScoreA");
- $MyData->addPoints(array(2,7,3,3,1,3),"ScoreB");
- $MyData->setSerieDescription("ScoreA","Application A");
- $MyData->setSerieDescription("ScoreB","Application B");
- $MyData->setPalette("ScoreA",array("R"=>157,"G"=>196,"B"=>22));
-
- /* Define the absissa serie */
- $MyData->addPoints(array("Speed","Weight","Cost","Size","Ease","Utility"),"Families");
- $MyData->setAbscissa("Families");
-
- /* Create the pChart object */
- $myPicture = new pImage(300,300,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapRadarChart",IMAGE_MAP_STORAGE_FILE,"RadarChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapRadarChart",IMAGE_MAP_STORAGE_FILE,"RadarChart","../tmp");
-
- /* Draw the background */
- $myPicture->drawGradientArea(0,0,300,300,DIRECTION_VERTICAL,array("StartR"=>200,"StartG"=>200,"StartB"=>200,"EndR"=>240,"EndG"=>240,"EndB"=>240,"Alpha"=>100));
-
- /* Add a border to the picture */
- $RectangleSettings = array("R"=>180,"G"=>180,"B"=>180,"Alpha"=>100);
- $myPicture->drawRectangle(0,0,299,299,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Set the default font properties */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/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"=>10));
-
- /* Create the pRadar object */
- $SplitChart = new pRadar();
-
- /* Draw a radar chart */
- $myPicture->setGraphArea(10,10,290,290);
- $Options = array("RecordImageMap"=>TRUE,"DrawPoly"=>TRUE,"WriteValues"=>TRUE,"ValueFontSize"=>8,"Layout"=>RADAR_LAYOUT_CIRCLE,"BackgroundGradient"=>array("StartR"=>255,"StartG"=>255,"StartB"=>255,"StartAlpha"=>100,"EndR"=>207,"EndG"=>227,"EndB"=>125,"EndAlpha"=>50));
- $SplitChart->drawRadar($myPicture,$MyData,$Options);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/RadarChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterLineChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterLineChart.php
deleted file mode 100644
index 46adcb5..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterLineChart.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pScatter.class.php");
-
- /* Create the pData object */
- $myData = new pData();
-
- /* Create the X axis and the binded series */
- for ($i=0;$i<=360;$i=$i+10) { $myData->addPoints(cos(deg2rad($i))*20,"Probe 1"); }
- for ($i=0;$i<=360;$i=$i+10) { $myData->addPoints(sin(deg2rad($i))*20,"Probe 2"); }
- $myData->setAxisName(0,"Index");
- $myData->setAxisXY(0,AXIS_X);
- $myData->setAxisPosition(0,AXIS_POSITION_BOTTOM);
-
- /* Create the Y axis and the binded series */
- for ($i=0;$i<=360;$i=$i+10) { $myData->addPoints($i,"Probe 3"); }
- $myData->setSerieOnAxis("Probe 3",1);
- $myData->setAxisName(1,"Degree");
- $myData->setAxisXY(1,AXIS_Y);
- $myData->setAxisUnit(1,"°");
- $myData->setAxisPosition(1,AXIS_POSITION_RIGHT);
-
- /* Create the 1st scatter chart binding */
- $myData->setScatterSerie("Probe 1","Probe 3",0);
- $myData->setScatterSerieDescription(0,"This year");
- $myData->setScatterSerieColor(0,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Create the 2nd scatter chart binding */
- $myData->setScatterSerie("Probe 2","Probe 3",1);
- $myData->setScatterSerieDescription(1,"Last Year");
-
- /* Create the pChart object */
- $myPicture = new pImage(400,400,$myData);
-
- /* Turn of Antialiasing */
- $myPicture->Antialias = FALSE;
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapScatterLineChart",IMAGE_MAP_STORAGE_FILE,"ScatterLineChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapScatterLineChart",IMAGE_MAP_STORAGE_FILE,"ScatterLineChart","../tmp");
-
- /* 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);
-
- /* 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"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6));
-
- /* Set the graph area */
- $myPicture->setGraphArea(50,30,350,330);
-
- /* Create the Scatter chart object */
- $myScatter = new pScatter($myPicture,$myData);
-
- /* Draw the scale */
- $myScatter->drawScatterScale();
-
- /* Turn on shadow computing */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
-
- /* Turn of Antialiasing */
- $myPicture->Antialias = TRUE;
-
- /* Draw a scatter plot chart */
- $myScatter->drawScatterLineChart(array("RecordImageMap"=>TRUE));
-
- /* Draw the legend */
- $myScatter->drawScatterLegend(260,375,array("Mode"=>LEGEND_HORIZONTAL,"Style"=>LEGEND_NOBORDER));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/ScatterLineChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterPlotChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterPlotChart.php
deleted file mode 100644
index 3722608..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterPlotChart.php
+++ /dev/null
@@ -1,89 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pScatter.class.php");
-
- /* Create the pData object */
- $myData = new pData();
-
- /* Create the X axis and the binded series */
- for ($i=0;$i<=360;$i=$i+10) { $myData->addPoints(cos(deg2rad($i))*20,"Probe 1"); }
- for ($i=0;$i<=360;$i=$i+10) { $myData->addPoints(sin(deg2rad($i))*20,"Probe 2"); }
- $myData->setAxisName(0,"Index");
- $myData->setAxisXY(0,AXIS_X);
- $myData->setAxisPosition(0,AXIS_POSITION_BOTTOM);
-
- /* Create the Y axis and the binded series */
- for ($i=0;$i<=360;$i=$i+10) { $myData->addPoints($i,"Probe 3"); }
- $myData->setSerieOnAxis("Probe 3",1);
- $myData->setAxisName(1,"Degree");
- $myData->setAxisXY(1,AXIS_Y);
- $myData->setAxisUnit(1,"°");
- $myData->setAxisPosition(1,AXIS_POSITION_RIGHT);
-
- /* Create the 1st scatter chart binding */
- $myData->setScatterSerie("Probe 1","Probe 3",0);
- $myData->setScatterSerieDescription(0,"This year");
- $myData->setScatterSerieColor(0,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Create the 2nd scatter chart binding */
- $myData->setScatterSerie("Probe 2","Probe 3",1);
- $myData->setScatterSerieDescription(1,"Last Year");
-
- /* Create the pChart object */
- $myPicture = new pImage(400,400,$myData);
-
- /* Turn of Antialiasing */
- $myPicture->Antialias = FALSE;
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapScatterPlotChart",IMAGE_MAP_STORAGE_FILE,"ScatterPlotChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapScatterPlotChart",IMAGE_MAP_STORAGE_FILE,"ScatterPlotChart","../tmp");
-
- /* 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);
-
- /* 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"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6));
-
- /* Set the graph area */
- $myPicture->setGraphArea(50,30,350,330);
-
- /* Create the Scatter chart object */
- $myScatter = new pScatter($myPicture,$myData);
-
- /* Draw the scale */
- $myScatter->drawScatterScale();
-
- /* Turn on shadow computing */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
-
- /* Turn of Antialiasing */
- $myPicture->Antialias = TRUE;
-
- /* Draw a scatter plot chart */
- $myScatter->drawScatterPlotChart(array("RecordImageMap"=>TRUE));
-
- /* Draw the legend */
- $myScatter->drawScatterLegend(260,375,array("Mode"=>LEGEND_HORIZONTAL,"Style"=>LEGEND_NOBORDER));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/ScatterPlotChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterSplineChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterSplineChart.php
deleted file mode 100644
index b47a8dc..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/ScatterSplineChart.php
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pScatter.class.php");
-
- /* Create the pData object */
- $myData = new pData();
-
- /* Create the X axis and the binded series */
- for ($i=0;$i<=360;$i=$i+90) { $myData->addPoints(rand(1,30),"Probe 1"); }
- for ($i=0;$i<=360;$i=$i+90) { $myData->addPoints(rand(1,30),"Probe 2"); }
- $myData->setAxisName(0,"Index");
- $myData->setAxisXY(0,AXIS_X);
- $myData->setAxisPosition(0,AXIS_POSITION_BOTTOM);
-
- /* Create the Y axis and the binded series */
- for ($i=0;$i<=360;$i=$i+90) { $myData->addPoints($i,"Probe 3"); }
- $myData->setSerieOnAxis("Probe 3",1);
- $myData->setAxisName(1,"Degree");
- $myData->setAxisXY(1,AXIS_Y);
- $myData->setAxisUnit(1,"°");
- $myData->setAxisPosition(1,AXIS_POSITION_RIGHT);
-
- /* Create the 1st scatter chart binding */
- $myData->setScatterSerie("Probe 1","Probe 3",0);
- $myData->setScatterSerieDescription(0,"This year");
- $myData->setScatterSerieColor(0,array("R"=>0,"G"=>0,"B"=>0));
-
- /* Create the 2nd scatter chart binding */
- $myData->setScatterSerie("Probe 2","Probe 3",1);
- $myData->setScatterSerieDescription(1,"Last Year");
-
- /* Create the pChart object */
- $myPicture = new pImage(400,400,$myData);
-
- /* Turn of Antialiasing */
- $myPicture->Antialias = FALSE;
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapScatterSplineChart",IMAGE_MAP_STORAGE_FILE,"ScatterSplineChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapScatterSplineChart",IMAGE_MAP_STORAGE_FILE,"ScatterSplineChart","../tmp");
-
- /* 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);
-
- /* 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"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6));
-
- /* Set the graph area */
- $myPicture->setGraphArea(50,30,350,330);
-
- /* Create the Scatter chart object */
- $myScatter = new pScatter($myPicture,$myData);
-
- /* Draw the scale */
- $myScatter->drawScatterScale();
-
- /* Turn on shadow computing */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
-
- /* Turn of Antialiasing */
- $myPicture->Antialias = TRUE;
-
- /* Draw a scatter plot chart */
- $myScatter->drawScatterSplineChart(array("RecordImageMap"=>TRUE));
- $myScatter->drawScatterPlotChart();
-
- /* Draw the legend */
- $myScatter->drawScatterLegend(260,375,array("Mode"=>LEGEND_HORIZONTAL,"Style"=>LEGEND_NOBORDER));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/ScatterSplineChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/Shapes.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/Shapes.php
deleted file mode 100644
index 4254070..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/Shapes.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
-
- /* Create the pChart object */
- $myPicture = new pImage(700,230);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMap1",IMAGE_MAP_STORAGE_FILE,"Shapes","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMap1",IMAGE_MAP_STORAGE_FILE,"Shapes","../tmp");
-
- /* 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);
- $myPicture->drawGradientArea(0,0,700,20,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));
-
- /* Write the picture title */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/Silkscreen.ttf","FontSize"=>6));
- $myPicture->drawText(10,13,"drawFilledRectangle() - Transparency & colors",array("R"=>255,"G"=>255,"B"=>255));
-
- /* Turn on shadow computing */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>20));
-
- /* Turn on Antialiasing */
- $myPicture->Antialias = TRUE;
-
- /* Draw a customized filled circle */
- $CircleSettings = array("R"=>267,"G"=>165,"B"=>169,"Dash"=>TRUE,"BorderR"=>255,"BorderG"=>255,"BorderB"=>255);
- $myPicture->drawFilledCircle(300,120,50,$CircleSettings);
- $myPicture->addToImageMap("CIRCLE","300,120,50",$myPicture->toHTMLColor(267,165,169),"Circle","My Message");
-
- /* Draw a customized polygon */
- $Plots = array(402,62,460,80,420,190,360,168);
- $PolygonSettings = array("R"=>71,"G"=>87,"B"=>145,"Dash"=>TRUE,"BorderR"=>255,"BorderG"=>255,"BorderB"=>255);
- $myPicture->drawPolygon_0($Plots,$PolygonSettings);
- $myPicture->addToImageMap("POLY","402,62,460,80,420,190,360,168",$myPicture->toHTMLColor(71,87,145),"Polygon","My Message");
-
- /* Turn of Antialiasing */
- $myPicture->Antialias = FALSE;
-
- /* Draw a customized filled rectangle */
- $RectangleSettings = array("R"=>150,"G"=>200,"B"=>170,"Dash"=>TRUE,"DashR"=>170,"DashG"=>220,"DashB"=>190,"BorderR"=>255,"BorderG"=>255,"BorderB"=>255);
- $myPicture->drawFilledRectangle(20,60,210,170,$RectangleSettings);
- $myPicture->addToImageMap("RECT","20,60,210,170",$myPicture->toHTMLColor(150,200,170),"Box 1","Message 1");
-
- /* Draw a customized filled rectangle */
- $RectangleSettings = array("R"=>209,"G"=>134,"B"=>27,"Alpha"=>30);
- $myPicture->drawFilledRectangle(30,30,200,200,$RectangleSettings);
- $myPicture->addToImageMap("RECT","30,30,200,200",$myPicture->toHTMLColor(209,134,27),"Box 2","Message 2");
-
- /* Draw a customized filled rectangle */
- $RectangleSettings = array("R"=>209,"G"=>31,"B"=>27,"Alpha"=>100,"Surrounding"=>30);
- $myPicture->drawFilledRectangle(480,50,650,80,$RectangleSettings);
- $myPicture->addToImageMap("RECT","480,50,650,80",$myPicture->toHTMLColor(209,31,27),"Box 3","Message 3");
-
- /* Draw a customized filled rectangle */
- $RectangleSettings = array("R"=>209,"G"=>125,"B"=>27,"Alpha"=>100,"Surrounding"=>30);
- $myPicture->drawFilledRectangle(480,90,650,120,$RectangleSettings);
- $myPicture->addToImageMap("RECT","480,90,650,120",$myPicture->toHTMLColor(209,125,27),"Box 4","Message 4");
-
- /* Draw a customized filled rectangle */
- $RectangleSettings = array("R"=>209,"G"=>198,"B"=>27,"Alpha"=>100,"Surrounding"=>30,"Ticks"=>2);
- $myPicture->drawFilledRectangle(480,130,650,160,$RectangleSettings);
- $myPicture->addToImageMap("RECT","480,130,650,160",$myPicture->toHTMLColor(209,198,27),"Box 5","Message 5");
-
- /* Draw a customized filled rectangle */
- $RectangleSettings = array("R"=>134,"G"=>209,"B"=>27,"Alpha"=>100,"Surrounding"=>30,"Ticks"=>2);
- $myPicture->drawFilledRectangle(480,170,650,200,$RectangleSettings);
- $myPicture->addToImageMap("RECT","480,170,650,200",$myPicture->toHTMLColor(134,209,27),"Box 6","Message 6");
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/Shapes.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/SplineChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/SplineChart.php
deleted file mode 100644
index 359beae..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/SplineChart.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(-4,VOID,VOID,12,8,3),"Probe 1");
- $MyData->addPoints(array(3,12,15,8,5,-5),"Probe 2");
- $MyData->addPoints(array(2,7,5,18,19,22),"Probe 3");
- $MyData->setSerieTicks("Probe 2",4);
- $MyData->setSerieWeight("Probe 3",2);
- $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);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapSplineChart",IMAGE_MAP_STORAGE_FILE,"SplineChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapSplineChart",IMAGE_MAP_STORAGE_FILE,"SplineChart","../tmp");
-
- /* 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"=>FONT_PATH."/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"=>FONT_PATH."/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;
-
- /* Draw the line chart */
- $Settings = array("RecordImageMap"=>TRUE);
- $myPicture->drawSplineChart($Settings);
-
- /* Write the chart legend */
- $myPicture->drawLegend(540,20,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/SplineChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StackedBarChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StackedBarChart.php
deleted file mode 100644
index fd86ca7..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StackedBarChart.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(150,220,300,-250,-420,-200,300,200,100),"Server A");
- $MyData->addPoints(array(140,0,340,-300,-320,-300,200,100,50),"Server B");
- $MyData->setAxisName(0,"Hits");
- $MyData->addPoints(array("January","February","March","April","May","Juin","July","August","September"),"Months");
- $MyData->setSerieDescription("Months","Month");
- $MyData->setAbscissa("Months");
-
- /* Create the pChart object */
- $myPicture = new pImage(700,230,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapStackedBarChart",IMAGE_MAP_STORAGE_FILE,"StackedBarChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapStackedBarChart",IMAGE_MAP_STORAGE_FILE,"StackedBarChart","../tmp");
-
- /* 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));
-
- /* Set the default font */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6));
-
- /* Define the chart area */
- $myPicture->setGraphArea(60,40,650,200);
-
- /* Draw the scale */
- $scaleSettings = array("Mode"=>SCALE_MODE_ADDALL,"GridR"=>200,"GridG"=>200,"GridB"=>200,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE);
- $myPicture->drawScale($scaleSettings);
-
- /* Write the chart legend */
- $myPicture->drawLegend(580,12,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
-
- /* Turn on shadow computing */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
-
- /* Draw the chart */
- $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10));
- $Settings = array("RecordImageMap"=>TRUE);
- $myPicture->drawStackedBarChart($Settings);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/StackedBarChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StepChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StepChart.php
deleted file mode 100644
index eadb4df..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StepChart.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(1,2,1,2,1,2,1,2,1,2),"Probe 1");
- $MyData->addPoints(array(-1,-1,0,0,-1,-1,0,0,-1,-1),"Probe 2");
- $MyData->addPoints(array(5,3,5,3,5,3,5,3,5,3),"Probe 3");
- $MyData->setAxisName(0,"Value peak");
- $MyData->addPoints(array("#1","#2","#3","#4","#5","#5","#7","#8","#9","#10"),"Labels");
- $MyData->setSerieDescription("Labels","Months");
- $MyData->setAbscissa("Labels");
-
- /* Create the pChart object */
- $myPicture = new pImage(700,230,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapStepChart",IMAGE_MAP_STORAGE_FILE,"StepChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapStepChart",IMAGE_MAP_STORAGE_FILE,"StepChart","../tmp");
-
- /* 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"=>FONT_PATH."/Forgotte.ttf","FontSize"=>11));
- $myPicture->drawText(150,35,"Measured values",array("FontSize"=>20,"Align"=>TEXT_ALIGN_BOTTOMMIDDLE));
-
- /* Set the default font */
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/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;
-
- /* Draw the line chart */
- $Settings = array("RecordImageMap"=>TRUE);
- $myPicture->drawStepChart($Settings);
-
- /* Write the chart legend */
- $myPicture->drawLegend(540,20,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/LineChart.png");
-?> \ No newline at end of file
diff --git a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StockChart.php b/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StockChart.php
deleted file mode 100644
index 10379fa..0000000
--- a/notFinishedCode/pChart2.1.2/examples/imageMap/scripts/StockChart.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
- /* Library settings */
- define("CLASS_PATH", "../../../class");
- define("FONT_PATH", "../../../fonts");
-
- /* pChart library inclusions */
- include(CLASS_PATH."/pData.class.php");
- include(CLASS_PATH."/pDraw.class.php");
- include(CLASS_PATH."/pImage.class.php");
- include(CLASS_PATH."/pStock.class.php");
-
- /* Create and populate the pData object */
- $MyData = new pData();
- $MyData->addPoints(array(35,28,17,27,12,12,20,15,20,28),"Open");
- $MyData->addPoints(array(20,17,25,20,25,23,16,29,26,17),"Close");
- $MyData->addPoints(array(10,11,14,11,9,4,3,7,9,5),"Min");
- $MyData->addPoints(array(37,32,33,29,29,25,22,34,29,31),"Max");
- $MyData->addPoints(array(30,20,21,24,22,18,18,24,22,24),"Median");
- $MyData->setAxisDisplay(0,AXIS_FORMAT_CURRENCY,"$");
-
- $MyData->addPoints(array("Dec 13","Dec 14","Dec 15","Dec 16","Dec 17", "Dec 20","Dec 21","Dec 22","Dec 23","Dec 24"),"Time");
- $MyData->setAbscissa("Time");
- $MyData->setAbscissaName("Time");
-
- /* Create the pChart object */
- $myPicture = new pImage(700,230,$MyData);
-
- /* Retrieve the image map */
- if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
- $myPicture->dumpImageMap("ImageMapStockChart",IMAGE_MAP_STORAGE_FILE,"StockChart","../tmp");
-
- /* Set the image map name */
- $myPicture->initialiseImageMap("ImageMapStockChart",IMAGE_MAP_STORAGE_FILE,"StockChart","../tmp");
-
- /* Turn of AAliasing */
- $myPicture->Antialias = FALSE;
-
- /* Draw the border */
- $myPicture->drawRectangle(0,0,699,229,array("R"=>0,"G"=>0,"B"=>0));
-
- $myPicture->setFontProperties(array("FontName"=>FONT_PATH."/pf_arma_five.ttf","FontSize"=>6));
-
- /* Define the chart area */
- $myPicture->setGraphArea(60,30,650,190);
-
- /* Draw the scale */
- $scaleSettings = array("GridR"=>200,"GridG"=>200,"GridB"=>200,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE);
- $myPicture->drawScale($scaleSettings);
-
- /* Create the pStock object */
- $mystockChart = new pStock($myPicture,$MyData);
-
- /* Draw the stock chart */
- $stockSettings = array("RecordImageMap"=>TRUE,"BoxUpR"=>255,"BoxUpG"=>255,"BoxUpB"=>255,"BoxDownR"=>0,"BoxDownG"=>0,"BoxDownB"=>0,"SerieMedian"=>"Median");
- $mystockChart->drawStockChart($stockSettings);
-
- /* Render the picture (choose the best way) */
- $myPicture->autoOutput("../tmp/StockChart.png");
-?> \ No newline at end of file