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 2020/03/06 02:39:30 UTC

[GitHub] [incubator-echarts] hugetiny opened a new issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

hugetiny opened a new issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240
 
 
   ### Version
   4.6.0
   
   ### Steps to reproduce
   官方案例:https://www.echartsjs.com/examples/zh/editor.html?c=scatter3d-globe-population&gl=1中
       data = data.filter(function (dataItem) {
           return dataItem[2] > 0;
       }).map(function (dataItem) {
           return [dataItem[0], dataItem[1], Math.sqrt(dataItem[2])];
       });
   为什么Z坐标要只取正的而且要取平方根?来源数据X,Y轴有正负,Z都是正数
   
   ### What is expected?
   请回答一下
   
   ### What is actually happening?
   应该是XYZ轴都有正负,对应一个三维坐标系
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] pissang edited a comment on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-596198987
 
 
   @hugetiny 这里的 x,y 对应了经纬度,z 值是任意的数据(比如人口数量等等),echarts 会把 z 值线性映射到半径值(映射范围参考 https://www.echartsjs.com/zh/option-gl.html#globe.globeOuterRadius ),用来表示数的大小。例子里取平方根只是对这个数据做了下特殊处理,不会让数据的对比太过夸张(类似 log 轴)。可以不需要考虑这个

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] hugetiny commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
hugetiny commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-596203847
 
 
   谢谢 了解了

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] pissang edited a comment on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-596198987
 
 
   @hugetiny 这里的 x,y 对应了经纬度,z 值是任意的数据(比如人口数量等等),echarts 会把 z 值线性映射到半径值(映射范围参考 https://www.echartsjs.com/zh/option-gl.html#globe.globeOuterRadius ),用来表示数的大小。例子里取平方根只是对这个数据做了下特殊处理,不会让数据的对比太过夸张(类似 log 轴)。可以不用考虑这个

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] pissang edited a comment on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-596198987
 
 
   @hugetiny 这里的 x,y 对应了经纬度,z 值是任意的数据(比如人口数量等等),echarts 会把 z 值线性映射到半径值(映射范围参考 https://www.echartsjs.com/zh/option-gl.html#globe.globeOuterRadius ),用来表示数的大小。例子里去平方根只是对这个数据做了下特殊处理,不会让数据的对比太过夸张(类似 log 轴)。可以不需要考虑这个

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] hugetiny closed issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
hugetiny closed issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240
 
 
   

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-595569296
 
 
   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] pissang commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-596198987
 
 
   @hugetiny 这里的 x,y 对应了经纬度,z 值是任意的数据(比如人口数量等等),echarts 会把 z 值线性映射到半径值(映射范围参考 https://www.echartsjs.com/zh/option-gl.html#globe.globeOuterRadius),用来表示数的大小。例子里去平方根只是对这个数据做了下特殊处理,不会让数据的对比太过夸张(类似 log 轴)。可以不需要考虑这个

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] Ovilia commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-595630152
 
 
   负值的问题大概是因为负值表示海平面以下,而这里不准备表现海面以下的细节。

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] hugetiny commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
hugetiny commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-595634507
 
 
   我想做一个全球covid-19的散点地球图,就卡在这里。官网找不到解释

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] hugetiny commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?

Posted by GitBox <gi...@apache.org>.
hugetiny commented on issue #12240: 官方webgl地球案例中为什么Z坐标要只取正的而且要取平方根?
URL: https://github.com/apache/incubator-echarts/issues/12240#issuecomment-595633825
 
 
   我的理解是这个并不是三维坐标系,而是地球坐标系,X,Y表示贴图平面的坐标系
   Z表示从圆心出发的距离,并没有负值。海平面以下只是数字比较小。
   问题就在于 普通的经纬度怎么转成这个坐标系

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


With regards,
Apache Git Services

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