Comments (4)
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.
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.
Haider,
Feel free to copy, paste and adjust the source as you need in your own project.
Regards
Tim
from react-svg-gauge.
Thanks, Tim
from react-svg-gauge.
Related Issues (18)
- Warnings in Dev Console when Gauge Chart is rendered HOT 1
- Types for TypeScript. HOT 2
- How to add Arc line on the Chart
- Upgrade to React v16 HOT 1
- How to set the arc width HOT 1
- Can i modify number with text render ? HOT 2
- Change font color of formatter HOT 3
- Support minTxt and maxTxt properties of JustGage HOT 1
- No LICENSE for your project HOT 1
- Is it possible to remove the label? HOT 1
- How to change max label HOT 2
- Lib missing in v 1.0.2 HOT 1
- Please publish new version
- How to build into lib HOT 4
- How to remove "padding" around gauge HOT 4
- Weird behavior when value exceeds limits HOT 5
- Publish/Update NPM project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-svg-gauge.