<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.scatter([
{x: 1, value: 30},
{x: 1, value: 41},
{x: 2, value: 23},
{x: 3, value: 41},
{x: 4, value: 20},
{x: 5, value: 11},
{x: 6, value: 18},
{x: 7, value: 5}
]);
// Get default series type.
var type = chart.defaultSeriesType();
chart.title('Series type is ' + type);
chart.container('container');
chart.draw();
});