anychart.onDocumentReady(function () {
{x: "John", value: 5000},
{x: "Richard", value: 5000},
{x: "Larry", value: 5000},
{x: "Marta", value: 15000}
chart = anychart.pie(data);
chart.legend().listen("legendItemMouseOver", function(e) {
var point = chart.getPoint(e.itemIndex);
point.set("legendItem", {iconFill: "#455a64"});
chart.legend().listen("legendItemMouseOut", function(e) {
var point = chart.getPoint(e.itemIndex);
point.set("legendItem", null);
chart.title().useHtml(true);
chart.title("Events: Legend Items (Single Series)<br><br>" +
"<span style='font-size:12; font-style:italic'>" +
"Hover over Legend Items");
chart.container("container");