This commit is contained in:
MuslemRahimi 2025-03-14 13:08:03 +01:00
parent 71447048df
commit 36ab30379b
2 changed files with 3 additions and 6 deletions

View File

@ -129,7 +129,7 @@
labels: { labels: {
style: { color: $mode === "light" ? "black" : "white" }, style: { color: $mode === "light" ? "black" : "white" },
}, },
title: { text: "null" }, title: { text: null },
opposite: true, opposite: true,
}, },
tooltip: { tooltip: {

View File

@ -3,7 +3,6 @@
import highcharts from "$lib/highcharts.ts"; import highcharts from "$lib/highcharts.ts";
import { mode } from "mode-watcher"; import { mode } from "mode-watcher";
import IPOChart from "$lib/components/IPOChart.svelte"; import IPOChart from "$lib/components/IPOChart.svelte";
import Lazy from "svelte-lazy";
export let data; export let data;
@ -11,7 +10,7 @@
let config = null; let config = null;
const startYear = 2015; const startYear = 2019;
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const yearList = Array.from( const yearList = Array.from(
{ length: currentYear - startYear + 1 }, { length: currentYear - startYear + 1 },
@ -204,9 +203,7 @@
></div> ></div>
{#each yearList as year} {#each yearList as year}
<Lazy fadeOption={{ delay: 50, duration: 50 }} keep={true}>
<IPOChart {data} {year} /> <IPOChart {data} {year} />
</Lazy>
{/each} {/each}
</div> </div>
</div> </div>