Comments (6)
@tinaboyce Can you share the source for the above snippet with multiple speedometers?
from react-d3-speedometer.
@tinaboyce I see you have given a PR. I will look into this issue and PR and update on this issue. Thanks for your effort.
from react-d3-speedometer.
Thanks for looking into it!
I should've updated my findings here. During debugging, I've narrowed down to wierd behaviour with the ticker pumping out wrong values.
My issue above is replicable if you turned of my additions and see the update in storybook.
from react-d3-speedometer.
I investigated this issue and seems like a d3-scale
bug. I have also raised an issue - d3/d3-scale#149
I have created a new branch - https://github.com/palerdot/react-d3-speedometer/tree/issue-27-d3-scale-bugfix with following changes
- Taken the fix for
d3-scale
from the PR - Added tests for this particular behaviour - https://github.com/palerdot/react-d3-speedometer/blob/issue-27-d3-scale-bugfix/src/tests/index.js#L147
- Bumped
d3
version to5.x
Since there is a major version bump of d3
, this will be released as 0.4.0
. I will publish these changes once tests pass in travis CI and update stuffs in this issue. Thanks for raising this issue and suggesting the fix.
from react-d3-speedometer.
v0.4.0
published - https://www.npmjs.com/package/react-d3-speedometer/v/0.4.0
[Changelog] - https://github.com/palerdot/react-d3-speedometer/blob/master/CHANGELOG.md#040
from react-d3-speedometer.
@tinaboyce How did you even get this to show... i have been on this for weeks and mine is not showing... I enqueued the index.js in the page i want the speedometer to show, i go an error saying require is not designed. I then searched the internet and just got a solution few minutes ago using Browserify (which i have done and created a bundle file of the index.js (which is located in node_modules>react-d3-speedometer>dist>index.js
) and enqueued the bundled js and the error was fixed but speedometer still not showing. Now sure what i'm still missing. I already created an issue here: #37
from react-d3-speedometer.
Related Issues (20)
- Adding New props
- zoom in or out not take parent width HOT 3
- "Error: require() of ES Module" while unit testing with vitest and react-resting library
- Hi guys i am working on react speedometer chart in my company project where i want seven emotion and that niddle should move to the dominant emotion value and perticular to the colored segment as well
- Hi guys i am working on react speedometer chart in my company project where i want seven emotion and that niddle should move to the dominant emotion value and perticular to the colored segment as well
- Target animation HOT 1
- Fluid Width prop to take only necessary height HOT 5
- How to add a linear gradient color to needle HOT 5
- Facing app crash after importing using given example HOT 5
- Allow `segmentValueFormatter` to return a DOM node HOT 2
- Having two labels HOT 1
- Possible to make needle stop at max value? HOT 3
- Minus sign used in "segmentValueFormatter" is wrong HOT 2
- Setting Full width Prop to true is make the speedometer component to render partially and then re render on state change HOT 3
- Tooltip on hover on the segment HOT 1
- First value should be equivalent to min value given. Current min value - 1000 HOT 2
- Typescript React v18 react-d3-speedometer@next. I am getting Could not find a declaration file for module 'react-d3-speedometer'. HOT 1
- Custom Segment Labels should be an array with length of 10
- When will v2.0 become general available? is it stable already? HOT 2
- Custom segment labels display error HOT 3
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-d3-speedometer.