Diagram control written with Javascript
Add 'diagram.js' to your web page
- Add a function and call the
createDiagram
function to create a diagram in this function, you should put your sidebar dom element and graph dom element as paramter, - call 'addSidebarBrick' function to create the sidebar, put a diagram object and the image you want to show on the sidebar
- Add
onload
eventhandler to the body element and call the function you created in the eventhandler
MIT