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().hoverCursor("default");
chart.legend().listen("legendItemMouseDown", function(e) {
chart.legend().listen("legendItemMouseOver", function(e) {
chart.listen("pointClick", function(e) {
if (e.point.selected()) {
e.point.set("legendItem", {iconFill: "#455a64"});
e.point.set("legendItem", null);
chart.title().useHtml(true);
chart.title("Events: Chart Points (Single Series)<br><br>" +
"<span style='font-size:12; font-style:italic'>" +
"Click on Chart Points");
chart.container("container");