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 2021/08/11 01:57:22 UTC

[GitHub] [echarts] Sjling commented on issue #7814: 3D地图散点图位置错误

Sjling commented on issue #7814:
URL: https://github.com/apache/echarts/issues/7814#issuecomment-896438942


   > @chengang0621 @oujiaru @fanslin
   > 3D中的散点图,有个高度因素,这个因素是根据data中的第三个数值来决定的,数据小 就埋在了地图里面了。也就是球的高度小于球的半径了。
   > 
   > ```
   > {
   > type: 'scatter3D',
   > data: [
   >   [.., .., 1],     // 高度会很低
   >   [.., .., 100] 
   > ]
   > }
   > ```
   > 
   > 所以,可以统一一下 `data` 中的第三个数值,使其保证高度大于半径就好
   > 
   > ```
   > {
   > type: 'scatter3D',
   > data: [
   >   [.., .., 80, 1],     // 把高度抬高
   >   [.., .., 80, 100] 
   > ]
   > },
   > // 设置球的半径大小,如果需要的话
   > symbolSize (val) {
   >   return val[3] // val中的第三个数是80, 第四个是原始的数值
   > }
   > ```
   在版本5.0.2这个版本,这个方法并不行
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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