M
M
Michael2019-05-09 21:39:49
Canvas
Michael, 2019-05-09 21:39:49

Canvas on Chart.js resizing in flexbox?

Others tell me. I have a frame like this:

<div style="display: flex;">
  <div id=1 style="flex-grow: 0.75;"><canvas id=some_id></div>
  <div id=2 style="flex-grow: 0.25;">...</div>
</div>

canvas - chart on Chart.js
When the page expands, the canvas increases, and when the page width decreases, it does not change. How to be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question