From 1c009430af80260d67c47652783931414989c75d Mon Sep 17 00:00:00 2001 From: gsmselftest Date: Wed, 9 Nov 2011 16:41:00 +0100 Subject: Final folder team project --- .../examples/example.drawLabel.vertical.php | 51 ---------------------- 1 file changed, 51 deletions(-) delete mode 100644 notFinishedCode/pChart2.1.2/examples/example.drawLabel.vertical.php (limited to 'notFinishedCode/pChart2.1.2/examples/example.drawLabel.vertical.php') diff --git a/notFinishedCode/pChart2.1.2/examples/example.drawLabel.vertical.php b/notFinishedCode/pChart2.1.2/examples/example.drawLabel.vertical.php deleted file mode 100644 index 5dd7a0c..0000000 --- a/notFinishedCode/pChart2.1.2/examples/example.drawLabel.vertical.php +++ /dev/null @@ -1,51 +0,0 @@ -addPoints(array(13251,4118,3087,1460,1248,156,26,9,8),"Hits"); - $MyData->setAxisName(0,"Hits"); - $MyData->addPoints(array("Firefox","Chrome","Internet Explorer","Opera","Safari","Mozilla","SeaMonkey","Camino","Lunascape"),"Browsers"); - $MyData->setSerieDescription("Browsers","Browsers"); - $MyData->setAbscissa("Browsers"); - - /* Create the pChart object */ - $myPicture = new pImage(500,500,$MyData); - $myPicture->drawGradientArea(0,0,500,500,DIRECTION_VERTICAL,array("StartR"=>240,"StartG"=>240,"StartB"=>240,"EndR"=>180,"EndG"=>180,"EndB"=>180,"Alpha"=>100)); - $myPicture->drawGradientArea(0,0,500,500,DIRECTION_HORIZONTAL,array("StartR"=>240,"StartG"=>240,"StartB"=>240,"EndR"=>180,"EndG"=>180,"EndB"=>180,"Alpha"=>20)); - $myPicture->setFontProperties(array("FontName"=>"../fonts/pf_arma_five.ttf","FontSize"=>6)); - - /* Draw the chart scale */ - $myPicture->setGraphArea(100,30,480,480); - $myPicture->drawScale(array("CycleBackground"=>TRUE,"DrawSubTicks"=>TRUE,"GridR"=>0,"GridG"=>0,"GridB"=>0,"GridAlpha"=>10,"Pos"=>SCALE_POS_TOPBOTTOM)); - - /* Turn on shadow computing */ - $myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>10)); - - /* Create the per bar palette */ - $Palette = array("0"=>array("R"=>188,"G"=>224,"B"=>46,"Alpha"=>100), - "1"=>array("R"=>224,"G"=>100,"B"=>46,"Alpha"=>100), - "2"=>array("R"=>224,"G"=>214,"B"=>46,"Alpha"=>100), - "3"=>array("R"=>46,"G"=>151,"B"=>224,"Alpha"=>100), - "4"=>array("R"=>176,"G"=>46,"B"=>224,"Alpha"=>100), - "5"=>array("R"=>224,"G"=>46,"B"=>117,"Alpha"=>100), - "6"=>array("R"=>92,"G"=>224,"B"=>46,"Alpha"=>100), - "7"=>array("R"=>224,"G"=>176,"B"=>46,"Alpha"=>100)); - - /* Draw the chart */ - $myPicture->drawBarChart(array("DisplayPos"=>LABEL_POS_INSIDE,"DisplayValues"=>TRUE,"Rounded"=>TRUE,"Surrounding"=>30,"OverrideColors"=>$Palette)); - - /* Write the legend */ - $myPicture->drawLegend(570,215,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL)); - - /* Write a label over the chart */ - $myPicture->writeLabel("Hits",array(1,4)); - - /* Render the picture (choose the best way) */ - $myPicture->autoOutput("pictures/example.drawBarChart.vertical.png"); -?> \ No newline at end of file -- cgit v1.2.3-55-g7522