From 3046564771b36da0d270f0fec298e6541e48a987 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 25 Aug 2024 23:36:51 +0200 Subject: [PATCH] ui fix --- src/lib/components/AnalystEstimate.svelte | 4 ++-- src/routes/home/+page.svelte | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lib/components/AnalystEstimate.svelte b/src/lib/components/AnalystEstimate.svelte index ff52f8ed..11fdb178 100644 --- a/src/lib/components/AnalystEstimate.svelte +++ b/src/lib/components/AnalystEstimate.svelte @@ -7,7 +7,7 @@ import { init, use } from 'echarts/core' import { ScatterChart } from 'echarts/charts' import { GridComponent, TooltipComponent } from 'echarts/components' import { CanvasRenderer } from 'echarts/renderers' - import { abbreviateNumber } from '$lib/utils'; +import { abbreviateNumber } from '$lib/utils'; export let data; use([ScatterChart, GridComponent, TooltipComponent, CanvasRenderer]) @@ -443,7 +443,7 @@ $: {
- For {(new Date()).getFullYear()}, we use available quarterly data. Complete annual data, used to compare against analyst estimates, is only finalized after the year ends. + For the current Fiscal Year we use available quarterly data. Complete annual data, used to compare against analyst estimates, is only finalized after the year ends.
diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index 9374b776..86b2f28e 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -491,11 +491,12 @@ onMount( async() => { {item?.name} ({item?.symbol}) has released its quarterly earnings at {formatTime(item?.time)}:
  • - Revenue of {abbreviateNumber(item?.revenue,true)} ({(item?.revenue/item?.revenuePrior-1) > 0 ? '+' :''}{((item?.revenue/item?.revenuePrior-1)*100)?.toFixed(2)}% YoY) {item?.revenueSurprise > 0 ? 'beats' : 'misses'} by {abbreviateNumber(Math.abs(item?.revenueSurprise),true)}. -
  • -
  • - EPS of ${item?.eps} ({(item?.eps/item?.epsPrior-1) > 0 ? '+' :''}{((item?.eps/item?.epsPrior-1)*100)?.toFixed(2)}% YoY) {item?.epsSurprise > 0 ? 'beats' : 'misses'} by ${Math.abs(item?.epsSurprise)?.toFixed(2)}. -
  • + Revenue of {abbreviateNumber(item?.revenue,true)} {item?.revenueSurprise > 0 ? 'exceeds' : 'misses'} estimates by {abbreviateNumber(Math.abs(item?.revenueSurprise),true)}, with {((item?.revenue/item?.revenuePrior-1)*100)?.toFixed(2)}% YoY {(item?.revenue/item?.revenuePrior-1) < 0 ? 'decline' : 'growth'}. + +
  • + EPS of ${item?.eps} {item?.epsSurprise > 0 ? 'exceeds' : 'misses'} estimates by ${item?.epsSurprise?.toFixed(2)}, with {((item?.eps/item?.epsPrior-1)*100)?.toFixed(2)}% YoY {(item?.eps/item?.epsPrior-1) < 0 ? 'decline' : 'growth'}. +
  • + {/each}