anychart.onDocumentReady(function () {
var 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});
chart = anychart.column(dataMapping);
var tooltip = chart.tooltip();
tooltip.separator(false);
tooltip.onDomReady(function() {
this.contentElement.style.width = '200px';
this.contentElement.style.height = '150px';
tooltipChart.container(this.contentElement);
this.titleElement.style.width = '200px';
this.titleElement.style.height = '60px';
title.container(this.titleElement);
tooltip.onBeforeTitleChange(function() {
tooltip.onBeforeContentChange(function() {
chart.listen('pointMouseOver', function(e) {
var index = e.pointIndex;
var dataRow = data.row(index);
tooltipChart = tooltipChart || createChart();
{x: 'John', value: dataRow[2]},
{x: 'James', value: dataRow[3]},
{x: 'Peter', value: dataRow[4]},
{x: 'Mary', value: dataRow[5]}
title = title || anychart.standalones.title();
title.text("Sales Persons Share: " + dataRow[0]);
title.fontColor('#ffffff');
chart.title('Set onDomReady and onBeforeTitleChange, onBeforeContentChange handlers');
chart.container('container');
var chart = anychart.bar();
chart.title().fontSize(12);
chart.xAxis().stroke(null).ticks(false);
chart.xAxis().labels().fontSize(10);
chart.yAxis().labels().fontSize(10);
chart.padding([0, 12, 0, 0]);