Ignore:
Timestamp:
04/28/07 18:22:16 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/plot.php

    r8161 r8466  
    5555$labelfont="arialdb.ttf";
    5656$labelsize=10;
     57//colours
     58$colour=0x000000;
     59$setcolour=0x0080ff;
     60$set2colour=0xff0000;
     61
    5762if ($_GET["plot"]=="val")
    5863{
    5964    $column2=$_GET[$primary."Col2"];
    60     $c->addScatterLayer($val2, $val1, $column, CircleSymbol, $small, 0x000000, 0x000000);
     65    $c->addScatterLayer($val2, $val1, $column, CircleSymbol, $small, $colour, $colour);
    6166    if (!empty($_GET["Set"]))
    62         $c->addScatterLayer($Setval2, $Setval1, $column, CircleSymbol, $large, 0x0080ff, 0x0080ff);
     67        $c->addScatterLayer($Setval2, $Setval1, $column, CircleSymbol, $large, $setcolour, $setcolour);
    6368    if (!empty($_GET["Set2"]))
    64         $c->addScatterLayer($Set2val2, $Set2val1, $column, CircleSymbol, $large, 0xff0000, 0xff0000);
     69        $c->addScatterLayer($Set2val2, $Set2val1, $column, CircleSymbol, $large, $set2colour, $set2colour);
    6570    $c->yAxis->setTitle($column, $axisfont, $axissize);
    6671    $c->xAxis->setTitle($column2, $axisfont, $axissize);
     
    6974else
    7075{
    71     $c->addScatterLayer($prim, $val1, $column, CircleSymbol, $small, 0x000000, 0x000000);
     76    $c->addScatterLayer($prim, $val1, $column, CircleSymbol, $small, $colour, $colour);
    7277    if (!empty($_GET["Set"]))
    73         $c->addScatterLayer($Setprim, $Setval1, $column, CircleSymbol, $large, 0x0080ff, 0x0080ff);
     78        $c->addScatterLayer($Setprim, $Setval1, $column, CircleSymbol, $large, $setcolour, $setcolour);
    7479    if (!empty($_GET["Set2"]))
    75         $c->addScatterLayer($Set2prim, $Set2val1, $column, CircleSymbol, $large, 0xff0000, 0xff0000);
     80        $c->addScatterLayer($Set2prim, $Set2val1, $column, CircleSymbol, $large, $set2colour, $set2colour);
    7681    $c->yAxis->setTitle($column, $axisfont, $axissize);
    7782    $c->xAxis->setTitle($primary, $axisfont, $axissize);
Note: See TracChangeset for help on using the changeset viewer.