Skip to content

Commit

Permalink
fix: graph margin (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
apotdevin authored Jul 30, 2021
1 parent 5bd02a7 commit d3d49a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/chart/BarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion src/components/chart/HorizontalBarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit d3d49a1

Please sign in to comment.