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
3
// Create a Vertical Line Chart.
4
var chart = anychart.verticalLine([
5
{x: 'Point 1', value: 18},
6
{x: 'Point 2', value: 25},
7
{x: 'Point 3', value: 10},
8
{x: 'Point 4', value: 20}
9
]);
10
11
chart.title('Create a Vertical Line Chart');
12
chart.container('container');
13
chart.draw();
14
});