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
var annotation = controller.verticalLine();
9
annotation.xAnchor(2);
10
11
// Set select stroke.
12
annotation.selectStroke("#009688", 2, "5 2", "round");
13
14
chart.title("Set select stroke parameters.");
15
chart.container("container");
16
chart.draw();
17
});