Giter VIP home page Giter VIP logo

Comments (4)

Reggino avatar Reggino commented on May 30, 2024

Hi!

You probably have to fork the component for these things.

Documentation on an SVG gradient can be found here: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Gradients . Add some extra gradient-settings to the <defs> section in the render-method, apply that to the path and you should be fine.

The position of the value can be retrieved by looking at the _getPathValues-method. When you pass your value, the result Xo / Yo / Xi / Yi (X and Y in inner / outer coordinates.). You may want to look at http://justgage.com/examples/pointer.html for inspiration!

from react-svg-gauge.

haidermahmood avatar haidermahmood commented on May 30, 2024

Tim,

I have made progress after changing the code a bit. Now I can see gradient and get the value coordinates. I can create a fork for that. But is it possible if I use my fork for using in a project? I would like to use your package in my project but customized. I mean I want to add it in package.json. So, what do you think I should do as it is your code originally.

Regards,
Haider

from react-svg-gauge.

Reggino avatar Reggino commented on May 30, 2024

Haider,

Feel free to copy, paste and adjust the source as you need in your own project.

Regards

Tim

from react-svg-gauge.

haidermahmood avatar haidermahmood commented on May 30, 2024

Thanks, Tim

from react-svg-gauge.

Related Issues (18)

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.