Skip to content

Commit 096d659

Browse files
committed
feat: implement sparkline charts for stock history with updated intervals.
1 parent cd7df58 commit 096d659

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

frontend/src/app/home/components/stock-history-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const StockHistoryChart = ({
101101
</TabsList>
102102
</Tabs>
103103
{isLoading ? (
104-
<div className="flex h-[500px] items-center justify-center">
104+
<div className="flex h-[300px] items-center justify-center">
105105
<div className="text-muted-foreground">Loading...</div>
106106
</div>
107107
) : (

frontend/src/app/home/stock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function Stock() {
5959
}
6060

6161
return (
62-
<div className="flex flex-col gap-8 bg-white px-8 py-6">
62+
<div className="flex h-full flex-col gap-8 bg-white px-8 py-6">
6363
<div className="flex flex-col gap-4">
6464
<BackButton />
6565
<div className="flex items-center gap-2">

frontend/src/components/valuecell/charts/sparkline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Sparkline({
5656
bottom: 0,
5757
},
5858
xAxis: {
59-
type: "time",
59+
type: "category",
6060
show: false,
6161
axisLabel: {
6262
show: false,

0 commit comments

Comments
 (0)