You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "hxbo (via GitHub)" <gi...@apache.org> on 2023/04/24 04:16:26 UTC

[GitHub] [echarts] hxbo opened a new issue, #18555: [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系

hxbo opened a new issue, #18555:
URL: https://github.com/apache/echarts/issues/18555

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/hxb00/pen/LYgWExw
   
   ### Steps to Reproduce
   
   option = {
     title: {
       text: 'Stacked Area Chart'
     },
     tooltip: {
       trigger: 'axis',
       axisPointer: {
         type: 'cross',
         label: {
           backgroundColor: '#6a7985'
         }
       }
     },
     toolbox: {
       feature: {
         saveAsImage: {}
       }
     },
     dataZoom: [
             {
               type: "inside",
               orient: 'horizontal',
               filterMode: 'none',
               throttle: 0,
             },
             {
               type: "inside",
               orient: 'vertical',
               filterMode: 'none',
               throttle: 0,
               //滚轮触发纵轴移动
               moveOnMouseWheel: false,
   
             }
           ],
     grid: {
       left: '3%',
       right: '4%',
       bottom: '3%',
       containLabel: true
     },
     xAxis: [
       {
         type: 'value',
         min: 0,
         max: 5000,
       }
     ],
     yAxis: [
       {
         type: 'value',
         min: 0,
         max: 5000,
         z:1,
         axisLabel: {
               inside: true,
               align: 'center',
               color: '#666',
               fontSize: 30,
               hideOverlap: false,
               showMinLabel: false, // 显示最小刻度标签
               showMaxLabel: false, // 显示最大刻度标签
               backgroundColor: '#ebf2fb',
               padding: [2, 4],
               borderRadius: 8
             },
       }
     ],
     series: [
       {
         name: 'Email',
         z:1,
         type: 'line',
         stack: 'Total',
         silent: true,
         areaStyle: {},
         data: [[200,200],[1100,1250],[1700,1850],[1900,1550],[2100,1350]]
       },
       {
         name: 'Union Ads',
         type: 'line',
         stack: 'Total',
         silent: true,
         z:1,
         areaStyle: {},
         emphasis: {
           focus: 'series'
         },
         data: [[0,2200],[1100,3250],[1700,2850],[1900,2550],[2100,1350]]
       }
     ]
   };
   
   ### Current Behavior
   
   坐标系开启缩放后,yAxis.axisLabel.inside为true时,拖动和缩放chart时,元素会覆盖在axisLabel之上,如果把yAxis.z设置的比元素的z值高,label是在元素之上了,但是坐标轴的网格线也覆盖到元素之上了,我没有发现可以单独设置axisLabel和网格线层级的属性。
   ![搜狗截图23年04月24日1204_1](https://user-images.githubusercontent.com/16571797/233898879-898fa6ce-e6c1-4810-8bd6-6a630129cf62.jpg)
   
   
   ### Expected Behavior
   
   想要实现缩放和拖动坐标系,axisLabel始终在最上层,网格线在最下层。
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #18555: [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18555:
URL: https://github.com/apache/echarts/issues/18555#issuecomment-1521079623

   then use ```splitLine: {lineStyle: {opacity: 0.4}}```
   or, if you don't need them ```splitLine: {show:false}```


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18555: [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系
URL: https://github.com/apache/echarts/issues/18555


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18555:
URL: https://github.com/apache/echarts/issues/18555#issuecomment-2845776605

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


Re: [I] [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18555:
URL: https://github.com/apache/echarts/issues/18555#issuecomment-2828857251

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] echarts-bot[bot] commented on issue #18555: [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18555:
URL: https://github.com/apache/echarts/issues/18555#issuecomment-1519362362

   @hxbo It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] The hierarchical relationship between elements and axisLabel when yAxis.axisLabel.inside is true when the coordinate system is enabled for scaling
   </details>


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #18555: [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18555:
URL: https://github.com/apache/echarts/issues/18555#issuecomment-1521026600

   obviously **z:1** is not enough, set both _xAxis_ and _yAxis_ to **z:2**


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] hxbo commented on issue #18555: [Bug] 坐标系开启缩放后,yAxis.axisLabel.inside为true时,元素和axisLabel的层级关系

Posted by "hxbo (via GitHub)" <gi...@apache.org>.
hxbo commented on issue #18555:
URL: https://github.com/apache/echarts/issues/18555#issuecomment-1521041284

   > obviously **z:1** is not enough, set both _xAxis_ and _yAxis_ to **z:2**
   设置 xAxis和yAxis to z:2后,label确实高于元素了,但是网格线也覆盖到元素上面了
   ![搜狗截图23年04月25日0946_2](https://user-images.githubusercontent.com/16571797/234154542-732e9a67-069e-48b8-bcdd-11c607a2fb7f.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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org