Selecting Chartfx area

D

Dave

Hi all,

Ok basically what I am trying to do is this:

I have a line graph with multple series what i want the user to be able
to do is click and highlight an area of the graph in order to apply
some mathematical function to the selected area.... ie axis x ranges
from 0 to 10 but the user only wants to apply the function between 3
and 7 so they click and highlight that area.

I don't think there is any builtin controls in chartfx to do this....
if there are, the documentation is rubbish and I can't find them! So
what I am doing is picking up on the mousemove event to draw a vertical
stripe wherever the mouse goes over the chart. However, I cannot seem
to translate my mouse position to the value on the x axis in order to
create the stripe. e.Point and e.Series always appear to be 0 so the
stripe doesnt move from the leftmost point.

The idea in the end is to have the user mouse down and drag the line
across to select the area they want with the stripe signifying the said
area.

Does anyone know how i can translate my mouse position into the actual
axis-x value that it is on?

If this makes sense, please let me know!

Thank you

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top