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] MarkArea Gap #20623

Open
thatsgolden opened this issue Dec 26, 2024 · 0 comments
Open

[Feature] MarkArea Gap #20623

thatsgolden opened this issue Dec 26, 2024 · 0 comments
Labels
new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@thatsgolden
Copy link

thatsgolden commented Dec 26, 2024

What problem does this feature solve?

Hers is a bar chart that needs to be divided into different categories based on a certain classification, each category is highlighted with a markArea, and there needs to be a gap between the markAreas in order to look good.

At this stage, a false gap can be realized by adding a border width to the markArea by series.markArea.itemStyle.borderWidth, but when the width is increased to 8 (which is a suitable width for look), the border can be seen at the bottom edge obviously, in order to make the stroke at the bottom edge looks disappear, an upward offset can be added to xAxis by xAxis.offset, but the bar item of the series doesn't have the function of upward offset.

image

image

What does the proposed API look like?

markArea: {
    silent: true,
    itemStyle: {
        gap: 8,
        borderColor: 'rgb(255,255,255)',
    }
}
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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