anychart.onDocumentReady(function () {
var chart = anychart.pyramid([
{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, label: {anchor: 'center-top'}}
return 'rgba(100,' + (40 * (this.index + 1) - 10) + ', 248, 0.6)';
chart.title('Set fill parameter as a function');
chart.labels({position: 'inside'});
chart.container('container');