projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a6a505d
)
Fix bug w/ annotations and raw format
author
Dan Vanderkam
<dan@dygraphs.com>
Tue, 15 Feb 2011 04:10:33 +0000
(23:10 -0500)
committer
Dan Vanderkam
<dan@dygraphs.com>
Tue, 15 Feb 2011 04:10:33 +0000
(23:10 -0500)
dygraph-canvas.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph-canvas.js
b/dygraph-canvas.js
index
8133d86
..
f463e39
100644
(file)
--- a/
dygraph-canvas.js
+++ b/
dygraph-canvas.js
@@
-32,9
+32,9
@@
DygraphLayout.prototype.addDataset = function(setname, set_xy) {
DygraphLayout.prototype.setAnnotations = function(ann) {
// The Dygraph object's annotations aren't parsed. We parse them here and
DygraphLayout.prototype.setAnnotations = function(ann) {
// The Dygraph object's annotations aren't parsed. We parse them here and
- // save a copy.
+ // save a copy.
If there is no parser, then the user must be using raw format.
this.annotations = [];
this.annotations = [];
- var parse = this.attr_('xValueParser');
+ var parse = this.attr_('xValueParser')
|| function(x) { return x; }
;
for (var i = 0; i < ann.length; i++) {
var a = {};
if (!ann[i].xval && !ann[i].x) {
for (var i = 0; i < ann.length; i++) {
var a = {};
if (!ann[i].xval && !ann[i].x) {