Skip to content

Commit c1aab3b

Browse files
committed
waffle href
1 parent 07cab1e commit c1aab3b

File tree

3 files changed

+442
-1
lines changed

3 files changed

+442
-1
lines changed

src/marks/waffle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export class WaffleY extends BarY {
3434
}
3535

3636
function waffleRender(y) {
37-
return function (index, scales, values, dimensions, context) {
3837
const {unit, gap, rx, ry, round} = this;
38+
return function (index, scales, {href, ...values}, dimensions, context) {
3939
const {document} = context;
4040
const Y1 = values.channels[`${y}1`].value;
4141
const Y2 = values.channels[`${y}2`].value;
@@ -104,6 +104,7 @@ function waffleRender(y) {
104104
)
105105
.attr("fill", (i) => `url(#${patternId}-${i})`)
106106
.attr("stroke", this.stroke == null ? null : (i) => `url(#${patternId}-${i})`)
107+
.call(applyChannelStyles, this, {href})
107108
)
108109
.node();
109110
};

0 commit comments

Comments
 (0)