Changeset 529


Ignore:
Timestamp:
06/27/08 15:55:01 (13 years ago)
Author:
ramonb
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/chart.php

    r528 r529  
    2424// Include pChart libs
    2525//
    26 include("./lib/pchart/pData.class"); 
    27 include("./lib/pchart/pChart.class"); 
     26include( "./lib/pchart/pData.class" );
     27include( "./lib/pchart/pChart.class" );
    2828
    2929// Dataset definition
    3030//
    31 $DataSet = new pData; 
    32 $DataSet->AddPoint( $values, "Pie slices" ); 
    33 $DataSet->AddPoint( $legend, "Legend" ); 
    34 $DataSet->AddAllSeries(); 
    35 $DataSet->SetAbsciseLabelSerie( "Legend" ); 
     31$DataSet = new pData;
     32$DataSet->AddPoint( $values, "Pie slices" );
     33$DataSet->AddPoint( $legend, "Legend" );
     34$DataSet->AddAllSeries();
     35$DataSet->SetAbsciseLabelSerie( "Legend" );
    3636
    3737// Initialise the graph 
    38 $myChart = new pChart(380,200); 
    39 $myChart->drawFilledRoundedRectangle(7,7,373,193,5,240,240,240); 
    40 $myChart->drawRoundedRectangle(5,5,375,195,5,230,230,230); 
     38$myChart = new pChart(380,200);
     39$myChart->drawFilledRoundedRectangle(7,7,373,193,5,240,240,240);
     40$myChart->drawRoundedRectangle(5,5,375,195,5,230,230,230);
    4141
    4242// Font for slice percentages & legend text
    4343//
    44 $myChart->setFontProperties( "./lib/pchart/tahoma.ttf", 8 ); 
     44$myChart->setFontProperties( "./lib/pchart/tahoma.ttf", 8 );
    4545
    4646// Draw the pie slices and percentages text
    4747//
    48 $myChart->drawPieGraph( $DataSet->GetData(), $DataSet->GetDataDescription(), 150, 90, 110, TRUE, TRUE, 50, 20, 20 ); 
     48$myChart->drawPieGraph( $DataSet->GetData(), $DataSet->GetDataDescription(), 150, 90, 110, TRUE, TRUE, 50, 20, 20 );
    4949
    5050// Draw legend text
     
    5454// Font for title: a little bigger
    5555//
    56 $myChart->setFontProperties( "./lib/pchart/tahoma.ttf", 12 ); 
     56$myChart->setFontProperties( "./lib/pchart/tahoma.ttf", 12 );
    5757
    5858// Draw title text
Note: See TracChangeset for help on using the changeset viewer.