Yesterday, I received some help to get my D3 code working with a donut chart. However, I have one quick question. The donut chart represents a JSON object and when you hover over certain parts of the chart, they animate and pop out. There's also a table that displays the same data. I managed to map the table entries so that hovering over them animates the corresponding pie chart slice. But now, I'm trying to do it the other way around - when you hover over the donut slice, it should highlight the table entry.
Currently, I've got it highlighting the entire table, but I'm struggling to map it to the correct individual table entry.
This is my current arc mouseover function:
.on("mouseover", function(d) {
d3.select(this).select("path").transition()
.duration(100)
.attr("d", arcOver);
var path = paths[0][i];
d3.selectAll("#testtable .dataRow")
.style("background-color","red");
If anyone could offer some guidance on how to correctly map to the table entry, I would greatly appreciate it!
Thank you!