react-d3 / react-d3-shape

react-d3 shapes, such as line, scatter, bar, bar stack ... and more.
24 stars 40 forks source link

Missing key property in BarStack #11

Closed JesHansen closed 8 years ago

JesHansen commented 8 years ago

I've encountered the following warning seen in the Chrome console when using the BarStackChart from react-d3-basic:

warning.js?c790:45 Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of BarStack. See https://fb.me/react-warning-keys for more information.

It looks like the return statement (return _react2.default.createElement ...) of the function _mkBarStack in react-d3-shape\lib\components\bar_stack.js doesn't set a key property on the elements returned.

JesperKihlberg commented 8 years ago

This is also the case in Bar and BarHorizontal.

fysheets commented 7 years ago

@Udokah - Since this was closed, I was wondering what the resolution was, or if it was closed but not resolved? Seeing the issue with AreaStack.

svet93 commented 7 years ago

I too see the problem with BarStack