From: Dan Vanderkam Date: Mon, 12 Aug 2013 19:43:32 +0000 (-0400) Subject: use .ready() for both charts on annotations.html X-Git-Tag: v1.0.0~6 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5f620e0bb77a7b19ee5842ad805808a943cc156d;p=dygraphs.git use .ready() for both charts on annotations.html --- diff --git a/docs/annotations.html b/docs/annotations.html index 24dff7f..0a3ba17 100644 --- a/docs/annotations.html +++ b/docs/annotations.html @@ -98,14 +98,16 @@ no-op: it simply causes the chart to refresh.

"2008-05-09,80\n" ); - g.setAnnotations([ - { - series: "Temperature", - x: "2008-05-08", - shortText: "L", - text: "Coldest Day" - } - ]); + g.ready(function() { + g.setAnnotations([ + { + series: "Temperature", + x: "2008-05-08", + shortText: "L", + text: "Coldest Day" + } + ]); + }); </script> @@ -125,14 +127,16 @@ no-op: it simply causes the chart to refresh.

"2008-05-08,70\n" + "2008-05-09,80\n" ); - g.setAnnotations([ - { - series: "Temperature", - x: "2008-05-08", - shortText: "L", - text: "Coldest Day" - } - ]); + g.ready(function() { + g.setAnnotations([ + { + series: "Temperature", + x: "2008-05-08", + shortText: "L", + text: "Coldest Day" + } + ]); + });