You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/10/28 08:45:33 UTC

[GitHub] [echarts] vision-yip opened a new issue #15973: axis.axislabel.inside = true, myChart.on event invalid

vision-yip opened a new issue #15973:
URL: https://github.com/apache/echarts/issues/15973


   ### Version
   5.2.1
   
   ### Steps to reproduce
   ```
   option = {
     title: {
       text: 'World Population'
     },
     tooltip: {
       // trigger: 'axis',
       // axisPointer: {
       //   type: 'shadow'
       // }
     },
     legend: {},
     grid: {
       left: '3%',
       right: '4%',
       bottom: '3%',
       containLabel: true
     },
     xAxis: {
       type: 'value',
       boundaryGap: [0, 0.01]
     },
     yAxis: {
       type: 'category',
       data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World'],
       axisLabel: {
         inside: true,
         padding: [150, 0, 0, 0]
       }
     },
     series: [
       {
         name: '2011',
         type: 'bar',
         data: [18203, 23489, 29034, 104970, 131744, 630230]
       }
     ]
   };
   
   console.log(myChart)
   myChart.on('click', (params) => {
     console.log(params)
   })
   ```
   
   ### What is expected?
   点击axisLabel可以正常触发事件
   
   ### What is actually happening?
   没有触发点击事件
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
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 #15973: axis.axislabel.inside = true, myChart.on event invalid

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15973:
URL: https://github.com/apache/echarts/issues/15973#issuecomment-953637669


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](https://echarts.apache.org/api.html) and [chart option](https://echarts.apache.org/option.html) 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 dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/maillist.html).
   
   Have a nice day! 🍵


-- 
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] susiwen8 closed issue #15973: axis.axislabel.inside = true, myChart.on event invalid

Posted by GitBox <gi...@apache.org>.
susiwen8 closed issue #15973:
URL: https://github.com/apache/echarts/issues/15973


   


-- 
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] susiwen8 commented on issue #15973: axis.axislabel.inside = true, myChart.on event invalid

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #15973:
URL: https://github.com/apache/echarts/issues/15973#issuecomment-953906421


   you need to add `triggerEvent`
   https://echarts.apache.org/zh/option.html#yAxis.triggerEvent
   ```js
   yAxis: {
       type: 'category',
   triggerEvent: true,
       data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World'],
       axisLabel: {
         inside: true,
         padding: [150, 0, 0, 0]
       }
     },
   ```


-- 
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