anychart.onDocumentReady(function () {
var chart = anychart.line([2, 8, 3, 4, 9], [5, 2, 6, 1]);
var title = chart.title();
title.background({stroke: "black"});
title.text("The current \n text direction is rtl");
title.textDirection("rtl");
chart.container("container");