datavisyn/chartjs-chart-box-and-violin-plot

Aspect Ratio does not change plot

acochrane-nvx opened this issue · 1 comments

Updating the aspectRatio option of a box plot does not change the aspect ratio of the box plot, even with the maintainAspectRatio disabled. I've tested every combination of maintainAspectRatio and responsive, as well as adjusting the canvas holding the box plot, but all that winds up doing is stretching the box plot to the point where it becomes almost unreadable (see image below).

image

I feel like I'm just missing something but would like to open this anyway in case anybody else needs help with this.

Going to close this. Found a relevent issue on chart.js, here are the steps to fix:

boxchart.aspectRatio = 1;
boxchart.update();
boxchart.resize();