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/04/14 08:24:59 UTC

[GitHub] [incubator-echarts] jarisMA opened a new issue #12435: scatter3D模式下的散点在移动端无法点击

jarisMA opened a new issue #12435: scatter3D模式下的散点在移动端无法点击
URL: https://github.com/apache/incubator-echarts/issues/12435
 
 
   ### Version
   4.0.0
   
   ### Reproduction link
   [http://183.6.56.146:8000/test/#/exhibition](http://183.6.56.146:8000/test/#/exhibition)
   
   ### Steps to reproduce
   <!--
    * @Author: jarisMA
    * @Date: 2020-04-14 14:32:44
    * @LastEditTime: 2020-04-14 15:54:21
    * @LastEditors: jarisMA
    -->
   <template>
     <div id="main" class="main"></div>
   </template>
   <script>
   import echarts from 'echarts'
   import 'echarts-gl'
   export default {
     name: 'Exhibition',
     data () {
       return {
         option: {
           visualMap: {
             show: false,
             calculable: true,
             min: 0,
             max: 1,
             // 维度的名字默认就是表头的属性名
             inRange: {
               color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
             }
           },
           // 需要注意的是我们不能跟 grid 一样省略 grid3D
           grid3D: {
             axisLine: {
               lineStyle: { color: '#fff' }
             },
             axisPointer: {
               lineStyle: { color: '#fff' }
             }
           },
           // 默认情况下, x, y, z 分别是从 0 到 1 的数值轴
           xAxis3D: {},
           yAxis3D: {},
           zAxis3D: {
             // max: 100
           },
           series: [{
             type: 'scatter3D',
             data: this.getCubeData(),
             symbolSize: 25
           }]
         }
       }
     },
     methods: {
       initEcharts () {
         this.echarts = echarts.init(document.getElementById('main'))
         this.echarts.on('click', (params) => { // 根
           alert(params.name)
           console.log(params)
         })
         this.echarts.setOption(this.option)
       },
       getCubeData () {
         var data = []
         for (var i = 0; i <= 6; i  ) {
           for (var j = 0; j <= 5; j  ) {
             for (var k = 0; k <= 6; k  ) {
               var value = Math.random()
               data.push({
                 name: `${i}-${j}-${k}`,
                 value: [i, j, k, value]
               })
             }
           }
         }
         return data
       }
     },
     mounted () {
       this.$nextTick(() => {
         this.initEcharts()
       })
     }
   }
   </script>
   <style lang="stylus" scoped>
   .main
     width 100%
     height 100%
   </style>
   
   ### What is expected?
   希望不管移动端还是pc端都能够触发我绑定的点击事件
   
   ### What is actually happening?
   在pc端scatter3D模式下的散点是可以触发我绑定的点击事件的,但是移动端的点击完全不会触发
   
   <!-- This issue is generated by echarts-issue-helper. 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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
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 #12435: scatter3D模式下的散点在移动端无法点击

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12435: scatter3D模式下的散点在移动端无法点击
URL: https://github.com/apache/incubator-echarts/issues/12435#issuecomment-613299121
 
 
   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 **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://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 questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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