antoinebeland / d3-simple-gauge Goto Github PK
View Code? Open in Web Editor NEWA simple gauge written with D3.js.
Home Page: https://www.antoinebeland.com/d3-simple-gauge/
License: MIT License
A simple gauge written with D3.js.
Home Page: https://www.antoinebeland.com/d3-simple-gauge/
License: MIT License
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
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
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
config.animationDuration = 0.001
works (hackish though)CONSTANT.NEEDLE_ANIMATION_DURATION
default value to 0 - the animation will be defined but with instant evaluationdeactivateAnimation
and modify Needle
class accordinglyanimation
object property and only set the animation if definedanimation: {
duration: 3000,
delay: 0
}
I personally would prefer option 4. (or 2.)
Any opinion ?
CHAR_INSET
margin in the svg container is fixed as a CONSTANT
It should be customizable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.