Skip to content

Commit

Permalink
Fix charts on main page
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv committed Dec 28, 2024
1 parent 7166ed7 commit 80cf5cd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions frontend/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<script lang="ts">
import AppRankTableShort from '$lib/AppRankTableShort.svelte';
import type { PageData } from './$types';
import CompaniesBarChart from '$lib/CompaniesBarChart.svelte';
import WhiteCard from '$lib/WhiteCard.svelte';
let { data }: { data: PageData } = $props();
let { data } = $props();
function formatNumber(num: number) {
return num.toLocaleString();
Expand Down Expand Up @@ -230,9 +229,9 @@
{#if myTops.adnetworks}
<WhiteCard>
{#snippet title()}
Top SDK Ad Networks
Top SDK Ad Networks (Android)
{/snippet}
<CompaniesBarChart plotData={myTops.adnetworks.sdk} />
<CompaniesBarChart plotData={myTops.adnetworks.sdk_android} />
</WhiteCard>
{/if}
{/await}
Expand All @@ -254,9 +253,9 @@
{#if myTops.attribution}
<WhiteCard>
{#snippet title()}
Top MMPs & Attribution Companies
Top MMPs & Attribution Companies (iOS)
{/snippet}
<CompaniesBarChart plotData={myTops.attribution.sdk} />
<CompaniesBarChart plotData={myTops.attribution.sdk_ios} />
</WhiteCard>
{/if}
{/await}
Expand All @@ -278,9 +277,9 @@
{#if myTops.analytics}
<WhiteCard>
{#snippet title()}
Top Product Analytics Companies
Top Product Analytics Companies (iOS)
{/snippet}
<CompaniesBarChart plotData={myTops.analytics.sdk} />
<CompaniesBarChart plotData={myTops.analytics.sdk_ios} />
</WhiteCard>
{/if}
{/await}
Expand Down

0 comments on commit 80cf5cd

Please sign in to comment.