There’s currently no way to bring up a tooltip for a 3D chart using ECharts-GL extension on a mobile device.
I expect that a 3D chart’s tooltip can be shown on a mobile device. Currently there’s no way to do that, since the tooltip is triggered by a mouse hover event, which doesn’t exist on a mobile device such as an iPhone or iPad.
Also I expect it to work the way other chart packages tooltips work on mobile, first you do a long touch, which triggers the tooltip to come up and then while keeping your finger down move it around and have the tooltip follow the touch. This is absolutely needed for a mobile device.
You have a workaround for your 2D charts, please come up with one for your 3D charts.
For a 3D chart on an iPhone or iPad, touch events are only used for rotating or zooming on the device. If I try to check what a particular point is on a surface or 3D bar chart, there’s no way to trigger the tooltip. This makes your 3D charts not very useful on mobile.
Just bring up any of the ECharts-GL 3D demo charts on an iPhone, iPad or Android device and try to bring up a tooltip. You cannot! Try this one on an iPhone or iPad:
https://ecomfe.github.io/echarts-examples/public/editor.html?c=simple-surface&gl=1
ECharts GL - all versions
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}
Any estimates as to when this will be available?
Thank you.
Any updates on this issue?
Any updates on this issue?
i have this problem
find this issue on an Android device.
also
this issue just in 3d GL charts .
I checked and i realized that :
chart.on('click'....
this event not work. also this error is from the original library .
you can test it on this link
https://echarts.apache.org/examples/en/editor.html
past this code on editor and run ...
var chart = echarts.init(document.getElementById("chart-panel"),""); chart.on("click",(s)=>{ alert(1); });
option = { tooltip: {}, backgroundColor: '#fff', visualMap: { show: false, dimension: 2, min: -1, max: 1, inRange: { color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026'] } }, xAxis3D: { type: 'value' }, yAxis3D: { type: 'value' }, zAxis3D: { type: 'value' }, grid3D: { viewControl: { // projection: 'orthographic' } }, series: [{ type: 'surface', wireframe: { // show: false }, equation: { x: { step: 0.05 }, y: { step: 0.05 }, z: function (x, y) { if (Math.abs(x) < 0.1 && Math.abs(y) < 0.1) { return '-'; } return Math.sin(x * Math.PI) * Math.sin(y * Math.PI); } } }] }
this code is for web browser.
this code work on desktop device when you click on chart show alert but just not work on mobile device.
click dont work in web browser (in mobile device)
Most helpful comment
Any estimates as to when this will be available?
Thank you.