Click to See Complete Forum and Search --> : Selecting rows on mschart using the mouse


Dennis Garlick
January 28th, 2000, 09:13 PM
Hi,

I want people to be able to click on a line MsChart and then return information about all of the datapoints in that row. MsChart has a mousedown and mouseup property which returns the x and y coordinates of the mouse click, but this doesn't easily translate to the row number, particularly if the axes change. Is there an easy way to return which row has been clicked on by the user?

fotisgpap
January 29th, 2000, 07:18 AM
I think that you should use the events and actions of the plot object of mschart instead of the events of the chart object itself. From plot you can get if axis are clicked and all the events you need. Look at sybase's Chart control at www.sybase.com (vschart) that is a superset of mschart.

Dennis Garlick
January 30th, 2000, 09:25 PM
I forgot to mention that I only have vb5, and I can't seem to find the events you mention. Is this a new feature of vb6, and if so, is there any other way to solve the problem using vb5?