<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
// create data
var data = [
["2000", 1100],
["2001", 880],
["2002", 1100],
["2003", 1500],
["2004", 921],
["2005", 1000],
["2006", 1400]
];
// create a chart
var chart = anychart.cartesian();
// create a marker series and set the data
chart.marker(data);
// set the chart title
chart.title("Marker Chart: Basic Sample");
// set the titles of the axes
chart.xAxis().title("Year");
chart.yAxis().title("Sales, $");
// set the container id
chart.container("container");
// initiate drawing the chart
chart.draw();
});