diff --git a/src/lib/components/AnalystEstimate.svelte b/src/lib/components/AnalystEstimate.svelte
index 9b08c3f2..323bce45 100644
--- a/src/lib/components/AnalystEstimate.svelte
+++ b/src/lib/components/AnalystEstimate.svelte
@@ -98,7 +98,6 @@ function findIndex(data) {
const isBeforeStopIndex = index < stopIndex - 1;
const isAfterStartIndex = index >= stopIndex - 2;
dates.push(`FY${date}`);
-
switch (displayData) {
case "Revenue":
valueList.push(isBeforeStopIndex ? item.revenue : null);
@@ -311,7 +310,7 @@ function findIndex(data) {
import { numberOfUnreadNotification, displayCompanyName, stockTicker, analystEstimateComponent } from "$lib/store";
import { abbreviateNumber } from "$lib/utils";
- import Lazy from "$lib/components/Lazy.svelte";
+ import InfoModal from "$lib/components/InfoModal.svelte";
+ import { Chart } from "svelte-echarts";
+ import { init, use } from "echarts/core";
+ import { LineChart } from "echarts/charts";
+ import { GridComponent, TooltipComponent } from "echarts/components";
+ import { CanvasRenderer } from "echarts/renderers";
+
export let data;
+ use([LineChart, GridComponent, TooltipComponent, CanvasRenderer]);
+
function findIndex(data) {
const currentYear = new Date().getFullYear();
return data.findIndex(item => item.date >= currentYear && item.revenue === null);
@@ -121,13 +129,14 @@ const changeEPS = abbreviateNumber(((data?.getAnalystEstimate[index-1]?.estimate
-
{#await import("$lib/components/AnalystEstimate.svelte") then { default: Comp }}
{/await}
-
+
+
+