Skip to content

Commit

Permalink
✨ (stacked area) do not blur rows in the tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Nov 11, 2024
1 parent d5f0981 commit 0e298dc
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,6 @@ export class StackedAreaChart
return this.focusedSeriesName ? [this.focusedSeriesName] : []
}

seriesIsBlur(series: StackedSeries<Time>): boolean {
return (
this.focusedSeriesName !== undefined &&
this.focusedSeriesName !== series.seriesName
)
}

@action.bound private onCursorMove(
ev: React.MouseEvent<SVGGElement> | React.TouchEvent<SVGElement>
): void {
Expand Down Expand Up @@ -578,7 +571,6 @@ export class StackedAreaChart
.map((series) => {
const { seriesName: name, color, points } = series
const point = points[hoveredPointIndex]
const blurred = this.seriesIsBlur(series)
const focused = name === target.series
const values = [
point?.fake ? undefined : point?.value,
Expand All @@ -592,7 +584,6 @@ export class StackedAreaChart
name,
swatch,
focused,
blurred,
values,
}
})}
Expand Down

0 comments on commit 0e298dc

Please sign in to comment.