apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.45k stars 19.61k forks source link

有polygons3D示例参考下吗 #11471

Closed wushu843639932 closed 2 years ago

wushu843639932 commented 5 years ago

@Ovilia

pissang commented 5 years ago

目前没有 polygons3D 的实现

wushu843639932 commented 5 years ago

polygons3D可以效果可以实现吗?我填写配置了选项后为啥echarts-gl.js报错;polygons3D需要配合地图吗? 代码片段

var option3D = {
                series:[{
                    type: 'polygons3D', // 绘制多边形3d
                    multiPolygon:true,
                    itemStyle:{
                        color:'#900'
                    },
                    emphasis:{
                        itemStyle:{
                            color:'#000'
                        }
                    },
                    data: [{
                        coords: [[0, 0], [100, 0], [100, 100], [0, 100]],
                        height: 3
                    }, {
                        coords: [[50, 0], [100, 100], [0, 100]],
                        height: 3
                    }]
                }]
            }
            myChart.setOption(option3D);
wushu843639932 commented 5 years ago

@pissang

wushu843639932 commented 5 years ago

我想问下,我这边数据只用多边形的点坐标,如何绘制出多边形的3D效果图

pissang commented 5 years ago

奥,这个是需要配合地图才行

wushu843639932 commented 5 years ago

我这边画的不是地图,通过给定的坐标[[x,y],[x,y],[x,y]]等绘制出不规则的立体图形实现3d效果,有什么方法可以实现吗 @pissang

pissang commented 4 years ago

@wushu843639932 你可以试试创建一个 geo3D 的组件,然后 coordinateSystem 设置成这个 geo3D

geo3D 里的 map 可以是一个非常简单的矩形,用来表示你这个数据的范围

wushu843639932 commented 4 years ago

我不是在地图上绘制数据,而是根据坐标去绘制多边形的立体图形,立体图形可以长方体,梯形立方体,扇形立方体等,我试了你的方法,geo3D中始终要给个地图 @pissang

wushu843639932 commented 4 years ago

效果图 这是平面图,里面的每个图形都是根据坐标绘制出来的,现在想要转化成3d的,每个立方体的底面积还是不同的,没有思路 @pissang

wushu843639932 commented 4 years ago

3d柱状图的每个柱状图的底部面积可以是不同吗?可以根据点的坐标来设置底部的位置和面积吗?还是底部的大小是固定的,所有的柱状的底图都是一样的不能修改 @pissang

kingiluob commented 4 years ago

我不是在地图上绘制数据,而是根据坐标去绘制多边形的立体图形,立体图形可以长方体,梯形立方体,扇形立方体等,我试了你的方法,geo3D中始终要给个地图 @pissang

为啥不直接用wengl去做。

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] commented 2 years ago

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!