helgasoft / echarty

Minimal R/Shiny Interface to ECharts.js
https://helgasoft.github.io/echarty/
82 stars 3 forks source link

ECharts + GL and mobile touch devices #6

Closed helgasoft closed 2 years ago

helgasoft commented 2 years ago

Apparently ECharts is focusing more on desktop implementations, less on mobile. For instance more than half of 3D globe examples do not show up on mobile.

Another issue is that a simple touch(click) does not work on mobile devices for 3D Globe. Luckily, thanks to @7upcat and @uozanyildiz, there is a workaround to enable this behaviour. However the fix involves commenting out a line in the core library echarts.js - not very practical. In latest v.5.3.2 this line is #4591 scope.touching = true;. Here is a mobile JS demo of 3D Globe working with a fixed echarts.js.

Attn @CyprienCambus - in R/echarty same improvement is achieved by replacing library file C:/Users/username/Documents/R/win-library/4.1/echarty/js/echarts.min.js with the fixed one.

Hopefully @pissang & team will address this bug soon. Until then we are planning to incorporate the fix in future releases of echarty.

CyprienCambus commented 2 years ago

Thanks a lot for your help ! I'll have a look. Anyway I did not know echarty and it looks awesome. Very good job

helgasoft commented 2 years ago

Unfortunately, in ECharts v.5.3.3 code, the entire function setTouchTimer is gone. Mobile touch does not work.