fix: graph margin (#310)

This commit is contained in:
Anthony Potdevin 2021-07-30 19:11:35 +02:00 committed by GitHub
parent 5bd02a734d
commit d3d49a18b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ const Chart = ({
return (
<div style={{ position: 'relative' }}>
<svg width={width} height={height}>
<svg width={width} height={height - 10}>
<Group top={margin.top} left={margin.left}>
<BarGroup
data={data}

View file

@ -98,7 +98,7 @@ const Chart = ({
return (
<div style={{ position: 'relative' }}>
<svg width={width} height={height}>
<svg width={width} height={height - 10}>
<Group top={margin.top} left={margin.left}>
<BarGroupHorizontal
data={data}