anychart.onDocumentReady(function () {
var data = anychart.data.set([
["Peter" , 18000, 16000],
["James" , 11000, 13000],
var data1 = data.mapAs({x: 0, value: 1});
var data2 = data.mapAs({x: 0, value: 2});
var chart = anychart.line();
chart.title("Separated Tooltip");
var series1 = chart.line(data1);
series1.name("Year 2008");
var series2 = chart.line(data2);
series2.name("Year 2009");
var tooltip = chart.tooltip();
tooltip.displayMode("separated");
tooltip.positionMode("point");
var tooltip1 = series1.tooltip();
tooltip1.anchor("center-bottom");
tooltip1.separator(false);
var tooltip2 = series2.tooltip();
tooltip2.anchor("center-bottom");
tooltip2.separator(false);
var interactivity = chart.interactivity();
interactivity.hoverMode("by-x");
interactivity.selectionMode("none");
var crosshair = chart.crosshair();
crosshair.yStroke(false);
var hoverMarkers1 = series1.hovered().markers();
hoverMarkers1.enabled(true);
var hoverMarkers2 = series2.hovered().markers();
hoverMarkers2.enabled(true);
chart.container("container");