echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Axis Pointer for connected charts with null values dosen't sync properly between charts

Open skhazri opened this issue 1 year ago • 5 comments

Version

5.5.0

Link to Minimal Reproduction

https://codepen.io/Sarra-Khazri/pen/GRadZpX

Steps to Reproduce

  1. Hover on each points in chart 1 and chart 2 to see the behavior of axis pointer

Current Behavior

*from chart1

  • if i hover on chart 1 with x= 20-06-2023 the axis pointer is syncing https://codepen.io/Sarra-Khazri/pen/GRadZpX
  • if i hover on chart 1 with x= 21-06-2023 the axis pointer not syncing image
  • if i hover on chart 1 with x= 22-06-2023 (1 null value) the axis pointer is syncing
    image

from chart2 image### Expected Behavior

  • The Axis pointer sync between the two charts when there is one series that have value different of null

Environment

- OS:windows
- Browser: chrome
- Framework: Angular 17

Any additional comments?

it seems like when there is null value in serie the point after that the axis pointer dosent sync.

skhazri avatar Jun 20 '24 22:06 skhazri

could be hacked with one additional (invisible) series - Demo. Only the tooltip needs to be customized to exclude the additional series. image

helgasoft avatar Jun 25 '24 03:06 helgasoft

@helgasoft thank you for your response and for the demo, i tried the hack and it works perfecty

skhazri avatar Jun 26 '24 17:06 skhazri

@helgasoft i have added zoom on y axis and i have this issue when i zoom on y and the series with zero values are outside the zoom range, the chart's axisPointer will be invisible it is the same issue described https://github.com/apache/echarts/issues/17074 . Do you have an idea if it is a bug Screen Shot 2024-06-30 at 12 07 05 AM what i want to achieve is to have the axis pointer always visible on x axis even there is zoom y on others charts and points are not in zoom range

skhazri avatar Jun 30 '24 04:06 skhazri

link to demo https://codepen.io/Sarra-Khazri/pen/LYoKLaM?editors=0010 Screen Shot 2024-06-30 at 12 11 10 AM

skhazri avatar Jun 30 '24 04:06 skhazri

what i want to achieve is to have the axis pointer always visible on x axis even there is zoom y on others charts and points are not in zoom range

It looks like in this case, the "invisible" series should modify its value to be in the display range.

grenobnik avatar Oct 14 '24 11:10 grenobnik