<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: 2},
{x: 'February', value: 5},
{x: 'March', value: 3},
{x: 'April', value: 9},
{x: 'May', value: 4}
]);
var title = chart.title();
title.enabled(true);
title.width(100);
title.height(70);
title.text('Text overflow mode is ellipsis');
// Set text overflow settings.
title.textOverflow('...');
chart.container('container');
chart.draw();
});