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 stage = anychart.graphics.create("container");
3
4
var customBackground = anychart.standalones.background();
5
customBackground.fill("#9E9E9E");
6
7
// Sets parent bounds.
8
customBackground.parentBounds(anychart.math.rect(0, 0, 200, 200));
9
customBackground.container(stage);
10
customBackground.draw();
11
});