X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Fannotations.html;h=0a3ba17c4fe38092a27fab6b57eaac610e184db0;hb=9e149228bdffc9d916b9b24ce972667d918e388a;hp=24dff7fc035f6c2a89b0a4913b8839a6c1e7d48e;hpb=5bcc58b46734fb5c9e821ed041318cb53127feb5;p=dygraphs.git 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" + } + ]); + });