Skip to content

Commit

Permalink
Add tooltips showing total and relative votes to barcharts
Browse files Browse the repository at this point in the history
  • Loading branch information
linusha committed Sep 24, 2024
1 parent 1a4f116 commit bd223d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/VoteResultChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function Bar({ value, total, position }: BarProps) {
<div
className={bem("vote-result-chart__bar", [style, size])}
style={{ "--ratio": ratio }}
title={`${value} MEPs voted ${position} (${percentage}%)`}
>
<span className="vote-result-chart__text">
<Thumb position={position} className="vote-result-chart__thumb" />
Expand Down

0 comments on commit bd223d5

Please sign in to comment.