this.options = {}; // TODO(danvk): remove, use attr_ instead.
Dygraph.update(this.options, options ? options : {});
this.datasets = new Array();
- this.annotations = new Array()
+ this.annotations = new Array();
};
DygraphLayout.prototype.attr_ = function(name) {
DygraphLayout.prototype.setAnnotations = function(ann) {
// The Dygraph object's annotations aren't parsed. We parse them here and
// save a copy.
+ this.annotations = [];
var parse = this.attr_('xValueParser');
for (var i = 0; i < ann.length; i++) {
var a = {};
name: setName
};
- // limit the x, y values so they do not overdraw
- if (point.y <= 0.0) {
- point.y = 0.0;
- }
- if (point.y >= 1.0) {
- point.y = 1.0;
- }
this.points.push(point);
}
}