yang-wei / rd3

react + d3
https://yang-wei.github.io/rd3/
MIT License
319 stars 83 forks source link

BarChart: <rect> attribute width: Expected length, "NaN". #62

Closed jdelafon closed 8 years ago

jdelafon commented 8 years ago

When not specifying viewBoxObject in a BarChart, it throws

DOMPropertyOperations.js:147Error: <rect> attribute width: Expected length, "NaN".
Error: <rect> attribute x: Expected length, "NaN".

Same error if the accessors are wrong and no x nor y can be accessed.

The error message should be improved.

yang-wei commented 8 years ago

probably related to https://github.com/yang-wei/rd3/issues/65 ?

Can you submit a jsfiddle This shouldn't be a bug

jdelafon commented 8 years ago

Now I can't reproduce it either... I'll reopen with a fiddle when I encounter it again.