Skip to content

Commit

Permalink
fix(bar): fix canvas grid lines not considering margin
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed May 1, 2024
1 parent bca34e4 commit 17106a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/bar/src/BarCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ const InnerBarCanvas = <RawDatum extends BarDatum>({

if (enableGridX) {
renderGridLinesToCanvas<string | number>(ctx, {
width,
height,
width: innerWidth,
height: innerHeight,
scale: xScale,
axis: 'x',
values: gridXValues,
Expand All @@ -345,8 +345,8 @@ const InnerBarCanvas = <RawDatum extends BarDatum>({

if (enableGridY) {
renderGridLinesToCanvas<string | number>(ctx, {
width,
height,
width: innerWidth,
height: innerHeight,
scale: yScale,
axis: 'y',
values: gridYValues,
Expand Down

0 comments on commit 17106a2

Please sign in to comment.