Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Is it possible to place a chart in a card?

bpeterson priority asked 2 years ago


Is it possible to place a chart in a card? I tried a few things and so far; it doesn't seem possible...

          <!--Grid column-->
          <div class="col-lg-6 col-md-18 mb-6">
            <div class="card">
        <div class="card-header">Header</div>
        <div class="card-body">
            <div data-mdb-chart="doughnut" data-mdb-dataset-label="Traffic" data-mdb-dataset-data="[2112, 2343, 2545]" data-mdb-dataset-background-color="['rgba(233, 30, 99, 0.5)', 'rgba(66, 73, 244, 0.4)', 'rgba(66, 133, 244, 0.2)']">
                    </div>
                </div>
        </div>
      </div>
      <!--Grid column-->

Grzegorz Bujański staff answered 2 years ago


Unfortunately I am unable to reproduce this issue. Can you prepare a snippet with this problem? Is this chart added dynamically?

https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/4485830



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 5.0.0
  • Device: PC
  • Browser: Chrome
  • OS: Win10
  • Provided sample code: No
  • Provided link: No