Snehal Kumar Mishra
Snehal Kumar Mishra

Reputation: 79

Highcharts : How can i move the tooltip to external DIV?

I want to use such function which I can move the tool-tip according to the position or movment of mouse pointer in a column chart, not in a line chart.

In jQuery we have mousemove function but there is no such function in Highchart.

Any idea how to do it?

Upvotes: 2

Views: 1126

Answers (1)

Mina Gabriel
Mina Gabriel

Reputation: 25070

you can move the tool tip content to any div you want

     tooltip:{
                 formatter : function() {
                 $("#date").html( Highcharts.dateFormat('%m/ %e/ %Y', this.x));
                 $("#data").html(this.y) ;
                         return false ;
                         }
                    },

and then you can apply any event to these selectors using jquery

Upvotes: 4

Related Questions