palantir / plottable

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

Scrambled stacked bar chart if a data point is below Y domainMin or total is above domainMax #3480

Open rstarkov opened 5 years ago

rstarkov commented 5 years ago

See demo here: https://jsbin.com/ceyijacuva/2/edit?html,output (or as a gist)

Normal display:

With one data point below domainMin (data[0].r = 5):

With total exceeding domainMax (data[0].r = 150):

Expected behaviour

The rightmost column should remain unaffected in both cases.

Actual behaviour

Parts of the rightmost column disappear.

This is just one example; I've seen the chart get scrambled in other ways if this condition occurs.