Closed jpminnovation closed 2 years ago
I think the main issue is that Chart.js does not support width and height. The only reasonable thing we can do is ignore the width and height attribute (unless I'm missing something in the documentation?)
Do you agree?
It somehow react to width as it then grows "bigger" (but overlap the next section). If width & height are not documented in chart.js, then OK to ignore both parameters.
Actually, Chart.js does provide some configuration options but the parent container must be relatively positioned: https://www.chartjs.org/docs/3.5.0/configuration/responsive.html
I need to do some tests to make sure that there's no side effect.
When creating a graph with the chartjs engine and specifying the width of the graph, it the overlap the following text. This behavior does not appear with the c3js and chartist engines.
Here is a part of the document to reproduce the issue :
The result is :
Result obtained via using :