402 results found
-
20 votes
-
Add config setting so as to force tooltip left or right of point
I would like to be able to configure a non-shared tooltip so that the tooltip only appears to the left or right of the point. I was able to modify the highcharts code for a custom positioner, by forcing it to swap() at the end of the routine.
[code]
tooltipPositioner = function (labelWidth, labelHeight, point) {
var chart = this.chart,
distance = this.distance,
ret = {},
swapped,
first = ['y', chart.chartHeight, labelHeight, point.plotY + chart.plotTop],
second = ['x', chart.chartWidth, labelWidth, point.plotX + chart.plotLeft],
// The far side is right or bottom
preferFarSide = point.ttBelow || (chart.inverted && !point.negative) || (!chart.inverted…0 votesThis can be done through the tooltip.positioner plugin.
- Don't see your idea?