<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line([2, 8, 3, 4, 9], [5, 2, 6, 1]);
var title = chart.title();
title.enabled(true);
// Gets text font weight.
var fontWeight = title.fontWeight();
title.text("The current font weight is " + fontWeight);
chart.container("container");
chart.draw();
});