From 43383237aa810b65aaa3891743bc4501d83e41ed Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Thu, 5 May 2022 23:09:10 +0400 Subject: [PATCH] fix: label positioning and padding --- src/web/questions/components/HistoryChart.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/web/questions/components/HistoryChart.tsx b/src/web/questions/components/HistoryChart.tsx index 0026ea4..a874f79 100644 --- a/src/web/questions/components/HistoryChart.tsx +++ b/src/web/questions/components/HistoryChart.tsx @@ -113,7 +113,7 @@ export const HistoryChart: React.FC = ({ question }) => { const height = width / goldenRatio; const padding = { top: 20, - bottom: 50, + bottom: 60, left: 60, right: labelLegendStart + letterLength * longestNameLength, }; @@ -221,7 +221,8 @@ export const HistoryChart: React.FC = ({ question }) => { }} tickLabelComponent={