heavysixer / d4

A friendly reusable charts DSL for D3
MIT License
432 stars 46 forks source link

You can't pass empty data to stacked bars #21

Closed Timopheym closed 10 years ago

Timopheym commented 10 years ago

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/

heavysixer commented 10 years ago

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.