Handle discontinuous bar series crosshair interactions #221
Labels
discuss
To be discussed
enhancement
New feature or request
:interactions
Interactions related issue
released
Issue released publicly
In #200, we use d3's
bisectLeft
to calculate the value returned byinvertWithStep
; this helps solve the scenarios where we have discontinuous data in a line or area series, but also now means that for a bar series with discontinuous data, it will snap the band highlighter to the nearest x value with a datum defined. This can look quite odd for a bar series with a huge gap between x values as below:(With the previous implementation, hovering over an area with no data in a bar serious would highlight the empty band with no selected data.)
Is your feature request related to a problem? Please describe.
It would be nice to either bring back the previous way of handling these empty zones or handle the hover state such that if the cursor is not within a minimum range near a data point, either we show the band highlighter with no data or there is no hover interaction at all.
Describe the solution you'd like
Would like to discuss the options for how to handle these cases before beginning on implementatiion 😄
Describe alternatives you've considered
Additional context
Kibana Cross Issues
Checklist
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: