From 97688e22c8335642b72d200ce0a865353bef5207 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 18 May 2022 21:29:41 -0500 Subject: Fix lag --- src/lib/AuctionPriceScatterplot.svelte | 109 ++++++++++++++++++--------------- 1 file changed, 59 insertions(+), 50 deletions(-) (limited to 'src/lib/AuctionPriceScatterplot.svelte') diff --git a/src/lib/AuctionPriceScatterplot.svelte b/src/lib/AuctionPriceScatterplot.svelte index 3b89149..6c59e70 100644 --- a/src/lib/AuctionPriceScatterplot.svelte +++ b/src/lib/AuctionPriceScatterplot.svelte @@ -1,4 +1,6 @@ -{#if item.auctions.length > 0} - - - - - - - {#each new Array(Math.floor(maxCoins / heightCoinInterval) + 1) as _, intervalIndex} - {shortenBigNumber(heightCoinInterval * intervalIndex)} - {/each} - - - {#each item.auctions as auction} - {@const [x, y] = getAuctionCoordinates(auction)} - + + + - {/each} - -{/if} + + + {#each new Array(Math.floor(maxCoins / heightCoinInterval) + 1) as _, intervalIndex} + {shortenBigNumber(heightCoinInterval * intervalIndex)} + {/each} + + + {#each item.auctions as auction (auction.id)} + {@const [x, y] = getAuctionCoordinates(auction)} + + + {/each} + -- cgit