anychart.onDocumentReady(function () {
var chart = anychart.pie([8, 7, 3, 2]);
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.container("container");