projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c5f877
)
REFACTORING: Added exception if no y axis has the independentTicks
author
David Eberlein
<david.eberlein@ch.sauter-bc.com>
Thu, 11 Apr 2013 15:53:05 +0000
(17:53 +0200)
committer
David Eberlein
<david.eberlein@ch.sauter-bc.com>
Fri, 12 Apr 2013 07:43:02 +0000
(09:43 +0200)
option activated.
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
e7acc6d
..
bcf25e0
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-2736,7
+2736,8
@@
Dygraph.prototype.computeYAxisRanges_ = function(extremes) {
p_axis = axis;
}
}
-
+ if(p_axis == undefined)
+ throw ("Configuration Error: At least one axis has to have the \"independentTicks\" option activated.");
// Add ticks. By default, all axes inherit the tick positions of the
// primary axis. However, if an axis is specifically marked as having
// independent ticks, then that is permissible as well.