I have an Issue page which generate these numbers from mySQL. These numbers keeps changing based on the issue raised, on-hold or closed.
$opened - 8
$onHold - 3
$completed - 60
I want to place them in the Bootstrap progress bar. How do i do that.
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 15%"></div>
<div class="progress-bar bg-success" role="progressbar" style="width: 30%"></div>
<div class="progress-bar bg-info" role="progressbar" style="width: 20%"></div>
</div>
UPDATED
This explains https://stackoverflow.com/a/46082290/5413283 a single bar, i am looking for 3 bars.
here's what i tried
<section>
<div class="progress">
<div class="progress-bar bg-success" role="progressbar" style="width: <?php echo $completed; ?>%;" aria-valuenow="<?php echo $bal; ?>" aria-valuemin="0" aria-valuemax="100"><?php echo $completed; ?></div>
<div class="progress-bar bg-danger text-right pr-2" role="progressbar" style="width: <?php echo $opened; ?>%;" aria-valuenow="<?php echo $output; ?>" aria-valuemin="0" aria-valuemax="100"><?php echo $opened; ?></div>
<div class="progress-bar bg-warning text-right pr-2" role="progressbar" style="width: <?php echo $onHold; ?>%;" aria-valuenow="<?php echo $output; ?>" aria-valuemin="0" aria-valuemax="100"><?php echo $onHold; ?></div>
</div>
</section>
Here's the output
how do i fill the progress bar (without the gray area)
