<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
// data
var data = [
["John", 10000],
["Jake", 12000],
["Peter", 18000],
["James", 11000],
["Mary", 9000]
];
// set chart type
var chart = anychart.column(data);
// title settings
var title = chart.title();
// enable title
title.enabled(true);
// enables HTML tags
title.useHtml(true);
// place text in the center
title.hAlign("center");
title.text(
"Sales Performance"+
"<br><a style=\"color:#0000FF; font-size: 10px;\">"+
"according to annual report</a>"
);
// draw chart
chart.container("container");
chart.draw();
});