Graphics are definitely tricky to do, using only JavaScript, CSS, and
HTML, but here are a few links to get you started...
Walter Zorn's library seems to be the most fully featured toolkit for
drawing various shapes and lines:
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
It was extended by someone else here, to add some new features:
http://www.zeroaltitude.org/programming/Canvas/
Here are some examples of interesting applications using the library:
http://jameslab.moveable.com/ajaxio/ (a very primitive Visio-like
application)
http://www.digital-simulator.de/ (the web version of this digital
circuit simulator uses Zorn's library)
http://www.walterzorn.com/grapher/grapher_e.htm (Zorn's own function
grapher)
I also found this drawing application, but as far as I know it doesn't
use Zorn's stuff. It's still cool to see what can be done in pure
JavaScipt:
http://www.xdraw.org/xdhTest.html
It seems no one so far has actually built Zorn's library (or any
other) into a TiddlyWiki plugin, or set of plugins. I imagine it
might be possible to do, if the canvas could be attached to a
tiddler. Although not a graphics package, the Similie Timeline was
built into a TiddlyWiki plugin (
http://project.dahukanna.net/
tiddlywiki/timeline/sampletimeline220b5.html), and it works quite
well. Zorn's stuff doesn't allow for high performance drawing due to
the limitations Eric mentioned, but it sounds like it might be perfect
if you just need to draw a few boxes and lines. The trick would be to
get it to play nicely inside a TiddlyWiki. Perhaps someone might take
this on as a challenge? I'd love to be able to do simple graphics in
a TiddlyWiki too! :-)
Michael