Canvas height will not stretch for horizontalBar chart with a large dataset

I’m unable to configure my horizontalBar chart to stretch vertically with a large data set. I’ve played around with the canvas height, the barThickness, canvasPercentage, and barPercentage options.

The expected behaviour is that if I set a static barThickness and leave the canvas height blank, that the canvas will stretch vertically as much as it needs to in order to accommodate the bars, but instead this happens:

screen shot 2016-12-07 at 1 30 02 pm

Author: Fantashit

2 thoughts on “Canvas height will not stretch for horizontalBar chart with a large dataset

  1. @lvsof I think you’re setting the height directly on the canvas (based on using chartCtx as input to $). Try the div that contains it instead. I think that will give better behaviour.

Comments are closed.