@@ -34,7 +34,8 @@ export class WaffleY extends BarY {
34
34
}
35
35
36
36
function waffleRender ( y ) {
37
- return function ( index , scales , { href, ...values } , dimensions , context ) {
37
+ return function ( index , scales , values , dimensions , context ) {
38
+ const { ariaLabel, href, title, ...visualValues } = values ;
38
39
const { unit, gap, rx, ry, round} = this ;
39
40
const { document} = context ;
40
41
const Y1 = values . channels [ `${ y } 1` ] . value ;
@@ -86,7 +87,7 @@ function waffleRender(y) {
86
87
. attr ( "id" , ( i ) => `${ patternId } -${ i } ` )
87
88
. select ( "rect" )
88
89
. call ( applyDirectStyles , this )
89
- . call ( applyChannelStyles , this , values )
90
+ . call ( applyChannelStyles , this , visualValues )
90
91
)
91
92
. call ( ( g ) =>
92
93
g
@@ -104,7 +105,7 @@ function waffleRender(y) {
104
105
)
105
106
. attr ( "fill" , ( i ) => `url(#${ patternId } -${ i } )` )
106
107
. attr ( "stroke" , this . stroke == null ? null : ( i ) => `url(#${ patternId } -${ i } )` )
107
- . call ( applyChannelStyles , this , { href} )
108
+ . call ( applyChannelStyles , this , { ariaLabel , href, title } )
108
109
)
109
110
. node ( ) ;
110
111
} ;
0 commit comments