# Suggestions on best JavaScript library for 2D drawing

**URL:** <https://www.ruby-forum.com/t/suggestions-on-best-javascript-library-for-2d-drawing/176891>\
**Category:** Rails\
**Created:** [October 7, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/suggestions-on-best-javascript-library-for-2d-drawing/176891 "2009-10-07T18:35:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESLitwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/5e9695/32.png) [@ESLitwin](https://www.ruby-forum.com/u/ESLitwin)\
**Post date:** [October 7, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/suggestions-on-best-javascript-library-for-2d-drawing/176891/1 "2009-10-07T18:35:10Z")

</div>

I need to develop a flow charting like feature for a new application.  
(i.e. Drawing/sizing simple 2D shapes like squares or circles,  
connecting them with straight or curved lines and being able to drag  
and drop the shapes while maintaining the connectors. I also need to  
be able to annotate that shapes with text.) I want to use javascript  
for this instead of Flash.

Does anybody have a suggestion for/experience with a javascript  
library that would provide this functionality?

I’ve looked at Dojo, jQuery, ExtJS, Raphael ([http://raphaeljs.com/](http://raphaeljs.com/)).

Any advice is greatly appreciated.

Eric
