Giter VIP home page Giter VIP logo

Comments (5)

naikus avatar naikus commented on May 30, 2024

Hi @StefanoBettega, thanks for the feedback. I'll see if I can work on these. Meanwhile, please feel free to submit a merge request if you can :)

from svg-gauge.

naikus avatar naikus commented on May 30, 2024

Hi @StefanoBettega,
The first two points can be solved using following workarounds:

  1. Set a fixed width and height to gauge container and wrap it inside another smaller container with overflow as hidden
  2. To show floating point values provide a label render using label function option. It gets the raw value. The default implementation rounds the value.

The third is a bit more involving and would also make the gauge overly complicated. With a lot more options. This gauge's objective is to remain compact and simple. Feel free to fork and implement it :)

Cheers!

from svg-gauge.

naikus avatar naikus commented on May 30, 2024

Hi @StefanoBettega
I've updated the demo reflecting some of the changes you wanted.

from svg-gauge.

schlunsen avatar schlunsen commented on May 30, 2024

Hi,

How would one greate a gauge like number 4 in the demo, but with the possibility of the gauge value to exceed the maximium (represented by the 'dial' in css)? I mean that the underlaying border will still be a 1/4 circle while the gauge value can exceed to be a 1/2 circle.

Thanks for a really great project!

from svg-gauge.

naikus avatar naikus commented on May 30, 2024

Hi @schlunsen,
Unfortunately, that's not possible in this gauge. But a "poor man" solution would be to have dial color same as background color and have a full circle gauge dial.

The gauge options once set don't change (except value). I'll look into this if possible. Meanwhile, you are free to fork and make the changes ;)

from svg-gauge.

Related Issues (20)

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.