<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line([
{x: 'January', value: 29},
{x: 'February', value: 72},
{x: 'March', value: 250},
{x: 'April', value: 330},
{x: 'May', value: 85},
{x: 'June', value: 390},
{x: 'July', value: 95},
{x: 'August', value: 15}
]);
// Enables scroller.
chart.xScroller(true);
chart.title('Enable chart scroller');
chart.container('container');
chart.draw();
});