From 5944cada771f48cddc1f6a3ab34b4d744132fe9b Mon Sep 17 00:00:00 2001 From: James Grugett <jahooma@gmail.com> Date: Tue, 1 Mar 2022 17:43:06 -0800 Subject: [PATCH] Quick fix: don't show points in graph when > 100 bets --- web/components/contract-prob-graph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/contract-prob-graph.tsx b/web/components/contract-prob-graph.tsx index 23daabfb..d764179c 100644 --- a/web/components/contract-prob-graph.tsx +++ b/web/components/contract-prob-graph.tsx @@ -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"