YogurtQ opened a new issue #10436: 散点图markArea无法显示的bug
URL: https://github.com/apache/incubator-echarts/issues/10436
 
 
   ## 问题描述
   
   
在散点图中设置markArea时,如果markArea的横纵坐标超过了x、y坐标轴的上下限,echarts会自动设置为x、y坐标轴的上下限,但在设置多个markArea时,如果markArea的横纵坐标值超过了上下限,以x=0、y=0划分象限,在第二象限和第四象限的markArea无法显示。
   `markArea:{
                   itemStyle:{
                     color:'transparent',
                     borderWidth:1
                   },
                 data: [
                                [{
                                        "xAxis": 0,
                                        "yAxis": 0,
                                        "itemStyle": {
                                                "borderColor": "#f00"
                                        }
                                }, {
                                        "xAxis": 10,
                                        "yAxis": 10
                                }],
                                [{
                                        "xAxis": 0,
                                        "yAxis": -10,
                                        "itemStyle": {
                                                "borderColor": "#557ccb"
                                        }
                                }, {
                                        "xAxis": 10,
                                        "yAxis": 0
                                }],
                                [{
                                        "xAxis": -10,
                                        "yAxis": -10,
                                        "itemStyle": {
                                                "borderColor": "#0f0"
                                        }
                                }, {
                                        "xAxis": 0,
                                        "yAxis": 0
                                }],
                                [{
                                        "xAxis": -10,
                                        "yAxis": 0,
                                        "itemStyle": {
                                                "borderColor": "#65c0aa"
                                        }
                                }, {
                                        "xAxis": 0,
                                        "yAxis": 10
                                }]
                        ] 
               },`
   
   其中,x、y坐标轴的上下限为±6,在把markArea的上下限设置为±6时,则可以正常显示
   
![5cd29ec6e4b0cb1aaa87b6bc](https://user-images.githubusercontent.com/13913084/57364222-59bba600-71b5-11e9-975b-4975666de6e4.jpg)
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to