views:

684

answers:

2

Is it possible to draw curved lines in an HTML page (normally across cells in a table) using JavaScript (for web graph control)?

+2  A: 

You can achieve this using canvas element.

But isn't supported in some browsers.

Drawing graphics with canvas

Drawing shapes

Take a look at this also

Edit:

The link provided by @Joeri Sebrechts

http://excanvas.sourceforge.net/

rahul
yes, its in HTML5. IE doesnt support this... is there any other better way...
Ramesh Vel
`canvas` tag is a part of a HTML5. I wouldn't recommend using it since IE doesn't support it (and IE is still browser user by most people worldwide) and other browsers that support it (Safari, Firefox and Opera) also have some issues with that:http://media.liquidx.net/js/plotkit-doc/SVGCanvasCompat.html
RaYell
In IE I've had success using canvas by implementing it with ExplorerCanvas. It doesn't do high-performance stuff, but it is adequate for many purposes. http://excanvas.sourceforge.net/
Joeri Sebrechts
I have added your comment as an edit to my answer. Thanks @Joeri Sebrechts
rahul
i just came to see the below siteits claiminng that IE supports canvas. below the links for demos using canvas.. i am using IE 7.. it just works http://media.liquidx.net/js/plotkit-tests/sweet.htmlhttp://www.liquidx.net/plotkit/am totally confused.. did they really use HTML 5 canvas element...??
Ramesh Vel
+3  A: 

Raphael.js is a javascript library that lets you draw vector graphics on any webpage, any browser.

Alsciende
this library is really coll...
Ramesh Vel