anychart.onDocumentReady(function () {
data = anychart.data.set([
["2000", 10048, 2600, 3200, 2159, 2089],
["2001", 10938, 2367, 1989, 2383, 4199],
["2002", 9989, 2156, 2399, 2867, 2567],
["2003", 10226, 2398, 2225, 3010, 2593],
["2004", 11004, 2851, 3007, 2805, 2341],
["2005", 10934, 3400, 2105, 2563, 2866],
["2006", 11275, 2878, 2933, 3561, 1903],
["2007", 11945, 2959, 3855, 3109, 2022],
["2008", 12245, 4001, 2156, 3928, 2160],
["2009", 12056, 1995, 2057, 4902, 3102],
["2010", 11734, 2584, 3166, 3101, 2883],
["2011", 12337, 3106, 2845, 2933, 3453],
["2012", 12761, 3296, 2655, 3144, 3666],
["2013", 13390, 2611, 4194, 3206, 3379],
["2014", 13818, 3000, 2599, 4107, 4112],
["2015", 13188, 3199, 2564, 3118, 4307]
var dataMapping = data.mapAs({x: 0, value: 1});
var chart = anychart.column();
var column = chart.column(dataMapping);
chart.title().useHtml(true);
chart.title("Tooltip: HTML (Chart as Tooltip)<br><br><span style='font-style:italic'>Sales Volume</span>");
chart.tooltip().useHtml(true);
chart.tooltip().separator(false);
chart.tooltip().title(false);
chart.listen("pointMouseOver", function(e) {
var index = e.pointIndex;
var dataRow = data.row(index);
if (tooltipChart == null) tooltipChart = createChart();
{x: "John", value: dataRow[2]},
{x: "James", value: dataRow[3]},
{x: "Peter", value: dataRow[4]},
{x: "Mathew", value: dataRow[5]}
tooltipChart.title(dataRow[0] + ": Sales per Employee");
chart.tooltip().onDomReady(function() {
this.contentElement.style.width = "200px";
this.contentElement.style.height = "140px";
tooltipChart.container(this.contentElement);
chart.tooltip().onBeforeContentChange(function() {
chart.container("container");
var chart = anychart.bar();
chart.xAxis().stroke(null).ticks(false);
chart.xAxis().labels().fontSize(10);
chart.yAxis().labels().fontSize(10);
chart.padding([0, 12, 0, 0]);
chart.title().fontSize(12);