-1

I have two canvases using chart.js that are stacking vertically, when I want them to be side by side

enter image description here

<div style="width:30%;" class="row">
    <div class="my-4 col"><canvas id="costChart"></canvas></div>
    <div class="my-4 col"><canvas id="usersChart"></canvas></div>
</div>

Changing the width to a small number, and changing the col-x size doesn't get them to move into the same row. Any ideas?

Seltonu
  • 53
  • 7

1 Answers1

1

canvas{
    border:1px solid red;   
}
.row{
    display: flex       
}
<div style="width:30%;" class="row">
    <div class="my-4 col"><canvas id="costChart"></canvas></div>
    <div class="my-4 col"><canvas id="usersChart"></canvas></div>
</div>
Azu
  • 1,120
  • 2
  • 5
  • 10