qsos-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qsos-commits] qsos/apps/phpviewer radar_single.php


From: Raphaël Semeteys
Subject: [Qsos-commits] qsos/apps/phpviewer radar_single.php
Date: Tue, 14 Nov 2006 14:27:42 +0000

CVSROOT:        /sources/qsos
Module name:    qsos
Changes by:     Raphaël Semeteys <rsemeteys>   06/11/14 14:27:42

Removed files:
        apps/phpviewer : radar_single.php 

Log message:
        merged with radar.php

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/phpviewer/radar_single.php?cvsroot=qsos&r1=1.2&r2=0

Patches:
Index: radar_single.php
===================================================================
RCS file: radar_single.php
diff -N radar_single.php
--- radar_single.php    7 Nov 2006 23:18:52 -0000       1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,72 +0,0 @@
-<?php
-include("config.php");
-include("$jpgraph_path/jpgraph.php");
-include("$jpgraph_path/jpgraph_radar.php");
-include("QSOSDocument.php");
-
-$file = $_GET['f'];
-$name = $_GET['c'];
-
-// Get QSOS data
-$myDoc = new QSOSDocument($file);
-if (isset($name)) {
-    $tree = $myDoc->getSubTree($name);
-    $title = $myDoc->getkeytitle($name);
-} else {
-    $tree = $myDoc->getTree();
-    $title = $myDoc->getkey("qsosappfamily");
-}
-$titles = array();
-$scores = array();
-foreach($tree as $element) {
-    array_push($titles, $element->title);
-    array_push($scores, $element->score);
-}
-
-// Create the basic radar graph
-$graph = new RadarGraph(700,500,"auto");
-
-// Set background color and shadow
-$graph->SetColor("white");
-$graph->SetFrame(false,'',0);
-
-// Position the graph
-$graph->SetCenter(0.4,0.55);
-$graph->SetPos(0.5,0.6);
-
-// Setup the axis formatting  
-$graph->SetScale('lin',0,2);
-$graph->axis->SetFont(FF_ARIAL,FS_BOLD);
-$graph->axis->title->SetFont(FF_ARIAL,FS_BOLD);
-$graph->axis->title->SetMargin(5);
-$graph->axis->SetWeight(1);
-$graph->axis->SetColor("darkgray"); 
-
-// Setup the grid lines
-$graph->grid->SetLineStyle("longdashed");
-$graph->grid->SetColor("darkgray");
-$graph->grid->Show();
-$graph->HideTickMarks();
-        
-// Setup graph titles
-$graph->title->Set($title);
-$graph->title->SetFont(FF_ARIAL,FS_BOLD,12);
-$graph->SetTitles($titles);
-
-// Setup graph legend
-$graph->legend->SetFont(FF_ARIAL,FS_BOLD);
-
-// Create the first radar plot        
-$plot = new RadarPlot($scores);
-$plot->SetLegend($myDoc->getkey("appname")." ".$myDoc->getkey("release"));
-$plot->SetColor("address@hidden");
-$plot->SetFillColor("address@hidden");
-$plot->SetLineWeight(3);
-
-// Add the plots to the graph
-$graph->Add($plot);
-
-// And output the graph
-$graph->Stroke();
-
-?> 
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]