From b1d924614fe11aaeaeef3e1514a485b7bc7e82e2 Mon Sep 17 00:00:00 2001 From: ahalekelly Date: Mon, 29 Aug 2022 19:50:32 -0700 Subject: [PATCH] Testing multiple choice line charts --- web/components/answers/answers-graph.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/web/components/answers/answers-graph.tsx b/web/components/answers/answers-graph.tsx index dae3a8b5..9465064d 100644 --- a/web/components/answers/answers-graph.tsx +++ b/web/components/answers/answers-graph.tsx @@ -87,7 +87,7 @@ export const AnswersGraph = memo(function AnswersGraph(props: { > formatTime(+time, multiYear, lessThanAWeek, includeMinute), }} - colors={[ - '#fca5a5', // red-300 - '#a5b4fc', // indigo-300 - '#86efac', // green-300 - '#fef08a', // yellow-200 - '#fdba74', // orange-300 - '#c084fc', // purple-400 - ]} + colors={{ scheme: 'category10' }} pointSize={0} curve="stepAfter" enableSlices="x" enableGridX={!!width && width >= 800} - enableArea - areaOpacity={1} margin={{ top: 20, right: 20, bottom: 25, left: 40 }} legends={[ {