Skip to content

Commit

Permalink
fix legend highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafalasco committed Apr 16, 2020
1 parent 315038d commit 32cfbb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/components/graphs/area-stacked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class StackedArea extends Component {
this.services.transitions.getTransition("legend-hover-area")
)
.attr("opacity", d => {
if (d.group !== hoveredElement.datum().group) {
if (d[0].group !== hoveredElement.datum().name) {
return Configuration.areas.opacity.unselected;
}

Expand Down Expand Up @@ -160,7 +160,6 @@ export class StackedArea extends Component {
}

const stackedData = this.model.getStackedData();
console.log(stackedData);

const areaGroups = svg
.selectAll("g.areas")
Expand Down

0 comments on commit 32cfbb9

Please sign in to comment.