Using tooltip.positioner in synchronous highcharts can results to required behaviour.
tooltip: {
positioner: function(labelWidth, labelHeight, point) {
var tooltipX, tooltipY;
tooltipX = point.plotX + this.chart.plotLeft + 20;
tooltipY = point.plotY + this.chart.plotTop - 20;
return {
x: tooltipX,
y: tooltipY
};
}
}
Fiddle demo modifying synchronized-charts demo
Update Fix for tooltip hiding at extreme right
tooltip: {
positioner: function(labelWidth, labelHeight, point) {
var tooltipX, tooltipY;
if (point.plotX > 340) {
tooltipX = point.plotX + this.chart.plotLeft - 150;
} else {
tooltipX = point.plotX + this.chart.plotLeft + 20;
}
tooltipY = point.plotY + this.chart.plotTop - 20;
console.log(tooltipX);
return {
x: tooltipX,
y: tooltipY
};
}
}
Fixed Fiddle
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…