<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line();
chart.line([2, 8, 4, 10]);
var title = chart.title();
title.orientation(anychart.enums.Orientation.LEFT); // set orientation for title.
chart.container("container");
chart.draw();
});