Changeset 0204315aab886316e16799075cbe9b3d8140aa4e

Show
Ignore:
Timestamp:
10/14/08 21:46:46 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1224020806 +0000
git-parent:

[e9def875c44ff3a5c8d613d72d060ffef98f38d6]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1224020806 +0000
Message:

add support for colors and changeset fixes. deleteGraph support. less legends per line, refs #22

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/htdocs/json_graph_flot.php

    r72e33c5 r0204315  
    5757  'xaxis' => array ( 'mode' => 'time' ), 
    5858  'yaxis' => array ( 'suffix' => $driver->autounit() . '' ), 
    59   'legend' => array ( 'noColumns' => 6, position => 'sw' ), 
     59  'legend' => array ( 'noColumns' => 4, position => 'sw' ), 
    6060  'selection' => array ( 'mode' => 'x' ), 
    6161  'shadowSize' => 0, 
  • ui/web/lib/Reconnoiter_ChangeSet.php

    rdfed3eb r0204315  
    44  public $data; 
    55  protected $last_value; 
     6  protected $groupname; 
    67 
    78  function __construct($uuid, $name, $start, $end, $cnt = 400) { 
     
    1011    $last = end($this->data); 
    1112    if($last) $this->last_value = $last['value']; 
     13  } 
     14  function groupname($gn = null) { 
     15    if(isset($gn)) $this->groupname = $gn; 
     16    return $this->groupname; 
    1217  } 
    1318  function points() { 
  • ui/web/lib/Reconnoiter_DB.php

    rdfed3eb r0204315  
    274274    return $row; 
    275275  } 
     276  function deleteGraph($id) { 
     277    $sth = $this->db->prepare("delete from prism.saved_graphs 
     278                                     where graphid=?"); 
     279    $sth->execute(array($id)); 
     280  } 
    276281  function saveGraph($graph) { 
    277282    $id = ''; 
  • ui/web/lib/Reconnoiter_flot_Driver.php

    rdfed3eb r0204315  
    3535      ); 
    3636      if(get_class($set) == "Reconnoiter_DataSet") { 
    37         $ds['lines'] = array ( 'show' => 'true', 'fill' => '0.3', 'lineWidth' => '1' ); 
     37        $opacity = isset($this->sets_config[$name]['opacity']) ? 
     38                     $this->sets_config[$name]['opacity'] : '0.3'; 
     39        $ds['lines'] = array ( 'show' => 'true', 'fill' => $opacity, 'lineWidth' => '1' , radius => 1 ); 
    3840      } 
    3941      if(get_class($set) == "Reconnoiter_ChangeSet") {