anychart.onDocumentReady(function () {
var chart = anychart.line();
header: ['#', 'Florida', 'Texas', 'Arizona', 'Nevada'],
var legend = chart.legend();
legend.position('right');
legend.itemsLayout('vertical');
chart.title('Get and modify legend object');
chart.container('container');