Giter VIP home page Giter VIP logo

Comments (8)

mattrothenberg avatar mattrothenberg commented on May 30, 2024

from use-gauge.

raRaRa avatar raRaRa commented on May 30, 2024

Ah, the issue seems to be that I set 9 to numTicks, instead of 10, since it's from 0 to 9. Setting it to 10 seems to fix it! Apologies!

from use-gauge.

mattrothenberg avatar mattrothenberg commented on May 30, 2024

from use-gauge.

raRaRa avatar raRaRa commented on May 30, 2024

Good question. I'm wondering if numTicks beyond or below the range of the domain should not affect the needle like it did in my case.

But IMO the API feels really nice to work with. I'm just beginning to use it for a project and I'll make sure to leave some feedback if I get some ideas.

from use-gauge.

mattrothenberg avatar mattrothenberg commented on May 30, 2024

from use-gauge.

raRaRa avatar raRaRa commented on May 30, 2024

Super off-topic to this issue, but would it make more sense to use transform rotation on the needle, so that we can use CSS transition for it? That way I could make the needle move smoothly between values.

from use-gauge.

mattrothenberg avatar mattrothenberg commented on May 30, 2024

I think that could work? If you don't mind opening up a new issue I can take a look at that sometime soon. 🙏

from use-gauge.

raRaRa avatar raRaRa commented on May 30, 2024

Closing this issue to start a new one - this issue was just related to numTicks being off.

from use-gauge.

Related Issues (11)

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.