1 Attachment(s)

Drawing 2D multi axis graph with option to get the coordinates of 2 points (user sel)

Hi,

Can anyone help me in developing a jsp to display a multi axis graph with the following requirements.?? I am new to java.

I have taken all the inputs from previous page and on click of continue button, 3 ArrayLists data are populated in my Value Object. they are

1. pressureList

2. timeList

3. pressureDerrivativeList

I have done till this part. Now next page should show a multi axis graph

I need to create a jsp which will show a 2 dimensional multi axes graph. ie a horizontal axis 'X' and 2 vertical axes at its both ends (Y and Y`). so this would be

timeList (X) v/s pressureList (Y) and

timeList (X) v/s pressureDerrivativeList (Y`)

Now user selects 2 random points in the plot "X v/s Y" where he feels that its a straight line and on click of submit button, at the controller, I sould get the coordinates of these 2 points to calculate the slope between those 2 user selected points.

If you can help me in developing this jsp, it would be of great great help.

A picture of the graph is attached to this thread.

Thanks in Advance...