javascript - Highcharts column tooltip - always on top + fit the container -


i have highchart graph tooltips. how want render tooltips every time.

good case

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

bad case

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)

enter image description here

enter image description here

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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -