Seem to be missing legend?
Closed this issue · 5 comments
Hi @jacobhurst
Thanks for reporting!
The biojs-sniper should be working fine. But the dependency was missing until recently from the non-developer dependencies. (see this commit: https://github.com/bbglab/muts-needle-plot/blob/4468fe7c5ef13c67a680e40e1e002441a94d8454/package.json).
About the legend: It's hard to tell what is goin wrong there. Could you access the chrome or firefox console and see if there is any error message?
Cheers
Hi @mpschr
Thanks for making your code available! Looking in the console it can't see D3...
DIR:.
url /
url /build/muts-needle-plot.css
url /build/muts-needle-plot.js
url /src/js/dependencies/d3.js
url /snippets/data/muts.json
url /snippets/data/regions.json
seems to load the d3 here...
cheers
Hi,
Here it tries to use the code in the file: src/js/d3-svg-legend.js
and for some reason it is not loaded. Is it missing from the dependencies? I mean, can you see in the HTML if it is being loaded?
A couple of other questions:
- Is there the same error for all the examples?
- Did you follow the npm-installation guide in the README?
I just followed the npm-installation guide and it seemed to work fine
The npm install does not work for me, from my history file:-
2004 sudo npm install -g npm
2005 npm run sniper
2006 cd muts-needle-plot/
2007 npm run sniper
2008 sudo npm install -g sniper
2009 npm run sniper
It then fails on:-
[03-03-15 09:39:20 l: 1.47] $> npm run sniper
muts-needle-plot@0.8.0 sniper /home/jacobhurst/play/node_modules/muts-needle-plot
biojs-sniper .
sh: 1: biojs-sniper: not found
Try installing with npm install biojs-sniper
Anyhow, I was able to install and run the plot with these three commands (I don't know what the -g option does)
npm install muts-needle-plot
cd node_modules/muts-needle-plot
npm run sniper
The biojs-sniper should be installed automatically. If not, try to install it afterwards with the command on the first line.