Skip to content

Commit

Permalink
Added removeTimeSeries()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelley Reynolds authored and ngd committed Sep 3, 2010
1 parent 6a7617c commit 98161dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smoothie.js
Expand Up @@ -65,6 +65,10 @@ SmoothieChart.prototype.addTimeSeries = function(timeSeries, options) {
this.seriesSet.push({timeSeries: timeSeries, options: options || {}});
};

SmoothieChart.prototype.removeTimeSeries = function(timeSeries) {
this.seriesSet.splice(this.seriesSet.indexOf(timeSeries), 1);
};

SmoothieChart.prototype.streamTo = function(canvas, delay) {
var self = this;
(function render() {
Expand Down

0 comments on commit 98161dc

Please sign in to comment.