as far as i understand
the original jdraw of which there is a plugin here, is a java applet
(under BSD /
http://en.wikipedia.org/wiki/JGraph / original mxGraph spec)
java jgraph went through a few revisions latest v6 and is now called jgraphx (reversioned to v2)
https://github.com/jgraph/jgraphx and still under bsd
the later started javascript version seems to be propriatary; draw.io / jgraph.com
to integrate draw.io directly would possibly breach its license
the +/- public source offers insight but is a bit aged
https://github.com/wtayyeb/draw.io
(the graphics generation uses a webservice - php, jsp or .net)
the current jgraph/mxgraph/draw.io sources are in a private repository
some docu is visible
http://jgraph.github.io/mxgraph/
the examples give some insight
http://jgraph.github.io/mxgraph/javascript/index.html
so one route might be to use jgraphx or draw.io to create the mxgraph xml
and use the xml in dokuwiki and let it render via a webservice (draw.io) or mxclient.js
-------------
with the above info i pulled/ripped the webapp (only the image,pdf generation is done via draw.io webservice).
I only found the jsp image-gen code.
i saw some URL parameters which would help integration (html sorce draw.io website)
* - url=url: Opens diagram from URL (URL should be encoded)
* - export=URL for export: For developers only
* - gapi=0: Do not load Google APIs
additionally a .js plugin system has been just recently introduced which would make even further adoption possible
-------------
i think an open javascript library possibly with editor would be great
(there are some plugins here already which use external renderers binary->image / java / flash / webservice)
a listing of possible js/jquery graph tools
http://stackoverflow.com/questions/7034/graph-visualization-code-in-javascript
or chart
http://stackoverflow.com/questions/119969/javascript-chart-library
from what i saw i would look into a d3.js viewer plugin
http://stackoverflow.com/questions/12025374/learning-d3-js-for-data-visualisation
(or possibly JointJS, Draw2D, JavaScript InfoVis Toolkit, Diagramo)