Bootstrap Doughnut Chart Card Minimal Example

Devices Stats

Overview

Desktop

since last week

60%
Tablet

since last week

25%
Mobile

since last week

15%

Place the code in the <body> for Interface
          
<!-- Chart 7 - Bootstrap Brain Component -->
<section class="py-3 py-md-5">
  <div class="container">
    <div class="row justify-content-center">
      <div class="col-12 col-sm-10 col-md-7 col-lg-6 col-xl-5 col-xxl-4">
        <div class="card widget-card border-light shadow-sm">
          <div class="card-body p-4">
            <h5 class="card-title widget-card-title mb-1">Devices Stats</h5>
            <p class="fs-7 text-secondary mb-4">Overview</p>
            <div id="bsb-chart-7" class="mb-4"></div>
            <div class="row gy-4">
              <div class="col-12">
                <div class="row align-items-center">
                  <div class="col-8">
                    <div class="d-flex align-items-center">
                      <div>
                        <div class="fs-5 bsb-w-50 bsb-h-50 bg-primary-subtle text-primary rounded-2 d-flex align-items-center justify-content-center me-3">
                          <i class="bi bi-display"></i>
                        </div>
                      </div>
                      <div>
                        <h6 class="m-0">Desktop</h6>
                        <p class="text-secondary m-0 fs-7">since last week</p>
                      </div>
                    </div>
                  </div>
                  <div class="col-4">
                    <h6 class="fs-7 d-flex align-items-center justify-content-end m-0">
                      <span class="bg-primary-subtle text-primary rounded-2 py-1 px-2">60%</span>
                    </h6>
                  </div>
                </div>
              </div>
              <div class="col-12">
                <div class="row align-items-center">
                  <div class="col-8">
                    <div class="d-flex align-items-center">
                      <div>
                        <div class="fs-5 bsb-w-50 bsb-h-50 bg-success-subtle text-success rounded-2 d-flex align-items-center justify-content-center me-3">
                          <i class="bi bi-tablet"></i>
                        </div>
                      </div>
                      <div>
                        <h6 class="m-0">Tablet</h6>
                        <p class="text-secondary m-0 fs-7">since last week</p>
                      </div>
                    </div>
                  </div>
                  <div class="col-4">
                    <h6 class="fs-7 d-flex align-items-center justify-content-end m-0">
                      <span class="bg-success-subtle text-success rounded-2 py-1 px-2">25%</span>
                    </h6>
                  </div>
                </div>
              </div>
              <div class="col-12">
                <div class="row align-items-center">
                  <div class="col-8">
                    <div class="d-flex align-items-center">
                      <div>
                        <div class="fs-5 bsb-w-50 bsb-h-50 bg-danger-subtle text-danger rounded-2 d-flex align-items-center justify-content-center me-3">
                          <i class="bi bi-phone"></i>
                        </div>
                      </div>
                      <div>
                        <h6 class="m-0">Mobile</h6>
                        <p class="text-secondary m-0 fs-7">since last week</p>
                      </div>
                    </div>
                  </div>
                  <div class="col-4">
                    <h6 class="fs-7 d-flex align-items-center justify-content-end m-0">
                      <span class="bg-danger-subtle text-danger rounded-2 py-1 px-2">15%</span>
                    </h6>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
        
Place the <link> tag in the <head> for CSS
          
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/components/charts/chart-7/assets/css/chart-7.css">
        
Place the <script> tag before the closing </body> for JS
            
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script src="https://unpkg.com/[email protected]/components/charts/chart-7/assets/controller/chart-7.js"></script>
          

The Minimal Doughnut Chart Card is a simplified and clean visual component designed for integration within admin dashboards. It offers a straightforward representation of data using doughnut charts with a minimalist design approach. This feature, constructed with a minimalistic aesthetic in mind, ensures clarity and ease of comprehension. It allows administrators to display categorical data or proportions concisely within dashboard cards.