Line charts and mouse over

85 views
Skip to first unread message

Julien Regnery

unread,
Jun 24, 2016, 3:09:10 AM6/24/16
to jqplot-dev
Hi,

I'm using jqPlot to create line charts and I need to get the nearest point while moving the mouse over the chart.
I find some examples like this one : 

        $('#profilePlot').bind('jqplotMouseMove',
           
function (ev, seriesIndex, pointIndex, data) {
                console
.log('EV', + ev + 'SerieIndex: ' + seriesIndex + ', PointIndex: ' + pointIndex + ', Data: ' + data);
           
}
       
);

of this one :

        $('#profilePlot').bind('jqplotMouseMove',
           
function (e, gridpos, datapos, neighbor, plot) {
                  console
.log('E', + e + 'Gridpos: ' + gridpos + ', Datapos: ' + datapos + ', Neighbor: ' + neighbor);


       
);


but unfortunately it doesn't work...

Any ideas ?

Best regards.

Julien
Reply all
Reply to author
Forward
0 new messages