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|![image](https://user-images.githubusercontent.com/14244944/169975082-466ba9c2-7dbe-4e45-ae0e-26f6416db789.png)|
   |--|--|
   
|#12341|![image](https://user-images.githubusercontent.com/14244944/169975140-642c7e55-e82d-4b0c-a659-78b2d5ea4e02.png)|
   |--|--|
   
|#17021|![image](https://user-images.githubusercontent.com/14244944/169975211-14c28d6c-d18c-4215-a207-b5d4d0c68428.png)|
   
   ### 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]

Reply via email to