3 comments

[ 4.4 ms ] story [ 15.6 ms ] thread
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?
> is there a way to change the max fps?

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.