X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Fannotations.html;h=7a0c1e3adbafaf64e45cb235fd2f3583f4cb205d;hb=a5f3d82dc74669f378a1e7c63e10bd9804ce4ca2;hp=24dff7fc035f6c2a89b0a4913b8839a6c1e7d48e;hpb=5bcc58b46734fb5c9e821ed041318cb53127feb5;p=dygraphs.git diff --git a/docs/annotations.html b/docs/annotations.html index 24dff7f..7a0c1e3 100644 --- a/docs/annotations.html +++ b/docs/annotations.html @@ -6,6 +6,9 @@ .annotation { font-size: 12px !important; } + .dygraph-legend { + width: 300px; + }

dygraphs Annotations

@@ -26,7 +29,6 @@ them.

showRoller: true, customBars: true, labelsKMB: true, - labelsDivWidth: 300 } ); @@ -98,14 +100,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 +129,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" + } + ]); + }); @@ -188,6 +194,8 @@ g.ready(function() { heightHeight (in pixels) of the annotation flag or icon. cssClassCSS class to use for styling the annotation. tickHeightHeight of the tick mark (in pixels) connecting the point to its flag or icon. +tickWidthWidth of the tick mark connecting the point to its flag or icon. +tickColorColor of the tick mark connecting the point to its flag or icon. attachAtBottomIf true, attach annotations to the x-axis, rather than to actual points. clickHandler See Handlers, below mouseOverHandlerSee Handlers, below