When comparing dojox.gfx vs GraphicsJS, the Slant community recommends GraphicsJS for most people. In the question“What are the best JavaScript drawing libraries?” GraphicsJS is ranked 10th while dojox.gfx is ranked 24th. The most important reason people chose GraphicsJS is:
Not only Bezier curves but also any lines, shapes, arcs, etc. out-of-the-box.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Cross platform
GFX can use a variety of formats to render (SVG, VML, canvas and SIlverlight). It simply does not lock you into one single browser's implementation of vector graphics.
Pro Powerful line drawing
Not only Bezier curves but also any lines, shapes, arcs, etc. out-of-the-box.
Pro Convenient API
Clear and concise API with chaining support.
Pro Virtual DOM
Rapid drawing. Only what is necessary is drawn.
Pro Has its own transformation engine
No need to use embarrassing in-browser transformations.
Pro Legacy browser support
IE6+.
Pro Smart layering system
With z-index.
Pro Rich text features
Multiline text support, text measurement, wrap, indent, spacing, align, etc.
Pro Full accessibility (Section 508)
Pro Events support
All browser events are dispatched in the same way in virtual DOM structure also.