UNPKG

biojs-vis-seqlogo

Version:
9 lines (8 loc) 359 B
// if you don't specify a html file, the sniper will generate a div var app = require("biojs-vis-seqlogo"); var xhr = require("xhr"); xhr("./data/example.json", function(err,resp,body){ var data = JSON.parse(body); var instance = new app({el: yourDiv,data: data, columnInfo: false, xaxis: false, yaxis: false, column_width: 15}); instance.render(); });