By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,463 Members | 2,954 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,463 IT Pros & Developers. It's quick & easy.

how to draw line dynamically between two points

P: n/a
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 ...

Aug 25 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ba*****************@gmail.com 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/hikksno...hit/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.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 25 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.