我的网页上有3个标签,每个标签上都有2个Google图表。图表中显示的第一个选项卡显示完美,而其他两个图表未完全加载。
那么,当用户选择选项卡上的数据时,有什么方法可以重新加载它吗?
<div class="card-header" style="background-color:white">
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Cox</a>
<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Shaw</a>
<a class="nav-item nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Rogers</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
<div class="card-body">
<div class="row">
<div class="col-xl-auto">
<div id="cox_barchart"></div>
</div>
<div class="col-xl-auto">
<div id="cox_table_div"></div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">
<div class="card-body">
<div class="row">
<div class="col-xl-auto">
<div id="shaw_barchart"></div>
</div>
<div class="col-xl-auto">
<div id="shaw_table_div"></div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">
<div class="card-body">
<div class="row">
<div class="col-xl-auto">
<div id="rogers_barchart"></div>
</div>
<div class="col-xl-auto">
<div id="rogers_table_div"></div>
</div>
</div>
</div>
</div>
</div>