<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.pie([2, 6, 12, 3]);
chart.hatchFill(true);
var palette = anychart.palettes.hatchFills();
// Sets hatch fill by index.
palette.itemAt(1, "divot", "#BDBDBD", 1, 15);
chart.hatchFillPalette(palette);
chart.container("container");
chart.draw();
});