anychart.onDocumentReady(function () {
var chart = anychart.pie([
var legend = chart.legend();
{index: 0, text: 'Chrome', iconType: 'circle', iconStroke: '#01579B', iconFill: '#0091EA'},
{index: 1, text: 'Firefox', iconFill: '#F44336', iconHatchFill: 'divot'},
{index: 2, text: 'Safari', iconFill: '#4CAF50'},
{index: 3, text: 'IE', iconMarkerType: 'circle', iconMarkerFill: '#FFEB3B', iconType: 'line'}
chart.title('Use legend item provider');
chart.container('container');