<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('Allows to select the text');
// Allows to select the text.
title.selectable(true);
chart.container('container');
chart.draw();
});