Fix Highcharts dataLabels to the bottom -


i've been searching , can't find easy way fix highcharts datalabels bottom of graphic. i'm looking following, column chart:

 80 -  ┌──┐        ┌──┐ ┌──┐  40 -  |  | ┌──┐   |  | |  |   0 -|_|__|_|__|_|_|__|_|__|_|         80   40     80   80          cat 1       cat 2 

thank you help.

you can iterate on each elemetn, , use translate function, allows "move" svg elements.

var bottom = chart.plotheight - 20;      $.each(chart.series[0].data,function(i,data){          data.datalabel.attr({             y: bottom         });     }); 

take @ simple example:

http://jsfiddle.net/wmlg6/39/


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -