anychart.onDocumentReady(function () {
var chart = anychart.line([2, 8, 3, 4, 9], [5, 2, 6, 1]);
var title = chart.title();
var textDirection = title.textDirection();
title.text("The current text direction is " + textDirection);
chart.container("container");