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([166, 43, -79, -46, 84, NaN]);
3
4
var series = chart.getSeries(0);
5
6
// Set falling fill.
7
series.fallingFill(function () {
8
return anychart.color.darken(this.sourceColor);
9
});
10
11
chart.title("Set falling fill parameter as a function");
12
chart.container("container");
13
chart.draw();
14
});