NuCivic / react-nvd3

React component for NVD3 re-usable charting library
MIT License
136 stars 44 forks source link

Sankey Chart Cannot read property 'renderEnd' of undefined #66

Open ajaybc opened 7 years ago

ajaybc commented 7 years ago

I am getting the following errors when I try to use Sankey Chart

Uncaught TypeError: Cannot read property 'renderEnd' of undefined at e.value (react-nvd3.min.js:1) at e.value (react-nvd3.min.js:1) at measureLifeCyclePerf (ReactCompositeComponent.js:75) at ReactCompositeComponent.js:729 at CallbackQueue.notifyAll (CallbackQueue.js:76) at ReactReconcileTransaction.close (ReactReconcileTransaction.js:80) at ReactReconcileTransaction.closeAll (Transaction.js:206) at ReactReconcileTransaction.perform (Transaction.js:153) at ReactUpdatesFlushTransaction.perform (Transaction.js:140) at ReactUpdatesFlushTransaction.perform (ReactUpdates.js:89)

and

Uncaught RangeError: Maximum call stack size exceeded at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1) at f (react-nvd3.min.js:1)

The data given was exactly as per the example at : https://github.com/novus/nvd3/blob/master/examples/sankeyChart.html

Event though the above errors are being thrown, I am able to see the chart, but it is not correct.

The other chart types (Line, Bar, Pie) are all working perfectly fine for me.

topicus commented 7 years ago

I think it's because it doesn't exists at the moment react-nvd3 was created. I will take a look but PRs are welcomed.