Skip to content

Commit

Permalink
✨ (slope) focus series by clicking on labels on the left
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Dec 17, 2024
1 parent f49cfbd commit b2c21dc
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,15 +639,13 @@ export class SlopeChart
textOutlineColor: this.backgroundColor,
onMouseOver: this.onLineLegendMouseOver,
onMouseLeave: this.onLineLegendMouseLeave,
onClick:
this.series.length > 1 ? this.onLineLegendClick : undefined,
}
}

@computed private get lineLegendPropsRight(): Partial<LineLegendProps> {
return {
xAnchor: "start",
onClick:
this.series.length > 1 ? this.onLineLegendClick : undefined,
}
return { xAnchor: "start" }
}

@computed private get lineLegendPropsLeft(): Partial<LineLegendProps> {
Expand Down

0 comments on commit b2c21dc

Please sign in to comment.