react-d3

Using transitions in React Hooks and D3

一个人想着一个人 提交于 2021-01-29 17:22:37
问题 I am trying to replicate the gauge seen here in React with Hooks. It's the first time I am working with D3.js and even though I managed to replicate the gauge itself, the behavior is a bit strange (transition of the needles does not work) and I am not fully understanding the dynamics between useEffect and D3. Basically I want to add two needles that will each receive different values and use a transition when their value changes. //declaring angle value const [angle1, setAngle1] = useState(0)

Upgrading React to 0.13.2 causes: “Uncaught TypeError: Cannot read property '_currentElement' of null”

蓝咒 提交于 2019-12-21 03:12:56
问题 I upgraded my React version from 0.12.2 to 0.13.2 and my React-Router from 0.12.4 to 0.13.2. Doing just those two upgrades and nothing else, I now get the following error when I load my webpage/app: Uncaught TypeError: Cannot read property '_currentElement' of null Any ideas what might be causing this? I have seem some references to a potential React-Router bug, but nothing definitive. The specific line that causes the error is: ReactRef.detachRefs(internalInstance, internalInstance.

Adding react-d3 to my react-native app causes a error

自作多情 提交于 2019-12-13 02:38:16
问题 I am quite new to reactJS , and have just started working with react-native . I added react-d3 using npm install --save-dev react-d3 but when I refresh or rebuild the app I am getting: TypeError: undefined is not an object (evaluating 'require('BatchedBridge').flushedQueue') { "line":1 , "column": 25 } If I remove or uninstall react-d3 from the library it works fine. Thanks 回答1: D3JS requires browser DOM, which React Native doesn't directly have. The only way to possibly do this is to use a

Gantt Chart react-d3

青春壹個敷衍的年華 提交于 2019-12-12 03:28:46
问题 This question is related to Gantt chart with D3 I see that a pretty close implementation is available for AngularJS at https://www.angular-gantt.com/demo/ Is there an equivalent in React? I've checked http://www.reactd3.org/ and https://github.com/FormidableLabs/victory but there is nothing at the moment that seamlessly has the Gantt features. What would the best way be to go about this with React. The collapsible rows and the brush are the attractive features in the Angular Gantt. This -

Upgrading React to 0.13.2 causes: “Uncaught TypeError: Cannot read property '_currentElement' of null”

為{幸葍}努か 提交于 2019-12-03 09:34:20
I upgraded my React version from 0.12.2 to 0.13.2 and my React-Router from 0.12.4 to 0.13.2. Doing just those two upgrades and nothing else, I now get the following error when I load my webpage/app: Uncaught TypeError: Cannot read property '_currentElement' of null Any ideas what might be causing this? I have seem some references to a potential React-Router bug, but nothing definitive. The specific line that causes the error is: ReactRef.detachRefs(internalInstance, internalInstance._currentElement); Update 1: I also just upgraded reactify from version 1.0.0 to 1.1.0 and react-router-bootstrap