HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.line([6, 10, 18, 11, 9]);
3
chart.yScale().minimum(0);
4
chart.xScale("linear");
5
6
var triangleAnnotations = chart.annotations();
7
8
chart.title("Set annotation type. Use mouse to draw annotation.");
9
chart.container("container");
10
chart.draw();
11
12
// Set annotation type.
13
triangleAnnotations.startDrawing(anychart.enums.AnnotationTypes.FIBONACCI_ARC);
14
});