anychart.onDocumentReady(function () {
{x: "John Doe", value: 1},
{x: "Richard Roe", value: 1},
{x: "Larry Loe", value: 1},
{x: "Marta Moe", value: 1},
{x: "Jane Poe", value: 1},
{x: "Norma Noe", value: 1},
{x: "William Woe", value: 1}
chart = anychart.pie(data);
chart.listen("chartDraw", function () {
chart.title("Legend: Layout = " +
chart.legend().itemsLayout());
chart.container("container");
function legendLayout(layout) {
chart.legend().itemsLayout(layout);