Project

General

Profile

Charts: how to make cursor track data points on scatter chart?

Added by Boris Grinac over 8 years ago

Hello,

this is the question I wanted to post two weeks ago.

We are using old version of charts and now we want to make our chart more interactive.

I have noticed in examples that chart can track and display mouse position on chart canvas. But this is done on client in java script. Actually we noticed we receive mouse events when we hover over plot, but these events have no relation to data points. What we need to do is to snap to data points and report its x,y values to server (send event to server), so that we can do fancy things with synchronized view of data table, like sort data points for each x axis position, etc.

My question is if this "data point tracking" is already implemented, or maybe it is in plan for future release 4, or maybe somebody else have done it?

Boris


Replies (2)

RE: Charts: how to make cursor track data points on scatter chart? - Added by jian sun over 8 years ago

server can listen to mousemove and snap the data in server,

pContainerWidget_->mouseMoved().connect(this, &xxx::onMouseMoved);

    (1-2/2)