summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/pChart2.1.2/examples/imageMap/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/pChart2.1.2/examples/imageMap/scripts')
-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
18 files changed, 0 insertions, 1255 deletions
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