Getting values from the plots

L

Lanzelot

Hi, I think this is very likely possible, but i can't seem to find a proper
way to do it...

I need to create a graph control that allows me to plot the graph from an
array and after that allot me to click/drag on the graph to select a range of
X values on my scatterline plot.

I've already got the graph plotted, and can use mouse_events to get the
mouse up and mouse down to get the cursor positions on the graph.
What I need to know:

1. How do I know which chart I have selected and on which series do I get
the points from?

2. How can i select and get a point at a particular (x,y) coordinate pointed
to by the mouse cursor?

Regards,
Lance
 
A

Alvin Bruney - ASP.NET MVP

1. have a look at the rangefrompoint method, it will return the object
underneath the cursor
2. extract the co-ordinates from the rangefrompoint method

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 
L

Lanzelot

Thanks alot for the prompt reply, it works! : )
But it's a very wierd method name though, lol...

Regards,
Lance

Alvin Bruney - ASP.NET MVP said:
1. have a look at the rangefrompoint method, it will return the object
underneath the cursor
2. extract the co-ordinates from the rangefrompoint method

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Lanzelot said:
Hi, I think this is very likely possible, but i can't seem to find a proper
way to do it...

I need to create a graph control that allows me to plot the graph from an
array and after that allot me to click/drag on the graph to select a range of
X values on my scatterline plot.

I've already got the graph plotted, and can use mouse_events to get the
mouse up and mouse down to get the cursor positions on the graph.
What I need to know:

1. How do I know which chart I have selected and on which series do I get
the points from?

2. How can i select and get a point at a particular (x,y) coordinate pointed
to by the mouse cursor?

Regards,
Lance
 
A

Alvin Bruney - ASP.NET MVP

Originally, the rangefrompoint came about because it was used to grab the
range from underneath the cursor point. When that method expanded to other
components, the name didn't change. That's what i was told so i'm simply
repeating...

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Lanzelot said:
Thanks alot for the prompt reply, it works! : )
But it's a very wierd method name though, lol...

Regards,
Lance

Alvin Bruney - ASP.NET MVP said:
1. have a look at the rangefrompoint method, it will return the object
underneath the cursor
2. extract the co-ordinates from the rangefrompoint method

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Lanzelot said:
Hi, I think this is very likely possible, but i can't seem to find a proper
way to do it...

I need to create a graph control that allows me to plot the graph from an
array and after that allot me to click/drag on the graph to select a
range
of
X values on my scatterline plot.

I've already got the graph plotted, and can use mouse_events to get the
mouse up and mouse down to get the cursor positions on the graph.
What I need to know:

1. How do I know which chart I have selected and on which series do I get
the points from?

2. How can i select and get a point at a particular (x,y) coordinate pointed
to by the mouse cursor?

Regards,
Lance
 

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