Skip to content
Snippets Groups Projects
Commit bc40e59e authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add highlight when mouseover matrix rect

parent c8f82b8e
No related branches found
No related tags found
No related merge requests found
Pipeline #127792 canceled with stages
in 26 seconds
......@@ -156,6 +156,15 @@ function on(mark) {
displayStructure(data[index])
})
r.on("mouseover", function (event) {
const elem = d3.select(event.srcElement)
const elemFill = d3.color(elem.attr("fill")).darker()
elem.attr("stroke-width", 4).attr("stroke", elemFill)
})
r.on("mouseout", function (event) {
d3.select(event.srcElement).attr("stroke-width", undefined).attr("stroke", undefined)
})
return g;
};
return mark;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment