diff options
author | Frank Wuerthwein <fkw@ucsd.edu> | 2009-02-27 03:34:49 +0000 |
---|---|---|
committer | Frank Wuerthwein <fkw@ucsd.edu> | 2009-02-27 03:34:49 +0000 |
commit | b21c2d7b4cd10f65d34626273be6ef7d274dd09d (patch) | |
tree | 7554e71ebc89d3a5713a914fbca7729f6ba9971e /src/lib | |
parent | 0fe4996e4eea6731160c44f793bb5db0829add38 (diff) |
Preserve colors in trimming
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/rrdFlotSupport.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rrdFlotSupport.js b/src/lib/rrdFlotSupport.js index 0e9c1be..69cbf3c 100644 --- a/src/lib/rrdFlotSupport.js +++ b/src/lib/rrdFlotSupport.js @@ -117,7 +117,7 @@ rrdFlotSelection.prototype.trim_flot_data = function(flot_data) { var out_data=[];
for (var i=0; i<flot_data.length; i++) {
var data_el=flot_data[i];
- out_data.push({label : data_el.label, data:this.trim_data(data_el.data)});
+ out_data.push({label : data_el.label, data:this.trim_data(data_el.data), color:data_el.color});
}
return out_data;
};
|