-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 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! 🍵 |
Has this problem been solved? |
are there any workarounds? |
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) |
any workarounds? I am having the same problem? |
You can set itemStyle: { borderWidth: 10 } to get a highlight area |
Add a background xAxis with boundaryGap: false, then add markArea in it |
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.
What is expected?
For markArea to mark the specific bar category.
What is actually happening?
It doesn't mark it.
The text was updated successfully, but these errors were encountered: