Skip to content

Commit

Permalink
clip annotation markers outside lower bound
Browse files Browse the repository at this point in the history
  • Loading branch information
dchester committed Apr 28, 2012
1 parent 2874444 commit 13859b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Rickshaw.Graph.Annotate.js
Expand Up @@ -23,7 +23,7 @@ Rickshaw.Graph.Annotate = function(args) {
var annotation = self.data[time];
var left = self.graph.x(time);

if (left > self.graph.x.range()[1]) {
if (left < 0 || left > self.graph.x.range()[1]) {
if (annotation.element) {
annotation.element.style.display = 'none';
}
Expand Down

0 comments on commit 13859b3

Please sign in to comment.