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 data = [7, 7, 7];
3
4
var chart = anychart.pie(data);
5
6
chart.labels(null);
7
chart.legend(null);
8
chart.hatchFill(true);
9
10
// Set hatch fill palette.
11
chart.hatchFillPalette(["horizontal", "grid", "vertical"]);
12
13
chart.title("Set hatch fill palette as an array.");
14
chart.container("container");
15
chart.draw();
16
});