From 5f620e0bb77a7b19ee5842ad805808a943cc156d Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 12 Aug 2013 15:43:32 -0400 Subject: [PATCH] use .ready() for both charts on annotations.html --- docs/annotations.html | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) 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" + } + ]); + }); -- 2.7.4