Skip to content

[Bug] echarts-gl: error when displaying a simple surface #19527

@Hirnochse

Description

@Hirnochse

Version

5.4.3

Link to Minimal Reproduction

Steps to Reproduce

This is the code I use to display a rectangular plain surface :

option = {
tooltip: {},
backgroundColor: '#fff',
xAxis3D: {
type: 'value'
},
yAxis3D: {
type: 'value',
min: 0,
max: 6
},
zAxis3D: {
type: 'value'
},
grid3D: {
viewControl: {
projection: 'orthographic'
}
},
series: [
{
type: 'surface',
wireframe: {
// show: false
},
data:
[
[0, 3, -8],[0, 3, -7], [0, 3, -6], [0, 3, -5], [0, 3, -4], [0, 3, -3], [0, 3, -2], [0, 3, -1],
[15, 3, -8],[15, 3, -7],[15, 3, -6], [15, 3, -5], [15, 3, -4], [15, 3, -3], [15, 3, -2], [15, 3, -1],
]
}
]
};

Current Behavior

This is the result I get:
image

Expected Behavior

When I edit the data-series to:

  [0, 3, -7], [0, 3, -6], [0, 3, -5], [0, 3, -4], [0, 3, -3], [0, 3, -2], [0, 3, -1],
  [15, 3, -7],[15, 3, -6], [15, 3, -5], [15, 3, -4], [15, 3, -3], [15, 3, -2], [15, 3, -1],

I get a correct rectangular surface:

image

All I did was deleting the first data in each row:
[0, 3, -8],
[15, 3, -8],

Environment

You can reproduce the issue by pasting the code into the "examples" page on
https://echarts.apache.org/

Any additional comments?

Is there any further documentation I overlooked?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions