Highcharts 列工具提示 - 始终在顶部 + 适合容器

Highcharts column tooltip - always on top + fit the container

我有一个带有工具提示的图表。这就是我每次想要呈现工具提示的方式。

当tootlip不适合svg容器时,highcharts会像这样交换tooltip的位置。

我知道如何解决这个问题,但是当我这样做的时候。

positioner: function(boxWidth, boxHeight, point) {
    return {
        x: point.plotX,
        y: point.plotY - boxHeight
    };
},

工具提示正确地始终位于顶部,但溢出到右侧 (image_1)。我想让工具提示始终在顶部+从侧面安装容器。 (image_2)

有什么简单的方法可以做到这一点吗?

谢谢(http://jsfiddle.net/4xomw3aj/)

好的,我刚刚知道如何 'not swap'。在 Tooltip.getPosition()

firstDimension = function (dim, outerSize, innerSize, point) {
    ret[dim] = point - distance - innerSize;
},