tangdaohai commented on issue #7814: 3D地图散点图位置错误
URL: 
https://github.com/apache/incubator-echarts/issues/7814#issuecomment-528236974
 
 
   @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, 第四个是原始的数值
   }
   ```
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to