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, label: {anchor: 'center-top'}}
chart1.labels({position: 'inside'});
chart1.bounds(0, 20, '50%', '100%');
chart1.palette(anychart.palettes.earth);
var chart2 = anychart.column();
chart2.addSeries([1, 2, 3, 4], [2, 3, 4, 1], [3, 4, 1, 2], [4, 1, 2, 3]);
chart2.bounds('50%', 20, '50%', '100%');
var palette = chart1.palette();
var customTitle = anychart.standalones.title();
customTitle.text('Get and use chart palette');
customTitle.container(stage);