We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07cab1e commit 27e8fffCopy full SHA for 27e8fff
src/marks/waffle.js
@@ -35,6 +35,7 @@ export class WaffleY extends BarY {
35
36
function waffleRender(y) {
37
return function (index, scales, values, dimensions, context) {
38
+ const {ariaLabel, href, title, ...visualValues} = values;
39
const {unit, gap, rx, ry, round} = this;
40
const {document} = context;
41
const Y1 = values.channels[`${y}1`].value;
@@ -86,7 +87,7 @@ function waffleRender(y) {
86
87
.attr("id", (i) => `${patternId}-${i}`)
88
.select("rect")
89
.call(applyDirectStyles, this)
- .call(applyChannelStyles, this, values)
90
+ .call(applyChannelStyles, this, visualValues)
91
)
92
.call((g) =>
93
g
@@ -104,6 +105,7 @@ function waffleRender(y) {
104
105
106
.attr("fill", (i) => `url(#${patternId}-${i})`)
107
.attr("stroke", this.stroke == null ? null : (i) => `url(#${patternId}-${i})`)
108
+ .call(applyChannelStyles, this, {ariaLabel, href, title})
109
110
.node();
111
};
0 commit comments