javascript - Highcharts column tooltip - always on top + fit the container -
i have highchart graph tooltips. how want render tooltips every time.

when tootlip doesn't fit svg container, highcharts swaps position of tooltip this.

i know how fix when this.
positioner: function(boxwidth, boxheight, point) { return { x: point.plotx, y: point.ploty - boxheight }; }, tooltip correctly on top, overflows right(image_1). have tooltip on top + fit container sides. (image_2)
is there easy way achieve this?
thanks (http://jsfiddle.net/4xomw3aj/)
ok found out how 'not swap'. in tooltip.getposition()
firstdimension = function (dim, outersize, innersize, point) { ret[dim] = point - distance - innersize; }, 

Comments
Post a Comment