Giter Site home page Giter Site logo

Comments (5)

mpschr avatar mpschr commented on August 29, 2024

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

from muts-needle-plot.

jacobhurst avatar jacobhurst commented on August 29, 2024

Hi @mpschr
Thanks for making your code available! Looking in the console it can't see D3...

screenshot from 2015-02-27 10 20 52

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

from muts-needle-plot.

mpschr avatar mpschr commented on August 29, 2024

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

from muts-needle-plot.

jacobhurst avatar jacobhurst commented on August 29, 2024

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

[email protected] sniper /home/jacobhurst/play/node_modules/muts-needle-plot
biojs-sniper .

sh: 1: biojs-sniper: not found

from muts-needle-plot.

mpschr avatar mpschr commented on August 29, 2024

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.

from muts-needle-plot.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.