是否可以在scatter3D系列中绘制3D区域(使用echarts库)?

时间:2019-09-19 10:09:28

标签: echarts

我的目标是沿着3d图表中的数据集点绘制一些区域。到目前为止,我已经在2d图表中使用正方形完成了此操作。但是现在我需要升级到2维,并且在找出如何在“ scatter3D”系列中绘制多维数据集时遇到问题。

我已经读过the docs about "option" configuration,但似乎没有提供有关“ scatter3D”系列类型的信息。

我已经尝试绘制类似于我使用2D图表完成绘制的区域,但是它不起作用。

{
    type: 'scatter3D',
    markArea: {
                silent: true,
                itemStyle: {
                    normal: {
                        color: 'transparent',
                        borderWidth: 2,
                        borderType: 'solid'
                    }
                },
                data: [[{
                    name: 'cluster1',
                    xAxis3D: '60',
                    yAxis3D: '40',
                    zAxis3D: '20'
                }, {
                    xAxis3D: '80',
                    yAxis3D: '60',
                    zAxis3D: '30'
                }]]
            }
}

实际上,图表无法呈现

0 个答案:

没有答案