update table
This commit is contained in:
parent
a615425738
commit
e8a75ef532
@ -387,11 +387,19 @@ $: {
|
|||||||
</th>
|
</th>
|
||||||
{#each tableDataActual as item, index}
|
{#each tableDataActual as item, index}
|
||||||
<td class="text-white text-sm sm:text-[1rem] text-center font-medium bg-[#09090B]">
|
<td class="text-white text-sm sm:text-[1rem] text-center font-medium bg-[#09090B]">
|
||||||
{#if index+1-tableDataActual?.length === 0}
|
{#if index-tableDataActual?.length === 0}
|
||||||
-
|
-
|
||||||
{:else}
|
{:else}
|
||||||
{#if item?.val === null}
|
{#if item?.val === null}
|
||||||
-
|
{#if (tableDataForecast[index]?.val- tableDataForecast[index-1]?.val) > 0}
|
||||||
|
<span class="text-orange-400">
|
||||||
|
*+{(((tableDataForecast[index]?.val-tableDataForecast[index-1]?.val) / tableDataForecast[index-1]?.val) * 100 )?.toFixed(2)}%
|
||||||
|
</span>
|
||||||
|
{:else if (tableDataForecast[index]?.val - tableDataForecast[index-1]?.val ) < 0}
|
||||||
|
<span class="text-orange-400">
|
||||||
|
*{(((tableDataForecast[index]?.val - tableDataForecast[index-1]?.val ) / tableDataForecast[index-1]?.val) * 100 )?.toFixed(2)}%
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
{:else if (item?.val- tableDataActual[index-1]?.val) > 0}
|
{:else if (item?.val- tableDataActual[index-1]?.val) > 0}
|
||||||
<span class="text-[#10DB06]">
|
<span class="text-[#10DB06]">
|
||||||
+{(((item?.val-tableDataActual[index-1]?.val) / tableDataActual[index-1]?.val) * 100 )?.toFixed(2)}%
|
+{(((item?.val-tableDataActual[index-1]?.val) / tableDataActual[index-1]?.val) * 100 )?.toFixed(2)}%
|
||||||
@ -417,7 +425,9 @@ $: {
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="text-orange-400 text-xs sm:text-sm mt-2">
|
||||||
|
* This value depends on the forecast
|
||||||
|
</div>
|
||||||
<div class="mt-5 text-gray-100 text-sm sm:text-[1rem] sm:rounded-lg h-auto border border-slate-800 p-4">
|
<div class="mt-5 text-gray-100 text-sm sm:text-[1rem] sm:rounded-lg h-auto border border-slate-800 p-4">
|
||||||
<svg class="w-5 h-5 inline-block mr-0.5 flex-shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#a474f6" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-4 48a12 12 0 1 1-12 12a12 12 0 0 1 12-12m12 112a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 0 16"/></svg>
|
<svg class="w-5 h-5 inline-block mr-0.5 flex-shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="#a474f6" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-4 48a12 12 0 1 1-12 12a12 12 0 0 1 12-12m12 112a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 0 16"/></svg>
|
||||||
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 {(new Date()).getFullYear()}, we use available quarterly data. Complete annual data, used to compare against analyst estimates, is only finalized after the year ends.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user