Skip to content

Instantly share code, notes, and snippets.

@chmille4
Created January 13, 2011 18:47
Show Gist options
  • Save chmille4/778376 to your computer and use it in GitHub Desktop.
Save chmille4/778376 to your computer and use it in GitHub Desktop.
simple demo of scribl bioinformatic charting library
// 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