X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Fannotations.html;h=7a0c1e3adbafaf64e45cb235fd2f3583f4cb205d;hb=61767ef761b66b06e089cd081ac68527575af38b;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() {
height | Height (in pixels) of the annotation flag or icon. |
cssClass | CSS class to use for styling the annotation. |
tickHeight | Height of the tick mark (in pixels) connecting the point to its flag or icon. |
+tickWidth | Width of the tick mark connecting the point to its flag or icon. |
+tickColor | Color of the tick mark connecting the point to its flag or icon. |
attachAtBottom | If true, attach annotations to the x-axis, rather than to actual points. |
clickHandler | See Handlers, below |
mouseOverHandler | See Handlers, below |