Quick fix: don't show points in graph when > 100 bets

This commit is contained in:
James Grugett 2022-03-01 17:43:06 -08:00
parent 41b5dd2e38
commit 5944cada77

View File

@ -83,7 +83,7 @@ export function ContractProbGraph(props: { contract: Contract; bets: Bet[] }) {
format: (time) => formatTime(+time, lessThanAWeek),
}}
colors={{ datum: 'color' }}
pointSize={10}
pointSize={bets.length > 100 ? 0 : 10}
pointBorderWidth={1}
pointBorderColor="#fff"
enableSlices="x"