sbgnviz.js
sbgnviz.js copied to clipboard
How to cite the sbgnviz.js into the <script> lable of html?
Hi, I want to use this sbgnviz.js to show my pathway inserct my frame of Django, so I need to insert this into html by citing the label of
@HanMengying maybe this CodeSandbox example helps: https://github.com/cannin/sbgnviz.js-sample-app
@cannin The sbgnviz.js-sample-app is written in way that is very different from the typical cytoscape extension.
Is it possible to provide simple example showing how to use the various sbgnviz API in the same format as typical cytoscape extensions
A single demo.html showing how to use SBGNviz API to load a sbgn.xml file and display that.
e.g.
<link href="app/css/sbgnviz.css" rel="stylesheet">
<script src="node_modules/sbgnviz/dist/sbgnviz.min.js"></script>
with other dependent stylesheet and cytoscape and cytoscape extension libraries.
var sbgn = window.sbgn = sbgnviz({
container: document.getElementById('sbgn-network-container'),
ready: function(){
},