FigPut allows figures to be specified using JavaScript. The
resulting document can be viewed as a static PDF, as usual, or
the document can be viewed in a web-browser, in which case the
figures are interactive. A variety of interactive widgets are
included.