anychart.onDocumentReady(function () {
var chart = anychart.cartesian();
var series1 = chart.area([
{x: 'January', value: 2},
{x: 'February', value: 5},
var series2 = chart.area([
{x: 'January', value: 4},
{x: 'February', value: 9},
series2.fill('#ff7f24 0.6');
series1.legendItem({text: 'Blue area', iconType: 'area', iconFill: '#0091EA'});
series2.legendItem({text: 'Orange area', iconType: 'range-area', iconFill: '#FF9800'});
chart.title('Get and modify legend item');
chart.container('container');
var legendItem = series1.legendItem();
legendItem.disabled(true);