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

[Feature] get bar gap in renderItem, #20624

Open
littlegolden opened this issue Dec 27, 2024 · 0 comments
Open

[Feature] get bar gap in renderItem, #20624

littlegolden opened this issue Dec 27, 2024 · 0 comments
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@littlegolden
Copy link

littlegolden commented Dec 27, 2024

What problem does this feature solve?

to implement this style, use renderItem to get points for each stacked series, the point from api.coord([xValue, yIndex]) is the center of the bar item, to move it to the bottom of the bar item, division the barLayout[i].bandWidth by 2 and minus with y point value, but result is not at the bottom of bar item, but the center of the gap, seems that the bandWidth contains the gap, how to minus the gap height?

image

see example

example

@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 Dec 27, 2024
@echarts-bot echarts-bot bot changed the title [Feature] get bar gap in renderItem, [Feature] get bar gap in renderItem, Dec 27, 2024
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 new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant