anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var chart1 = 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: 390}
chart1.labels({position: 'inside'});
chart1.bounds(0, 20, '50%', '100%');
chart1.fill(function () {
return 'rgba(135,' + (40 * (this.index + 1) - 10) + ', 248, 0.6)';
var fill = chart1.fill();
var chart2 = anychart.funnel([10, 3, 7, 10, 5]);
chart2.labels({position: 'inside'});
chart2.bounds('50%', 20, '50%', '100%');
var customTitle = anychart.standalones.title();
customTitle.text('Get and use chart fill');
customTitle.container(stage);