I’m not sure if there is a way to fix this, or if it’s a use case for anyone else, but when using transparency in stacked area, the colored blocks go all the way to the axis, which compounds and tints the the stack underneath it.
2 thoughts on “Stacked area draws all the way to the bottom”
Comments are closed.
Finally implemented as an internal plugin: this is not a bug fix, so for backward compatibility, default config will generate the same result as the one in the ticket description . To “stack” fill areas, you need the following:
This feature will be released in v2.6, until then, you can build
master
by yourself:git clone https://github.com/chartjs/Chart.js.git chartjs cd chartjs npm install gulp build
Built files will be generated in the
/dist
folder. Any help beta testing this new feature will be very appreciated 🙂That’s because you set
fill: 'origin'
on the second dataset, which means: fill all the way down to 0 🙂 Just remove it to get it work: https://jsfiddle.net/xtco0k6d/3/