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

Set box max width

christiaan-lombard opened this issue · 3 comments

Is there a way to set the max width of a box-plot rectangle. If my dataset only contains one or two items I not want it to stretch as below:

image

I saw in another issue that a box plot uses the Bar Controller but maxBarThickness is not working.

does it work? if so please close this issue

Ahh, I see the maxBarThickness is a option of the xAxis, not the Dataset as the documentation suggests (https://www.chartjs.org/docs/latest/charts/bar.html).

Thanks