anychart.onDocumentReady(function () {
var chart = anychart.line();
var series1 = chart.line([
{x: 'Cycling', value: 10},
{x: 'Swimming', value: 32},
var series2 = chart.line([
{x: 'Cycling', value: 15},
{x: 'Swimming', value: 9},
series1.legendItem({text: 'First series'});
var item = series1.legendItem();
chart.title('Legend items text is ' + text);
chart.container('container');