diff --git a/docs/configuration/responsive.md b/docs/configuration/responsive.md index ff2018f6f..867dcde14 100644 --- a/docs/configuration/responsive.md +++ b/docs/configuration/responsive.md @@ -41,6 +41,19 @@ chart.canvas.parentNode.style.width = '128px'; Note that in order for the above code to correctly resize the chart height, the [`maintainAspectRatio`](#configuration-options) option must also be set to `false`. +## Flexbox / Grid Layout + +To prevent overflow issues when using flexbox / grid layout, you must set the flex / grid child element to have a `min-width` of `0`. +See [issue 4156](https://github.com/chartjs/Chart.js/issues/4156#issuecomment-295180128) for more details. + +```html +