antvis/G2

Chart interaction "active-region" grows in width as datum grows in value, when it shouldn't #2999

fnune posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

Edit on CodeSandbox

Steps to reproduce

  1. Create a chart with the "active-region" interaction.
  2. See how the width of the hovered active region changes depending on the Y-axis value of the datum, which it shouldn't (I think?)

On my minimally-reproducible example:

  1. Hover Tuesday or Wednesday and confirm that the hovered area is very big
  2. Hover Thursday and confirm that the hovered area is correct (the size of the datum)

Correct: image

Wrong: image

Environment Info
g2 4.0.15
System Ubuntu 20.04.1 LTS
Browser Firefox 82.0.3

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


Fund this Issue

$0.00
Funded

Pull requests