anychart.onDocumentReady(function () {
var chart = anychart.line([
{x: 'Cycling', value: 18},
{x: 'Swimming', value: 25},
var title = chart.title();
var textDirection = title.textDirection();
title.text('The text direction is ' + textDirection);
chart.container('container');