diff --git a/src/lib/components/AnalystEstimate.svelte b/src/lib/components/AnalystEstimate.svelte index 43221519..743632e9 100644 --- a/src/lib/components/AnalystEstimate.svelte +++ b/src/lib/components/AnalystEstimate.svelte @@ -387,11 +387,19 @@ $: { {#each tableDataActual as item, index} - {#if index+1-tableDataActual?.length === 0} + {#if index-tableDataActual?.length === 0} - {:else} {#if item?.val === null} - - + {#if (tableDataForecast[index]?.val- tableDataForecast[index-1]?.val) > 0} + + *+{(((tableDataForecast[index]?.val-tableDataForecast[index-1]?.val) / tableDataForecast[index-1]?.val) * 100 )?.toFixed(2)}% + + {:else if (tableDataForecast[index]?.val - tableDataForecast[index-1]?.val ) < 0} + + *{(((tableDataForecast[index]?.val - tableDataForecast[index-1]?.val ) / tableDataForecast[index-1]?.val) * 100 )?.toFixed(2)}% + + {/if} {:else if (item?.val- tableDataActual[index-1]?.val) > 0} +{(((item?.val-tableDataActual[index-1]?.val) / tableDataActual[index-1]?.val) * 100 )?.toFixed(2)}% @@ -417,7 +425,9 @@ $: { - +
+ * This value depends on the forecast +
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.