Giter Site home page Giter Site logo

muts-needle-plot's People

Contributors

mpschr avatar wilzbach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

muts-needle-plot's Issues

Need to clarify licence and/or add LICENCE file

It would be very nice and useful if @mpschr and contributors were able to clarify licence for this software/repository - I think that more users would choose this module and more PRs will be issued if developers would know what the licence is and what is a general vision for development of this module. If the licence is somewhere, it might be a good idea to create a LICENCE file in the main directory of repository so it would be more visible.

Kind regards and thanks for creating this great piece of software!

Seem to be missing legend?

Think, I've got it running ok but the legend does not appear to be there when I select an area with the mouse?

i also had to change the reference in package.json to biojs-sniper to sniper? i used npm to install.

screenshot from 2015-02-26 17 09 53

Regions in x axis are not displayed in plot when length = 1

        plotConfig = {
            maxCoord :      regions_data[selected_gene]['maxcoord'],
            minCoord :      0,
            height:         450,
            targetElement : "mutsplot_chart",
            mutationData:   regions_data[selected_gene]['muts'],
            regionData:     regions_data[selected_gene]['regions'],
            colorMap:       colorMap,
            legends:        legends
                    };

throws error with multiple plots on a page

I haven't traced the root cause of this, but a quick look with eslint shows dozens of globals. I suggest adding eslint, using 'use strict', and eliminating the globals.

Add / remove data

Provide possibility to add / remove mutations and regions and the plot updates itself

biojs snippets

I just saw that you published this nice component. Nice!

Also I saw that the "snippets" documentation isn't pefect yet, so I just post here what I saw in your package - maybe it helps you.

  • if you want the snippets to work on JSBin etc. the link needs to be relative (data -> ./data). Otherwise there is no way for the registry to fix the path
  • the sniper "magic" is that it creates a default html with one div (if one doesn't specify a html page)
var yourDiv = document.getElementById('zg036315rk9');

So if you use the string "yourDiv" d3 won't find the injected element and d3 will use document.body as fallback. As yourDiv is a DOM reference you can pass it directly to D3 like target: yourDiv, or you can also get its id with yourDiv.id

event hooks

Hi, nice lib! Starting to put it to use in a project. What would be the best practice for hooking into the drag-end event, or any event really? I'd like to fire off another custom function that uses the selected coords.
cheers,
:Larry

including in webpack build

Is there a recommended way to include this lib from webpack? Doing a simple require() results in dependencies (d3-tip) not being available at run-time.

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.