From 58d62863615992ea33818cd9fc0f86b395cd49f5 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 19 Jul 2022 17:22:58 -0500 Subject: [PATCH] Fix chart area extending into labels below --- web/components/contract/contract-prob-graph.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/contract/contract-prob-graph.tsx b/web/components/contract/contract-prob-graph.tsx index c6e17cd6..c829c646 100644 --- a/web/components/contract/contract-prob-graph.tsx +++ b/web/components/contract/contract-prob-graph.tsx @@ -150,7 +150,8 @@ export const ContractProbGraph = memo(function ContractProbGraph(props: { enableSlices="x" enableGridX={!!width && width >= 800} enableArea - margin={{ top: 20, right: 20, bottom: 25, left: 40 }} + areaBaselineValue={isBinary ? 0 : contract.min} + margin={{ top: 20, right: 20, bottom: 65, left: 40 }} animate={false} sliceTooltip={SliceTooltip} />