ecomfe / echarts-gl

Extension pack for Apache ECharts, providing globe visualization and 3D plots.
BSD 3-Clause "New" or "Revised" License
2.59k stars 844 forks source link

绘制surface的问题 #319

Open kickasss opened 4 years ago

kickasss commented 4 years ago

请问使用echarts4.5.0和echarts-gl1.1.2绘制surface时曲面的两端会自动连接起来是什么原因?我用的data是grid 0001 0002

oxydaemon commented 4 years ago

I had similar issue with echarts 4.7, echarts-gl 1.1.2

This appears to be caused by software thinking "first" and "last" data is a surface, so you see it draw a line between them I solved by sorting my Z data input tuples

Try sorting your Z data - I sorted [(X,Y,Z)] by X -> Y -> Z and showed up correctly

Also if you don't include any code / sample data in your issue its hard for them to troubleshoot :-)

yunnuoyang commented 3 years ago

This appears to be caused by software thinking "first" and "last" data is a surface, so you see it draw a line between them I solved by sorting my Z data input tuples

yes,i also meet with this problem.after sort x,y,z,and x must appear twice more ,it can be handled.

JeremKeith commented 3 years ago

This appears to be caused by software thinking "first" and "last" data is a surface, so you see it draw a line between them I solved by sorting my Z data input tuples

yes,i also meet with this problem.after sort x,y,z,and x must appear twice more ,it can be handled.

请问x出现两次是什么意思,我现在是每组十个数据,x轴的值从小到大,y轴的值不变,z轴的值不定,这样排序的

yunnuoyang commented 3 years ago

意思就是x轴数据你从小到大假如是:1,2,3,4,这样绘制不出来的,不符合成图形的条件吧,你的数据应该是1,2,3,4,1这种,至少x有重复的数据。