Library author here. v1.0 was released recently with React 17 support (and v6 d3.js). I thought this would be a good time to get some feedback from people here.
There are also Vue[0] and Svelte[1] libraries for anyone interested in those frameworks (all the three libraries share the same core).
what the hell -- this seems like such a random component to make and share on hacker news.
what's even more bizarre is that this is _exactly_ what I've been wanting and even dreaming about all week. the exact same stack (react, d3), component interface, and even the color theme. in fact, I'd go as far as to say whatever I would have made would not have been as well productionized.
After playing around with the csb a bit, here are some thoughts:
* looks great! documentation and read me is great too
* is there a way to change the max fps? frames become apparent on the onset of the animation when the starting and destination needle position are significantly distant
* some of the `InOut` animations are jarringly "shaky", like `easeBounceInOut`
also, just curious -- what was your motivation and use case for building this?
The needle transition is based on the duration given by the user. You can control the timing by controlling the needle transition duration.
> what was your motivation and use case for building this?
Initially I built this for myself to be used in one of my work related projects. Now, I'm just maintaining it since people depend on this.
3 comments
[ 4.4 ms ] story [ 15.6 ms ] threadLibrary author here. v1.0 was released recently with React 17 support (and v6 d3.js). I thought this would be a good time to get some feedback from people here.
There are also Vue[0] and Svelte[1] libraries for anyone interested in those frameworks (all the three libraries share the same core).
Glad to answer any questions.
[0] - https://github.com/palerdot/vue-speedometer
[1] - https://github.com/palerdot/svelte-speedometer
what's even more bizarre is that this is _exactly_ what I've been wanting and even dreaming about all week. the exact same stack (react, d3), component interface, and even the color theme. in fact, I'd go as far as to say whatever I would have made would not have been as well productionized.
After playing around with the csb a bit, here are some thoughts:
also, just curious -- what was your motivation and use case for building this?The needle transition is based on the duration given by the user. You can control the timing by controlling the needle transition duration.
> what was your motivation and use case for building this? Initially I built this for myself to be used in one of my work related projects. Now, I'm just maintaining it since people depend on this.