You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to render multiple charts on tabs in bootstrap using your package it only displays one chart (on the starting active tab) but does not display on other tabs. Thanks.
ul class="nav nav-tabs">
li class="active">a data-toggle="tab" href="#home">Home
li>a data-toggle="tab" href="#menu1">Menu 1
li>a data-toggle="tab" href="#menu2">Menu 2
/ul>
div class="tab-content">
div id="home" class="body tab-pane fade in active" style="width: 95%;">
{!! $chartjs->render() !!}
{{--
@jocarullo I reproduced the problem but suspected it would not work because the charts are built using the element id, where we set using the name() and element() builder method.
Basically if you have two charts to display, each one in a tab, they must be different, so they are of a different instance. If I understand your problem better maybe I can help you building a solution.
When I try to render multiple charts on tabs in bootstrap using your package it only displays one chart (on the starting active tab) but does not display on other tabs. Thanks.
--}}ul class="nav nav-tabs">
li class="active">a data-toggle="tab" href="#home">Home
li>a data-toggle="tab" href="#menu1">Menu 1
li>a data-toggle="tab" href="#menu2">Menu 2
/ul>
div class="tab-content">
div id="home" class="body tab-pane fade in active" style="width: 95%;">
{!! $chartjs->render() !!}
{{--
/div>
div id="menu1" class="body tab-pane fade" style="width: 95%;">
{!! $chartjs->render() !!}
{{-- --}}
/div>
/div>
The text was updated successfully, but these errors were encountered: