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

changed weakFilter logic, so line charts will not disappear, while zoom #18202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Skuperday
Copy link

@Skuperday Skuperday commented Jan 22, 2023

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

small change in weakFilter logic
it fixes some troubles with dataZoom in line charts, when line chart remain only 1-2 dots.
this allows us to use weakFilter to weed out the bar chart while we can also use a line chart

Fixed issues

Details

Before: What was the problem?

if we use filterMode: none with bar chart we get problem with exceed
but if we will use filterMode: weakFilter (as an example) our line charts on the same area with bar charts will disappear while zoom, if there is only 1-2 points (because there no way to make a line through 1 point)

with this simple change, line charts will be completed based on the values ​​of the elements already existing on the chart

After: How does it behave after the fixing?

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

  • Please squash the commits into a single one when merging.

Other information

@echarts-bot
Copy link

echarts-bot bot commented Jan 22, 2023

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the PR: awaiting doc label.

@echarts-bot echarts-bot bot added PR: doc unchanged and removed PR: awaiting doc Document changes is required for this PR. labels Jan 22, 2023
Copy link
Contributor

@Ovilia Ovilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the code under src rather than dist and exclude dist when commit.

Please also add test cases. See https://github.com/apache/echarts/wiki/How-to-make-a-pull-request#test

@Skuperday
Copy link
Author

@Ovilia i can't find same logic in the src folder. I've tried to looking for "weakFilter" in project, but there only dist files.
How do i find where to make changes?

@Skuperday
Copy link
Author

Hello there!
As a test case, i'm does same changes in our version of library in our product. And my solution works well at this time.
Look how it going now vs how it being in past (without my changes)

before:
1
before but while zoom (look how disappear horizontal lines):
2

now:
11
and now while zoom:
22

@Skuperday Skuperday requested a review from Ovilia May 27, 2023 13:18
Copy link
Contributor

@Ovilia Ovilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not remove the files under dist.
Please add test cases for this issue.
Thanks!

@elnipa
Copy link

elnipa commented Jan 5, 2024

Any update on this PR? This would be extremely helpful as we are currently forced to use none filter, which is introducing bugs: #18688

@Skuperday Skuperday requested a review from Ovilia January 6, 2024 11:05
@Skuperday
Copy link
Author

@Ovilia Please check my changes. I added test cases and did not touch the files in dist.

@Skuperday Skuperday reopened this May 10, 2024
Copy link
Contributor

The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-18202@635bfd9

@Skuperday
Copy link
Author

Skuperday commented May 11, 2024

@Ovilia
I don't know why some checks not successful, first one was succes. Second was canceled at after 5 sec
image

@plainheart
Copy link
Member

@Skuperday You can dismiss that information.

Copy link
Author

@Skuperday Skuperday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get back dist files and makes changes under src. I also makes changes but i don't know why there are "1 changes requested" label

@Skuperday
Copy link
Author

@Ovilia Can you review my changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants