anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var palette = ['divot', 'grid', 'vertical', 'horizontal', 'confetti', 'diagonal-cross', 'zig-zag'];
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'}).bounds(0, 20, '50%', '100%');
chart1.hatchFill(true).legend(false);
chart1.hatchFillPalette(palette);
var hatchFillPalette = chart1.hatchFillPalette();
var chart2 = anychart.pie([7, 7, 7, 7, 7, 7, 7]);
chart2.hatchFill(true).legend(false);
chart2.bounds('50%', 20, '50%', '100%');
chart2.hatchFillPalette(hatchFillPalette);
var customTitle = anychart.standalones.title();
customTitle.text('Get and use chart hatch fill palette');
customTitle.container(stage);