Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
ApexChart not displaying properly in cloumns container

I'm trying to render my ApexChart in a container with this CSS property: columns: 2; When I remove that property, it gets renders as assumed:

Correct render

But with the giving CSS this happens:

broken render

I have no idea why this is happening... As I already tried a lot, I'm very sure, that the given line of CSS is the source of the error and not anything else.

I created a fiddle which recreates the bug: https://jsfiddle.net/levi_hrb/9dzrxv73/12/

I know that it would be possible to order the containers with JavaScript into two masonry columns. The problem is, that the content and height is often changing, so it would be the best if there were a pure CSS solution.

I would be very happy for any help, thank you very much!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The above design is working well with grid.

.widget-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  .widget-box {
    display: block;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 4px;
  }
}
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>

<div class="col-12 widget-container">

  <div class="widget-box">
    <div class="apexchart" id="apexchart" style="min-height: 315px;"></div>
  </div>


  <div class="widget-box">
    <div class="apexchart" id="apexchart2" style="min-height: 315px;"></div>
  </div>

</div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!