diff --git a/src/lib/components/Table/MetricTable.svelte b/src/lib/components/Table/MetricTable.svelte new file mode 100644 index 00000000..79e41715 --- /dev/null +++ b/src/lib/components/Table/MetricTable.svelte @@ -0,0 +1,106 @@ + + +
+

{title}

+ +
+ + + + + {#each dateData as item} + + {/each} + + + + {#each names as name, index} + + + {#each categoryValues[index] as value} + + {/each} + + + + {#each growthValues[index] as growthValue} + + {/each} + + {/each} + +
+ Period Ending + + {formatDate(item)} +
+ {#if title !== "Revenue by Geography" && getHref} + + {name} Revenue + + {:else} + {name} Revenue + {/if} + + {@html value !== null && value !== undefined && value !== 0 + ? abbreviateNumber(value, false, true) + : "n/a"} +
+ {name} Revenue Growth + + {formatGrowth(growthValue)} +
+
+
diff --git a/src/routes/stocks/[tickerID]/metrics/+page.svelte b/src/routes/stocks/[tickerID]/metrics/+page.svelte index 07bd6b09..cf6cbd79 100644 --- a/src/routes/stocks/[tickerID]/metrics/+page.svelte +++ b/src/routes/stocks/[tickerID]/metrics/+page.svelte @@ -1,8 +1,9 @@