<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line([
{x: 'Cycling', value: 18},
{x: 'Swimming', value: 25},
{x: 'Run', value: 10},
{x: 'Hiking', value: 20}
]);
var title = chart.title();
title.enabled(true);
title.text('The text\n indent is 30');
// Set text indent.
title.textIndent(30);
chart.container('container');
chart.draw();
});