Skip to content

Commit

Permalink
Reorder visitors about views on chart tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Dec 13, 2024
1 parent 6143e99 commit 6f44c14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/components/TimeSeriesChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ function CustomTooltip(props: any) {
return (
<Card className="p-2 shadow-lg leading-normal">
<div className="font-semibold">{formattedDate}</div>
<div className="before:content-['•'] before:text-barchart before:font-bold">
{" "}
{`${payload[0].value} views`}
</div>
<div className="before:content-['•'] before:text-border before:font-bold">
{" "}
{`${payload[1].value} visitors`}
</div>
<div className="before:content-['•'] before:text-barchart before:font-bold">
{" "}
{`${payload[0].value} views`}
</div>
<div className="before:content-['•'] before:text-paldarkgrey before:font-bold">
{" "}
{`${payload[2].value}% bounce rate`}
Expand Down

0 comments on commit 6f44c14

Please sign in to comment.