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 data = anychart.data.set([
3
["John", 10000],
4
["Jake", 12000],
5
["Peter", 18000],
6
["James", 11000],
7
["Mary", 9000]
8
]);
9
10
var chart = anychart.column(data);
11
12
var seriesTooltip = chart.getSeries(0).tooltip();
13
14
// Set background settings.
15
seriesTooltip.background({fill: "#EF9A9A", stroke: "#1B5E20"});
16
17
chart.title("Set background parameters as an object");
18
chart.container("container");
19
chart.draw();
20
});