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.waterfall(
3
[166, 43, -79, -46, 84, NaN],
4
[50, -25, 30, 28, 83, NaN]
5
);
6
7
chart.getSeries(0).hatchFill(true);
8
chart.getSeries(1).hatchFill(true);
9
10
// Sets the hatchFill palette.
11
chart.hatchFillPalette(["backwardDiagonal", "dashedHorizontal"]);
12
13
chart.title("Set hatch fill palette");
14
chart.container("container");
15
chart.draw();
16
});