heavysixer / d4

A friendly reusable charts DSL for D3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You can't pass empty data to stacked bars

Timopheym opened this issue · comments

Is it by Design? I can pass empty data to any type of chart, but when i try it with stacked i got d3 error.
Bin: http://jsbin.com/topeqiva/15/

I think this "kind of" makes sense because we are trying to create a nest around an empty array and therefore nothing to stack. I think we can rescue for this in a little more elegant fashion though. It probably needs to be handled in the stacked parser.