unique IDs for each chart

This commit is contained in:
hackerESQ
2024-08-04 18:28:03 -05:00
parent c9922ed370
commit b64117dbb9
3 changed files with 29 additions and 21 deletions
@@ -81,7 +81,7 @@ new class extends Component {
<div class="flex items-center">
<h2 class="text-xl mr-4">Performance</h2>
<div id="chart-legend" class="flex space-around"></div>
<div id="chart-legend-portfolio-{{ $portfolio->id }}" class="flex space-around"></div>
</div>
@@ -101,12 +101,12 @@ new class extends Component {
</div>
<div
class="relative h-[280px]"
{{-- <div
class="h-[280px]"
>
<x-ib-apex-chart :data="[]" name="portfolio" />
</div>
> --}}
<x-ib-apex-chart :data="[]" name="portfolio-{{ $portfolio->id }}" />
{{-- </div> --}}
</x-card>