Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Time scatter series endpoints sometimes disappear #18861

Closed
jnoyola opened this issue Jul 7, 2023 · 3 comments · Fixed by #18867
Closed

[Bug] Time scatter series endpoints sometimes disappear #18861

jnoyola opened this issue Jul 7, 2023 · 3 comments · Fixed by #18867
Labels

Comments

@jnoyola
Copy link

jnoyola commented Jul 7, 2023

Version

5.4.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?code=MYewdgzgLgBNCGAnWBeGAReUCmA6MIA7gBQCUA3AFCiSwAmW8MaY2hMAgoovAJ7EAmAAylcAMwCWAGyllcAW3gAHYsQD6AGhgTSzAHwwA2q3aYcxBMhgBqbaS0SAuhUqUQSqBPDMYAb0owMAAeHEESEABcfgGBMFC8SthRAOSe8tjJGjEAvlmBvKHhUf6xcQlJMMkAbvBSAK4ZOXlw2IgS2JFGMYElpTAMUPBRA_DNpfGJKRDAWDiIyd0w2TGOlNnkQA

Steps to Reproduce

  1. Open repro link.
    a. This is simply a chart with a time axis and a scatter series, where points appear at the leftmost and/or rightmost points on the x-axis.
  2. Drag divider border to adjust chart width.

Current Behavior

Series min and max points will flicker as the chart width changes, and the points may remain hidden if the width is left in a bad spot.

Expected Behavior

The points should remain visible.

Environment

- OS: Win 11
- Browser: Chrome 113.0.5672.127
- Framework:

Any additional comments?

Any number of changes show that this should work:

  • changing xAxis to a category axis (with boundaryGap: false to most closely replicate the current view)
  • changing the series type to line
  • setting an arbitrarily small boundaryGap: ["0.01%", "0.01%"]
    • This is the workaround I currently use, although it's not ideal and sometimes interferes with the axis labeling
@jnoyola jnoyola added the bug label Jul 7, 2023
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jul 7, 2023
@plainheart
Copy link
Member

Just set clip: false. See also #18656 (comment).

@jnoyola
Copy link
Author

jnoyola commented Jul 8, 2023

Thanks, that workaround works.

I see you marked the linked post as "not a bug", but based on the above bullets it seems like this is unintended behavior. Is that correct? Or if this is expected, would you mind explaining how the default clipping works and when clip: true is advantageous?

@plainheart
Copy link
Member

@jnoyola It is similar to #16329. The edge symbols are clipped due to the tiny offset. I just found several related issues. I will consider it a bug and try to fix it later.

@plainheart plainheart added topic: scatter topic: clip and removed pending We are not sure about whether this is a bug/new feature. labels Jul 9, 2023
@plainheart plainheart added this to the 5.5.0 milestone Jul 9, 2023
@plainheart plainheart removed this from the 5.5.0 milestone Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants