Skip to content

Commit

Permalink
feat: add hover on timeline chart points
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Nov 12, 2024
1 parent bfd56d5 commit c5eab58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/TimelineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ const TimelineChart: React.FC<TimelineChartProps> = ({
left: `${position}%`,
bottom: `${Math.random() * 60 + 20}%`,
}}
title={`${rate.name}\n1 sat = ${rate.satPrice.toFixed(4)} ${
rate.code
}`}
>
<div className="absolute -top-6 left-1/2 -translate-x-1/2 text-sm font-medium whitespace-nowrap">
{rate.code}
Expand Down

0 comments on commit c5eab58

Please sign in to comment.