jiawulin001 opened a new pull request, #17098: URL: https://github.com/apache/echarts/pull/17098
<!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? MarkArea in `bar series/category axis` now covers the categories specified rather than area between bars of specified categories. ### Fixed issues - fix #3573 - fix #17021 - fix #12341 ## Details ### Before: What was the problem? MarkArea in `barSeries/category-axis` is marking the area between bars of category specified, which is not wanted in category axis chart. |#3573|| |--|--| |#12341|| |--|--| |#17021|| ### After: How is it fixed in this PR? Now markArea marks the whole category zones specified. Multi-bars and invert input are both considered. ### Left MarkArea ``` markArea: { data: [ [ { name: `Invert input`, xAxis: 'Thu' }, { xAxis: 'Mon' } ] ] } ``` ### Left MarkArea ``` markArea: { data: [ [ { name: 'Single Emphasis', xAxis: 'Sun' }, { xAxis: 'Sun' } ] ] } ``` <img width="823" alt="after #17021" src="https://user-images.githubusercontent.com/14244944/169975796-ee6fc11a-a619-4ad1-ac5a-722f6b49c5dc.png"> ## Misc <!-- ADD RELATED ISSUE ID WHEN APPLICABLE --> - [ ] The API has been changed (apache/echarts-doc#xxx). - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs bar-markArea.html ## Others ### Merging options - [x] Please squash the commits into a single one when merging. ### Other information -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
