how to draw line dynamically between two points

  • Thread starter balakrishnan.dinesh
  • Start date
B

balakrishnan.dinesh

Hi frnds,

Im creating function to plot line graph in javascript .
I have marked the points in graph. but what i need to do is, i want to
draw the line between those marked point, but i dont konw how to draw
line betwwen the marked points

The output for my function will be like this , So the marked point (*)
should be connected through lines,

can u tell me how to draw line between points i.e,(*).

|
| *
| *
| * *
. | *
3 | *
2 | *
1 |_______________________
1 2 3 4 5 6......

Rgrds...
Dinesh ...
 
R

Randy Webb

(e-mail address removed) said the following on 8/25/2006 12:23 AM:
Hi frnds,

Im creating function to plot line graph in javascript .
I have marked the points in graph. but what i need to do is, i want to
draw the line between those marked point, but i dont konw how to draw
line betwwen the marked points

The output for my function will be like this , So the marked point (*)
should be connected through lines,

can u tell me how to draw line between points i.e,(*).

|
| *
| *
| * *
. | *
3 | *
2 | *
1 |_______________________
1 2 3 4 5 6......

http://members.aol.com/_ht_a/hikksnotathome/graphit/index.html

Click any two points in the blue box and it will draw a red line between
them. It doesn't do exactly what you asked, but the mechanism is there
to do what you want. View Source and adapt as needed.
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top