Skip to content

Commit

Permalink
fix: timeline chart time label position
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Nov 12, 2024
1 parent ef4b7e8 commit 16f68ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TimelineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const TimelineChart: React.FC<TimelineChartProps> = ({
{/* Time labels */}
{historicalPrices.map((point, index) => {
if (index % 2 === 0) return null; // Show fewer labels
const position = (index / (historicalPrices.length - 1)) * 100;
const position = (index / historicalPrices.length) * 100;
return (
<div
key={point.date.toISOString()}
Expand Down

0 comments on commit 16f68ef

Please sign in to comment.