Selecting Chartfx area

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    #1

    Selecting Chartfx area

    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

  • Dave

    #2
    Re: Selecting Chartfx area

    No need to panic, answer my own question,

    chart.AxisX.Pix elToValue(int) solved!

    Comment

    Working...