Giter Club home page Giter Club logo

d3-simple-gauge's People

Contributors

antoinebeland avatar dependabot[bot] avatar lgodard avatar stof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

d3-simple-gauge's Issues

Possibly disable needle animation ?

in some use cases (eg. server-side convert to png) the needle animation has to be disabled

passing config.animationDuration = 0 is not a possibility as the constructor test evaluates it to false and then uses the CONSTANT.NEEDLE_ANIMATION_DURATION

many possibilities

  1. using config.animationDuration = 0.001 works (hackish though)
  2. change CONSTANT.NEEDLE_ANIMATION_DURATION default value to 0 - the animation will be defined but with instant evaluation
  3. creates a boolean deactivateAnimation and modify Needleclass accordingly
  4. creates an animation object property and only set the animation if defined
animation: {
  duration: 3000,
  delay: 0
}

I personally would prefer option 4. (or 2.)

Any opinion ?

gulp dependency is out of date

gulp utilise des paquets qui sont reportés comme problématiques par npm audit

d3-simple-gauge > gulp > gulp-cli > yargs > yargs-parser 
d3-simple-gauge > gulp > glob-watcher > chokidar >  glob-parent
d3-simple-gauge > gulp > vinyl-fs > glob-stream > glob-parent

Customize classes ?

Hi,
I plan to use the package but would need to have different gauges in a same page with different colors, so different classes settings
Is there any way to pass self-named classes as argument ?
Any evolution possible in the module ? I may help

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.