diff --git a/src/routes/stocks/[tickerID]/forecast/+page.svelte b/src/routes/stocks/[tickerID]/forecast/+page.svelte index 002a81db..53992da9 100644 --- a/src/routes/stocks/[tickerID]/forecast/+page.svelte +++ b/src/routes/stocks/[tickerID]/forecast/+page.svelte @@ -420,7 +420,7 @@ animation: false, }, title: { - text: `
+ text: `

${$screenWidth && $screenWidth < 640 ? "Past Year" : "Past 12 Months"}

${$screenWidth && $screenWidth < 640 ? "Next Year" : "12 Month Forecast"}

`, @@ -435,19 +435,17 @@ gridLineWidth: 1, gridLineColor: "#111827", type: "datetime", + endOnTick: false, labels: { style: { color: "#fff", }, formatter: function () { const date = new Date(this.value); - const isMobile = $screenWidth < 640; - return isMobile - ? date.toLocaleDateString("en-US", { month: "short" }) - : date.toLocaleDateString("en-US", { - month: "short", - year: "numeric", - }); + return date.toLocaleDateString("en-US", { + month: "short", + year: "numeric", + }); }, }, },