HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.pie([2, 6, 12, 3]);
3
chart.hatchFill(true);
4
5
var palette = anychart.palettes.hatchFills();
6
7
// Disables hatch fill by index.
8
palette.itemAt(1, false);
9
10
chart.hatchFillPalette(palette);
11
chart.container("container");
12
chart.draw();
13
});