<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var data = anychart.data.set([
["John", 10000],
["Jake", 12000],
["Peter", 18000],
["James", 11000],
["Mary", 9000]
]);
var chart = anychart.column(data);
var tooltip = chart.tooltip();
tooltip.displayMode("union");
// Set title.
tooltip.title({
fontColor: "#4CAF50",
fontStyle: "italic"
});
chart.title("Set title parameter as an object");
chart.container("container");
chart.draw();