Skip to content

cookgreen/diagramJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiagramJS

Introduction

Diagram control written with Javascript

Usage

Include the Javascript file

Add 'diagram.js' to your web page

Setup the diagram

  1. 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,
  2. call 'addSidebarBrick' function to create the sidebar, put a diagram object and the image you want to show on the sidebar
  3. Add onload eventhandler to the body element and call the function you created in the eventhandler

Run!

License

MIT

About

Diagram control written with Javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages