Changeset 0204315aab886316e16799075cbe9b3d8140aa4e
- Timestamp:
- 10/14/08 21:46:46
(5 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
| r72e33c5 |
r0204315 |
|
| 57 | 57 | 'xaxis' => array ( 'mode' => 'time' ), |
|---|
| 58 | 58 | 'yaxis' => array ( 'suffix' => $driver->autounit() . '' ), |
|---|
| 59 | | 'legend' => array ( 'noColumns' => 6, position => 'sw' ), |
|---|
| | 59 | 'legend' => array ( 'noColumns' => 4, position => 'sw' ), |
|---|
| 60 | 60 | 'selection' => array ( 'mode' => 'x' ), |
|---|
| 61 | 61 | 'shadowSize' => 0, |
|---|
| rdfed3eb |
r0204315 |
|
| 4 | 4 | public $data; |
|---|
| 5 | 5 | protected $last_value; |
|---|
| | 6 | protected $groupname; |
|---|
| 6 | 7 | |
|---|
| 7 | 8 | function __construct($uuid, $name, $start, $end, $cnt = 400) { |
|---|
| … | … | |
| 10 | 11 | $last = end($this->data); |
|---|
| 11 | 12 | if($last) $this->last_value = $last['value']; |
|---|
| | 13 | } |
|---|
| | 14 | function groupname($gn = null) { |
|---|
| | 15 | if(isset($gn)) $this->groupname = $gn; |
|---|
| | 16 | return $this->groupname; |
|---|
| 12 | 17 | } |
|---|
| 13 | 18 | function points() { |
|---|
| rdfed3eb |
r0204315 |
|
| 274 | 274 | return $row; |
|---|
| 275 | 275 | } |
|---|
| | 276 | function deleteGraph($id) { |
|---|
| | 277 | $sth = $this->db->prepare("delete from prism.saved_graphs |
|---|
| | 278 | where graphid=?"); |
|---|
| | 279 | $sth->execute(array($id)); |
|---|
| | 280 | } |
|---|
| 276 | 281 | function saveGraph($graph) { |
|---|
| 277 | 282 | $id = ''; |
|---|
| rdfed3eb |
r0204315 |
|
| 35 | 35 | ); |
|---|
| 36 | 36 | 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 ); |
|---|
| 38 | 40 | } |
|---|
| 39 | 41 | if(get_class($set) == "Reconnoiter_ChangeSet") { |
|---|