Skip to content

Commit

Permalink
remove decimals from poll results
Browse files Browse the repository at this point in the history
  • Loading branch information
KDSBrowne committed Nov 7, 2024
1 parent 82fa995 commit 220cd02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const ChatPollContent: React.FC<ChatPollContentProps> = ({
<Styled.PollText>{pollData.questionText}</Styled.PollText>
<ResponsiveContainer width="90%" height={useHeight}>
<BarChart data={translatedAnswers} layout="vertical">
<XAxis type="number" />
<XAxis type="number" allowDecimals={false} />
<YAxis width={80} type="category" dataKey="pollAnswer" />
<Bar dataKey="numVotes" fill="#0C57A7" />
</BarChart>
Expand Down

0 comments on commit 220cd02

Please sign in to comment.