-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for your contribution! 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 |
There was a problem hiding this 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
@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. |
There was a problem hiding this 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!
Any update on this PR? This would be extremely helpful as we are currently forced to use |
@Ovilia Please check my changes. I added test cases and did not touch the files in dist. |
62111ea
to
75dd430
Compare
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-18202@635bfd9 |
Look at filter and then try to zoom into. My changes does line not disapear at zoom in. When actual master makes it disapear. |
@Ovilia |
@Skuperday You can dismiss that information. |
There was a problem hiding this 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
@Ovilia Can you review my changes? |
FYI, I just tried @Skuperday's fix but got a Typescript error. So I had to make the following changes to the fix to work with the current build. Anyway, thank you @Skuperday and @Ovilia for working on this issue! |
…x_weakFilter_change_logic
Thanks alot to mr. @nick-true-dev, i update the PR and add following changes to my code, so this work fine and i'm ready to merge! or maybe can some one else review this changes? @plainheart Can you help me? |
Any update on the review and merge :) ? |
Currently waiting for review from @Ovilia, nothing to change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the new version of implement, that don't generate errors on eslinter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just test case that demonstrate diff in logic under weakFilter and without it
Brief Information
This pull request is in the type of:
What does this PR do?
it fixes some troubles with dataZoom in line charts, when line chart remain only 1-2 dots. and make bar charts dissapear when bars go beyond the edges of the chart
Fixed issues
#17858
#12720
#13321
#11240
#10374
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.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information