Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

fix: Dump areaStyle polygon when notMerge is true#16772

Merged
plainheart merged 3 commits intoapache:master from
jiawulin001:issue#16769
Apr 11, 2022
Merged

fix: Dump areaStyle polygon when notMerge is true #16772
plainheart merged 3 commits intoapache:master from
jiawulin001:issue#16769

Conversation

@jiawulin001
Copy link
Member

@jiawulin001 jiawulin001 commented Mar 30, 2022

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Fix the problem where area shading is not removed after setting chart to be step chart without areaStyle.

Fixed issues

Details

Before: What was the problem?

When a line chart with area shade on, changes its option in notMerge mode into a step line chart and turned off the area shade, the previous area shade would not disappear. The causing code is discussed here: #16769 (comment).

Before change Option After change Option
before setOption after setOption-bug

After: How is it fixed in this PR?

Add an else to dump the polygon if isAreaChart is false.

Before change Option After change Option
before setOption after setOption-fix

Misc

  • The API has been changed (apache/echarts-doc#xxx).
  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

A test case is added in test/setOption.html

Copy link

echarts-bot bot commented Mar 30, 2022

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.

Copy link
Contributor

pissang commented Apr 5, 2022

LGTM

pissang
pissang previously approved these changes Apr 5, 2022
Copy link

echarts-bot bot commented Apr 11, 2022

Congratulations! Your PR has been merged. Thanks for your contribution! 👍

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

Reviewers

@plainheart plainheart plainheart approved these changes

@pissang pissang pissang left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

5.3.3

Development

Successfully merging this pull request may close these issues.

[Bug] Changing area chart to step chart is not removing the area shading

AltStyle によって変換されたページ (->オリジナル) /