apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

手机端渲染的GL柱状图点击数据无法显示tooltip #8394

Closed xuzijie1995 closed 2 years ago

xuzijie1995 commented 6 years ago

One-line summary [问题简述]

移动端渲染的GL Bar图表 点击 内部柱状条无法显示相应Tooltip 浮动内容,对应pc端浏览器可以

Version & Environment [版本及环境]

Expected behaviour [期望结果]

移动端GL图 点击 数据也能显示Tooltip浮动内容框

ECharts option [ECharts配置项]

option = {
                       tooltip: {
                show:true,
                triggerOn:'click',
                position: [10, 10],
                textStyle:{
                }
            },
            color: ['#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026'],
            xAxis3D: {
                name:'',
                type: 'category',
                data: ['12a', '1a', '2a'],
                axisPointer:{
                    show:false
                },
                axisLabel:{
                }
            },
            yAxis3D: {
                name:'',
                type: 'category',
                data: ['Sunday'],
                axisPointer:{
                    show:false
                },
                axisLabel:{
                }
            },
            zAxis3D: {
                name:'',
                type: 'value',
                axisPointer:{
                    show:false
                },
                axisLabel:{
                }
            },
            grid3D: {
                boxWidth: setFontSize(100),
                boxDepth: setFontSize(40),
                viewControl: {
                    // projection: 'orthographic'
                    alpha:15,
                    beta:40,
                },
                light: {
                    main: {
                        intensity: 1.2,
                        shadow: true
                    },
                    ambient: {
                        intensity: 0.3
                    }
                }
            },
            series: [{
                type: 'bar3D',
                data: [[0,0,5],[0,1,1],[0,2,0]].map(function (item) {
                    return {
                        value: [item[1], item[0], item[2]],
                    }
                }),
                shading: 'lambert',
                label: {
                    textStyle: {
                        borderWidth: 1
                    }
                },

                emphasis: {
                    label: {
                        textStyle: {
                            color: '#900'
                        }
                    },
                    itemStyle: {
                        color: '#900'
                    }
                }
            }]
}

Other comments [其他信息]

移动手机 与 Google ChromeF12 移动模拟 点击 没有Tooltip框 -1

pc端 点击 显示Tooltip框 -2

github-actions[bot] commented 3 years ago

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.

github-actions[bot] commented 2 years ago

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!