Created
January 13, 2011 18:47
-
-
Save chmille4/778376 to your computer and use it in GitHub Desktop.
simple demo of scribl bioinformatic charting library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get Canvas and Create Chart | |
var canvas = document.getElementById(canvasName); | |
// Create Chart with canvas, width | |
chart = new Scribl(canvas, 500); | |
// Add Gene with position, length, orientation | |
gene1 = chart.addGene( 5, 750 , '+'); | |
// Draw Chart | |
chart.draw(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment