anychart.onDocumentReady(function () {
var chart = anychart.pie([
{x: 'Cycling', value: 10},
{x: 'Swimming', value: 12},
{x: 'Hiking', value: 11},
{x: 'Alpinism', value: 9}
var palette = anychart.palettes.hatchFills();
var hatchFill = palette.itemAt(0);
palette.itemAt(2, hatchFill);
chart.title('Get and use hatch fill by index');
chart.hatchFillPalette(palette);
chart.container('container');