Skip to content

Commit

Permalink
fix(step-range): Pass mid range value to getYScaleById in isWithinSha…
Browse files Browse the repository at this point in the history
…pe instead of array of values
  • Loading branch information
vlaforet committed May 28, 2024
1 parent 040d132 commit b96566f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChartInternal/shape/shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ export default {
isWithin = false;
} else if ($$.hasValidPointType?.(that.nodeName)) {
isWithin = $$.isStepType(d) ?
$$.isWithinStep(that, $$.getYScaleById(d.id)(d.value)) :
$$.isWithinStep(that, $$.getYScaleById(d.id)($$.getBaseValue(d))) :
$$.isWithinCircle(
that,
$$.isBubbleType(d) ? $$.pointSelectR(d) * 1.5 : 0
Expand Down

0 comments on commit b96566f

Please sign in to comment.