diff --git a/src/lib/components/AnalystEstimate.svelte b/src/lib/components/AnalystEstimate.svelte index 80576b57..55f3465c 100644 --- a/src/lib/components/AnalystEstimate.svelte +++ b/src/lib/components/AnalystEstimate.svelte @@ -332,9 +332,9 @@ function findIndex(data) {
| Year | +Year | {#each xData as item} -{"FY" + item} | +{"FY" + item} | {/each}
|---|
| - Date - | -- Employees - | -- Change - | -- Growth - | -
|---|---|---|---|
| - {new Date(item?.filingDate)?.toLocaleString('en-US', { month: 'short', day: 'numeric', year: 'numeric', daySuffix: '2-digit' })} - | -- {new Intl.NumberFormat("en").format(item?.employeeCount)} - | -- {abbreviateNumber(item?.employeeCount-historyList[index+1]?.employeeCount)} - | -- {#if index+1-historyList?.length === 0} - 0.00% - {:else} - {#if (item?.employeeCount- historyList[index+1]?.employeeCount) > 0} - - +{(((item?.employeeCount-historyList[index+1]?.employeeCount) / item?.employeeCount) * 100 )?.toFixed(2)}% - - {:else if (item?.employeeCount - historyList[index+1]?.employeeCount ) < 0} - - -{(((historyList[index+1]?.employeeCount - item?.employeeCount) / item?.employeeCount) * 100 )?.toFixed(2)}% - - {:else} - 0.00% - {/if} - {/if} - | -
| + Date + | ++ Employees + | ++ Change + | ++ Growth + | +
|---|---|---|---|
| + {new Date(item?.filingDate)?.toLocaleString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + })} + | ++ {new Intl.NumberFormat("en").format(item?.employeeCount)} + | ++ {abbreviateNumber( + item?.employeeCount - + historyList[index + 1]?.employeeCount, + )} + | ++ {#if index + 1 - historyList?.length === 0} + 0.00% + {:else if item?.employeeCount - historyList[index + 1]?.employeeCount > 0} + + +{( + ((item?.employeeCount - + historyList[index + 1]?.employeeCount) / + item?.employeeCount) * + 100 + )?.toFixed(2)}% + + {:else if item?.employeeCount - historyList[index + 1]?.employeeCount < 0} + + -{( + ((historyList[index + 1]?.employeeCount - + item?.employeeCount) / + item?.employeeCount) * + 100 + )?.toFixed(2)}% + + {:else} + 0.00% + {/if} + | +