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

markArea xAxis does not work as expected for category axis and bar series #12341

Closed
MINDoSOFT opened this issue Mar 27, 2020 · 7 comments · Fixed by #17098
Closed

markArea xAxis does not work as expected for category axis and bar series #12341

MINDoSOFT opened this issue Mar 27, 2020 · 7 comments · Fixed by #17098
Labels

Comments

@MINDoSOFT
Copy link

Version

4.7.0

Reproduction link

https://jsfiddle.net/758vs6xe/

Steps to reproduce

You have an xAxis of type category and you have a bar series. And you want to markArea of a specific category. You can't because the markArea starts drawing from the center of the bar.

In the example we have the days of the week as categories.
With markArea 'Mon' - 'Tue' you see something.
With markArea 'Wed' - 'Wed' you see nothing.

Screenshot from 2020-03-27 17-36-55

What is expected?

For markArea to mark the specific bar category.

What is actually happening?

It doesn't mark it.

@echarts-bot
Copy link

echarts-bot bot commented Mar 27, 2020

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Mar 27, 2020
@100pah 100pah added this to the TBD milestone Apr 5, 2020
@black-lattice
Copy link

Has this problem been solved?

@v1talii-dev
Copy link

are there any workarounds?

@sthenault
Copy link

I've also hit this problem and would be interested in a fix or workaround (looked through the doc and didn't found anything that could do the trick easily)

@dynamikus
Copy link

any workarounds? I am having the same problem?

@warren30815
Copy link

You can set itemStyle: { borderWidth: 10 } to get a highlight area
like: https://jsfiddle.net/7hmt89ko/6/

@sagarey
Copy link

sagarey commented Sep 7, 2022

Add a background xAxis with boundaryGap: false, then add markArea in it

@plainheart plainheart added resolved topic: marker and removed pending We are not sure about whether this is a bug/new feature. labels Sep 25, 2022
@Ovilia Ovilia removed this from the TBD milestone Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants