Charts - display data points

John64

Registered User.
Local time
Today, 04:42
Joined
Apr 30, 2009
Messages
69
This may be a short "no" response, but I was wondering if there is a way to make the data in MS Access 2007 charts in a form, show the data point when you mouse over them. Like they do in excel. I'm fairly sure this isn't possible, but one post I read online said there may be a way to display the position of the pointer when you click on the graph or when you click on a data point. That would be just as helpful.

Oh, I don't want to display all data points because there are way too many.

Thanks in advance.
 
Sounds like an interesting challenge, so here’s some airware…

It would be nice if charts in Access had an event for Series Point values but I can’t find any.

But the MouseMove event does work over charts in Access even if the chart is de-activated. The MouseMove works over the entire chart area but I think we would need to determine where, if at all, the mouse is over the plot area.

So that would be the first challenge, from the X/Y single returned from the chart MouseMove event calculate where it is over the plot area. Now given the plot area position and using the X and Y axis value range, use a DLookup on the data source to determine the nearest data value. Depending on the chart type the X axis of the chart should be increasing monotonically so it becomes the major axis. Then use that to find the nearest value on the Y axis which relates to the value on the X axis.

If that can be done, either get the value and display it in a common text box, or, switch the point value on for that series. The common text box would be easier and faster because charts in Access are not going to win first place is any speed contest.

So it should boil down to: -
1. Calculating where the mouse is over the plot area.
2. Using the X and Y axis value range, get the nearest value from the data source.
3. Display the data in a common text box.

And please remember, I did say it was airware.
 
Thanks for the help. I was hoping this was a more common problem and someone already had it all coded out. I think I will leave it be. Sounds like it will be a fair amount of work and it is beyond my skillset.
 
Well, I might have a crack at it yet but don’t hold your breath.

If I get it working I’ll add it to this demo in the Sample Database forum.
 

Users who are viewing this thread

Back
Top Bottom