anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
{x: "Physical", value: 125},
{x: "Data Link", value: 125},
{x: "Network", value: 125},
{x: "Transport", value: 125},
{x: "Session", value: 125},
{x: "Presentation", value: 125},
{x: "Application", value: 290}
var chart = anychart.pyramid(dataSet);
chart.selectFill(function () {
return "rgba(210," + (50 * (this.index) - 10) + ",100,1)";
chart.title("Set chart selectFill parameter as a function.");
chart.container("container");