palantir / plottable

:bar_chart: A library of modular chart components built on D3
http://plottablejs.org/
MIT License
2.98k stars 221 forks source link

Plots.Waterfall can't take .datasets call before .x or .y or .total #2673

Open crmorford opened 9 years ago

crmorford commented 9 years ago

http://jsfiddle.net/ts720tdr/15/ I called .datasets() before .x() and .y(), and got an error saying "Uncaught TypeError: Cannot read property 'accessor' of undefined"

This doesn't happen if you call .x() and .y() before .datasets(). screen shot 2015-08-24 at 3 40 25 pm screen shot 2015-08-24 at 3 40 18 pm

bluong commented 9 years ago

If you try to call it before total() it also breaks.