Chart.js: [BUG] Regression introduced for stacking xAxes (at v2.5)

Created on 14 Mar 2017  ·  2Comments  ·  Source: chartjs/Chart.js

Expected Behavior



Bars should overlay one another -- note that I don't mean stacked on top of one another; the vertical start position of each bar should remain at the bottom (y=0). This is accomplished via xAxes: [{ stacked: true }]. Demo of desired functionality working w/v2.4.

Current Behavior



stacked does not appear to have an effect in the xAxes property.

Possible Solution


Steps to Reproduce (for bugs)



Demo of desired functionality not working w/v.2.5

Context



I'm trying to recreate vizwit.io using Chart.js and this is the most essential feature to show "filtering" of "totals."

Environment

  • Chart.js version: v2.4 and v2.5
  • Browser name and version: Chrome latest
  • Link to your project: http://vizwit.io
duplicate bug

Most helpful comment

Thanks for reporting this @timwis. I believe this is a duplicate of #3849 which was fixed in #3899. You could try a custom build with that fix included and see if it works for you

All 2 comments

Thanks for reporting this @timwis. I believe this is a duplicate of #3849 which was fixed in #3899. You could try a custom build with that fix included and see if it works for you

Thanks @etimberg!

Was this page helpful?
0 / 5 - 0 ratings