Skip to content

fix(bar): fix bar layout with borderWidth but no borderColor#14634

Merged
pissang merged 1 commit into
releasefrom
fix-bar-border-layout
Apr 9, 2021
Merged

fix(bar): fix bar layout with borderWidth but no borderColor#14634
pissang merged 1 commit into
releasefrom
fix-bar-border-layout

Conversation

@pissang
Copy link
Copy Markdown
Contributor

@pissang pissang commented Apr 9, 2021

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Bar chart will eliminate borderWidth when calculating rectangle coordinates. But it didn't check if there is borderColor. In this PR this will be checked. Also default borderWidth: 2 is removed in line series.

Fixed issues

Details

Before: What was the problem?

image

There is a gap between bar and axis line because borderWidth is considered.

After: How is it fixed in this PR?

image

Usage

Are there any API changes?

  • The API has been changed.

Related test cases or examples to use the new APIs

NA.

Others

Merging options

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

Other information

@echarts-bot
Copy link
Copy Markdown

echarts-bot Bot commented Apr 9, 2021

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.

The pull request is marked to be PR: author is committer because you are a committer of this project.

@pissang pissang merged commit f2df3ed into release Apr 9, 2021
@pissang pissang deleted the fix-bar-border-layout branch April 9, 2021 09:12
@echarts-bot
Copy link
Copy Markdown

echarts-bot Bot commented Apr 9, 2021

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants