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 controller = chart.annotations();
7
8
// Create ellipse annotation.
9
controller.ellipse({
10
xAnchor: 1.9,
11
valueAnchor: 17,
12
secondXAnchor: 2.1,
13
secondValueAnchor: 19,
14
fill: "#F44336 0.3"
15
});
16
17
chart.title("Create ellipse annotation.");
18
chart.container("container");
19
chart.draw();
20
});