<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line([6, 10, 18, 11, 9]);
chart.yScale().minimum(0);
chart.xScale("linear");
chart.annotations([{
type: "ellipse",
xAnchor: 1.9,
valueAnchor: 17,
secondXAnchor: 2.1,
secondValueAnchor: 19,
fill: "#673AB7 0.5",
stroke: "3 #FF9800"
}]);
var annotation = chart.annotations().getAnnotationAt(0);
// Set selection mode.
annotation.select();
chart.title("Set selection mode.");
chart.container("container");
chart.draw();
});