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 2020/06/24 09:45:53 UTC

[GitHub] [incubator-echarts] adu8419 opened a new issue #12854: 三星手机点击事件不灵敏问题

adu8419 opened a new issue #12854:
URL: https://github.com/apache/incubator-echarts/issues/12854


   问题描述:
      雷达图 点击事件
   主要代码:
      silent: false,
      triggerEvent: true,
   
      this.charts.on('click', function (params) {
          console.log('charts onclick', params)
     })
   
   实验了各种版本都是在三星手机点击事件 时而能触发 时而不能触发,总之就是需要多点击很多次才可能触发


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] adu8419 commented on issue #12854: 三星手机点击事件不灵敏问题

Posted by GitBox <gi...@apache.org>.
adu8419 commented on issue #12854:
URL: https://github.com/apache/incubator-echarts/issues/12854#issuecomment-650875054


   单独复制了官方的demo 过去加了个点击事件 还是如此
   <pre> 
   
   <!DOCTYPE html>
   <html lang="en">
   <head> 
       <meta charset="utf-8"> 
       <title>CSS pointer events</title> 
       <script src="https://cdn.bootcdn.net/ajax/libs/echarts/4.8.0/echarts.min.js"></script>
       <style> 
           body {
               margin: 0;padding: 0;
           }
           #root {
               width: 100%;
               height: 100vh;
   
           }
       </style> 
   
   </head>
   <body>
           <div id="root"> </div>
       <script> 
   
            let myChart = echarts.init(document.getElementById('root')),
                option = getOptions();
   
            myChart.setOption(option);
   
            myChart.on('click', function(params) {
               alert(2)
            })
   
           function getOptions() {
               return  {
                   title: {
                       text: '基础雷达图'
                   },
                   tooltip: {},
                   legend: {
                       data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)']
                   },
                   radar: {
                       // shape: 'circle',
                        center:  ['50%', '50%'],
                       radius: '70%',
                       nameGap: 20,
                       name: {
                           textStyle: {
                               color: '#fff',
                               backgroundColor: '#999',
                               borderRadius: 3,
                               lineHeight: 100,
                               fontSize: 48,
                               padding: [3, 5]
                           }
                       },
                       indicator: [
                           { name: '销售(sales)', max: 6500},
                           { name: '管理(Administration)', max: 16000},
                           { name: '信息技术(Information Techology)', max: 30000},
                           { name: '客服(Customer Support)', max: 38000},
                           { name: '研发(Development)', max: 52000},
                           { name: '市场(Marketing)', max: 25000}
                       ],
                       triggerEvent:true,
                       silent: false
                   },
                   series: [{
                       name: '预算 vs 开销(Budget vs spending)',
                       type: 'radar',
                       // areaStyle: {normal: {}},
                       data: [
                           {
                               value: [4300, 10000, 28000, 35000, 50000, 19000],
                               name: '预算分配(Allocated Budget)'
                           },
                           {
                               value: [5000, 14000, 28000, 31000, 42000, 21000],
                               name: '实际开销(Actual Spending)'
                           }
                       ]
                   }]
               };
   
   
   
           }
   
   
   
   
   
   
   
   
   
   
   
    
       </script>
   
   
   
   </body>
   </html>
   </pre>


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] Ovilia commented on issue #12854: 三星手机点击事件不灵敏问题

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12854:
URL: https://github.com/apache/incubator-echarts/issues/12854#issuecomment-648717972


   目前这个事件只会在点中数据点的时候触发,所以可以尝试把数据点的图形大一点。


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] Ovilia commented on issue #12854: 三星手机点击事件不灵敏问题

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12854:
URL: https://github.com/apache/incubator-echarts/issues/12854#issuecomment-651476346


   文字目前不支持点击事件,5.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.

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] [incubator-echarts] adu8419 commented on issue #12854: 三星手机点击事件不灵敏问题

Posted by GitBox <gi...@apache.org>.
adu8419 commented on issue #12854:
URL: https://github.com/apache/incubator-echarts/issues/12854#issuecomment-650870300


   > 目前这个事件只会在点中数据点的时候触发,所以可以尝试把数据点的图形大一点。
   
   我是要点击雷达图的指标器上的文字


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] adu8419 commented on issue #12854: 三星手机点击事件不灵敏问题

Posted by GitBox <gi...@apache.org>.
adu8419 commented on issue #12854:
URL: https://github.com/apache/incubator-echarts/issues/12854#issuecomment-651554071


   好吧 谢谢你的解答。。。 
   不过对于你的回答我还是很有疑问, 因为 其他手机都支持的,就三星手机不灵敏(不是不能点击)
   通过判断点击事件的回调中的params.name 来判断是点的某个文字


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] adu8419 commented on issue #12854: 三星手机点击事件不灵敏问题

Posted by GitBox <gi...@apache.org>.
adu8419 commented on issue #12854:
URL: https://github.com/apache/incubator-echarts/issues/12854#issuecomment-648716631


   三星S8


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12854: 三星手机点击事件不灵敏问题

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


   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 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.

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