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] Bar chart item overlap grid #18793

Open
ygs5933798 opened this issue Jun 23, 2023 · 4 comments · May be fixed by #19427
Open

[Bug] Bar chart item overlap grid #18793

ygs5933798 opened this issue Jun 23, 2023 · 4 comments · May be fixed by #19427
Labels
en This issue is in English not-a-bug topic: bar

Comments

@ygs5933798
Copy link

Version

latest

Link to Minimal Reproduction

https://codepen.io/Sam-Yang-the-selector/pen/MWzbmYE

Steps to Reproduce

My case is bar chart with xAxis type is value, and the min value of xAxis is a value, option like image below

image

Current Behavior

chart item overlap

Expected Behavior

the first bar item need to display half width of it, because left part is overflow grid.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@ygs5933798 ygs5933798 added the bug label Jun 23, 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 Jun 23, 2023
@Ovilia Ovilia added not-a-bug topic: bar and removed bug pending We are not sure about whether this is a bug/new feature. labels Jun 25, 2023
@Ovilia
Copy link
Contributor

Ovilia commented Jun 25, 2023

This is the expected result since you set min: 110.

@ygs5933798
Copy link
Author

This is the expected result since you set min: 110.

Thanks for reply

Yes, the min data is 110, but do we have any way to hide the part of bar which overlap grid?

@michael-s-molina
Copy link
Member

@Ovilia I agree with @ygs5933798 that this does not look good. We had user reports in Superset about the same problem. @ygs5933798 manually set 110 but this also happens when using dataMin and dataMax which are automatically calculated. Can we try to come up with an improved display? Maybe moving the ticks at both ends to accommodate the bars?

@michael-s-molina
Copy link
Member

michael-s-molina commented Dec 13, 2023

@Ovilia Look how this is handled differently when comparing category and value even though both set min and max.

Type category with min and max defined:

Screenshot 2023-12-13 at 11 47 40

Type value with min and max defined:

Screenshot 2023-12-13 at 11 47 25

michael-s-molina added a commit to michael-s-molina/echarts that referenced this issue Dec 20, 2023
@michael-s-molina michael-s-molina linked a pull request Dec 20, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English not-a-bug topic: bar
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants