0

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
  • 95
  • 1
  • 9

1 Answers1

2

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,494
  • 2
  • 6
  • 11