anychart.onDocumentReady(function () {
var chart = anychart.pyramid([
{name: "Fantasy", value: 637166, custom_field: "info 1"},
{name: "Science Fiction", value: 721630, custom_field: "info 1"},
{name: "Detective", value: 148662, custom_field: "info 1"},
{name: "Classics", value: 78662, custom_field: "info 1"},
{name: "Textbooks", value: 90000, custom_field: "info 1"}
chart.labels().format("{%name}: {%yPercentOfTotal}%");
chart.tooltip().format("{%yPercentOfTotal}% ({%value})\n{%custom_field}");
chart.container("container");