{item.name}:
@@ -709,7 +742,7 @@ function TrendHistoryChart({ trends, latestTrends, ticker, marketPrices, selecte
const trendTs = new Date(t.generated_at).getTime();
const price = findClosestPrice(trendTs);
return {
- time: new Date(t.generated_at).toLocaleDateString('en-US', { month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit' }),
+ time: String(trendTs),
timestamp: trendTs,
strength: +(t.trend_strength * 100).toFixed(1),
confidence: +(t.confidence * 100).toFixed(1),
@@ -766,12 +799,16 @@ function TrendHistoryChart({ trends, latestTrends, ticker, marketPrices, selecte
Trend Strength & Confidence — {ticker} / {selectedWindow}
-
+
}
tickLine={{ stroke: '#475569' }}
+ interval="preserveStartEnd"
/>
+
{i % Math.max(1, Math.floor(chartData.length / 8)) === 0 && (
-
{pt.time}
+
{new Date(pt.timestamp).toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' })}
)}
);