radarex4.php

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    <?php // content="text/plain; charset=utf-8"
    require_once ('jpgraph/jpgraph.php');
    require_once ('jpgraph/jpgraph_radar.php');

    // Some data to plot
    $data = array(55,80,26,31,95);

    // Create the graph and the plot
    $graph = new RadarGraph(250,200);

    // Add a drop shadow to the graph
    $graph->SetShadow();

    // Create the titles for the axis
    $titles = $gDateLocale->GetShortMonth();
    $graph->SetTitles($titles);

    // Add grid lines
    $graph->grid->Show();
    $graph->grid->SetLineStyle('dashed');

    $plot = new RadarPlot($data);
    $plot->SetFillColor('lightblue');

    // Add the plot and display the graph
    $graph->Add($plot);
    $graph->Stroke();
    ?>