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.column3d();
3
4
var series = chart.column([
5
{x: 'January', value: 2},
6
{x: 'February', value: 5},
7
{x: 'March', value: 3},
8
{x: 'April', value: 9},
9
{x: 'May', value: 4}
10
]);
11
12
var customHatchFill = anychart.graphics.hatchFill('divot', '#ffffff', 0.9, 20);
13
14
// Set hatch fill.
15
series.hatchFill(customHatchFill);
16
17
chart.title('Set series hatch fill parameter as an instance');
18
chart.container('container');
19
chart.draw();
20
});