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.column();
3
4
// configure no data label
5
noDataLabel = chart.noData().label();
6
noDataLabel.enabled(true);
7
noDataLabel.text("Error: could not connect to data server");
8
noDataLabel.background().enabled(true);
9
noDataLabel.background().fill("White 0.5");
10
noDataLabel.background().stroke("2 Black");
11
noDataLabel.padding(40);
12
13
chart.title("No Data: Configure Label");
14
15
chart.container("container");
16
chart.draw();
17
});