Skip to content

Commit 3829e99

Browse files
committed
fix line offset
1 parent a6deb1c commit 3829e99

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/marks/areaLine.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Area} from "./area.js";
33
import {create} from "../context.js";
44
import {applyGroupedMarkers, markers} from "../marker.js";
55
import {applyDirectStyles, applyIndirectStyles, applyTransform, applyGroupedChannelStyles} from "../style.js";
6-
import {groupIndex} from "../style.js";
6+
import {groupIndex, offset} from "../style.js";
77
import {maybeDenseIntervalX, maybeDenseIntervalY} from "../transforms/bin.js";
88
import {maybeStackX, maybeStackY} from "../transforms/stack.js";
99

@@ -55,6 +55,7 @@ export class AreaLine extends Area {
5555
.append("path")
5656
.call(applyGroupedMarkers, this, channels, context)
5757
.attr("fill", "none")
58+
.attr("transform", offset ? `translate(${offset},${offset})` : null)
5859
.attr(
5960
"d",
6061
shapeLine()

0 commit comments

Comments
 (0)