diff --git a/src/lib/components/ESGCard.svelte b/src/lib/components/ESGCard.svelte index d39b3f9a..09cf39c6 100644 --- a/src/lib/components/ESGCard.svelte +++ b/src/lib/components/ESGCard.svelte @@ -20,23 +20,14 @@ $: { if ($stockTicker && typeof window !== 'undefined' && typeof stockDeck !== 'undefined' && stockDeck?.length !== 0) { - info = stockDeck[0] - - + info = stockDeck?.at(0) esgScore = info?.esgScore !== 'n/a' ? Math.round(info?.esgScore.toFixed(1)) : 'n/a'; socialScore = info?.socialScore !== 'n/a' ? Math.round(info?.socialScore.toFixed(1)) : 'n/a'; - environmentalScore = info?.environmentalScore !== 'n/a' ? Math.round(info?.environmentalScore.toFixed(1)) : 'n/a'; - governanceScore = info?.governanceScore !== 'n/a' ? Math.round(info?.governanceScore.toFixed(1)) : 'n/a'; + environmentalScore = info?.environmentalScore !== 'n/a' ? Math.round(info?.environmentalScore?.toFixed(1)) : 'n/a'; + governanceScore = info?.governanceScore !== 'n/a' ? Math.round(info?.governanceScore?.toFixed(1)) : 'n/a'; esgRiskRating = info?.esgRiskRating; }; - /* - if (esgRatingCircleContainer) - { - esgRatingAcc(esgScore/100); - } - */ - } @@ -146,20 +137,16 @@ $: {
-
-

+
+

ESG Score

-
- +
+ Gain valuable insights into a company's sustainability by evaluating its ESG (Environmental, Social, and Governance) scores. -
- - -
diff --git a/src/lib/components/Sidecard.svelte b/src/lib/components/Sidecard.svelte index 2418e7af..51c8c9a5 100644 --- a/src/lib/components/Sidecard.svelte +++ b/src/lib/components/Sidecard.svelte @@ -2,7 +2,7 @@ import TickerInfoCard from '$lib/components/TickerInfoCard.svelte'; import AnalystCard from '$lib/components/AnalystCard.svelte'; -import ESGCard from '$lib/components/ESGCard.svelte'; +//import ESGCard from '$lib/components/ESGCard.svelte'; import SimilarTickerCard from '$lib/components/SimilarTickerCard.svelte'; import TopETFTickerHolder from '$lib/components/TopETFTickerHolder.svelte'; @@ -24,7 +24,7 @@ export let analystRating - + diff --git a/src/lib/components/SimilarTickerCard.svelte b/src/lib/components/SimilarTickerCard.svelte index 65f5cdcc..61b8d5a6 100644 --- a/src/lib/components/SimilarTickerCard.svelte +++ b/src/lib/components/SimilarTickerCard.svelte @@ -103,18 +103,14 @@ export let similarstock;
-
+

Similar Ticker

-
- +
+ Identify trends in similar assets and explore superior competing options in your portfolio. - -
-
-
@@ -125,9 +121,9 @@ export let similarstock; - - - + + + @@ -135,16 +131,13 @@ export let similarstock; stockSelector(item?.symbol)} class="text-white cursor-pointer bg-[#000] border-b border-[#000]"> {#if index <=6} - - - {/if} diff --git a/src/lib/components/StockKeyInformation.svelte b/src/lib/components/StockKeyInformation.svelte index aa535e7d..bb41e087 100644 --- a/src/lib/components/StockKeyInformation.svelte +++ b/src/lib/components/StockKeyInformation.svelte @@ -4,7 +4,7 @@ import ExecutiveCard from '$lib/components/ExecutiveCard.svelte'; import SimilarTickerCard from '$lib/components/SimilarTickerCard.svelte'; - import ESGCard from '$lib/components/ESGCard.svelte'; + //import ESGCard from '$lib/components/ESGCard.svelte'; import SECFilingsCard from '$lib/components/SECFilingsCard.svelte'; import TopETFTickerHolder from '$lib/components/TopETFTickerHolder.svelte'; @@ -44,9 +44,11 @@ $: { + @@ -145,6 +147,7 @@ $: { + diff --git a/src/lib/components/TopETFTickerHolder.svelte b/src/lib/components/TopETFTickerHolder.svelte index 970f7403..8f080df8 100644 --- a/src/lib/components/TopETFTickerHolder.svelte +++ b/src/lib/components/TopETFTickerHolder.svelte @@ -101,18 +101,15 @@
-
-

+
+

Top ETFs Holder

-
- +
+ Find the ETFs with the highest portfolio weights for this stock. - -
-
- +
@@ -123,9 +120,9 @@

CompanyMarket CapAvg VolumeCompanyMarket CapAvg Volume
+
-
- -
-
+
{item?.symbol} {#if typeof item?.name !== 'undefined'} - {item?.name?.length > 10 ? item?.name?.slice(0,10) + "..." : item?.name} + {item?.name?.length > 20 ? item?.name?.slice(0,20) + "..." : item?.name} {:else} n/a {/if} @@ -155,11 +148,11 @@ export let similarstock;
+ {item?.marketCap !== null ? abbreviateNumber(item?.marketCap,true) : '-'} + {item?.avgVolume !== null ? abbreviateNumber(item?.avgVolume) : '-'}
- - - + + + @@ -133,13 +130,13 @@ etfSelector(item?.symbol)} class="text-white cursor-pointer bg-[#000] border-b border-[#000]"> {#if index <=6} - -
CompanyTotal Assets% of FundCompanyTotal Assets% of Fund
+
{item?.symbol} {#if typeof item?.name !== 'undefined'} - {item?.name?.length > 15 ? item?.name?.slice(0,15) + "..." : item?.name} + {item?.name?.length > 20 ? item?.name?.slice(0,20) + "..." : item?.name} {:else} n/a {/if} @@ -150,7 +147,7 @@
+ {item?.totalAssets !== null ? abbreviateNumber(item?.totalAssets,true) : '-'}