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

171
Views
The same plotly image size in tab-pane vs. tab-pane show active are different. How can I make them both fill the whole block?

I have a problem that I use the same method to insert plotly.py's image into html.

The first image by class="tab-pane fade show active" has perfectly fill the whole block. The .active {display:block} is the .css of that.

However, the second image by class="tab-pane fade" the size is shrinking to not fill all the block. The .tab-pane {display:none}.

I want to make the image from plotly.py to both tab-content no matter how the image size should be the same. Do it from .html and .css but I still cannot find the solution.

<div class="tab-content">
  <div id = 'week' class="tab-pane fade show active" role="tabpanel" aria-labelledby="contact-tab">
  <div id='chart0'></div>
  <script type='text/javascript'>
  var graphs = {{plot0 | safe}};
  Plotly.plot('chart0',graphs,{});</script>
  </div>
  <div id = 'month' class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
  <div id='chart1'></div>
  <script type='text/javascript'>
  var graphs = {{plot1 | safe}};
  Plotly.plot('chart1',graphs,{});
  </script>
  </div>
</div>

about 4 years ago · Juan Pablo Isaza
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!