Skip to content

Echarts 图表块无法渲染 3D 图表 #4992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Zuoqiu-Yingyi opened this issue May 23, 2022 · 0 comments
Closed
1 task done

Echarts 图表块无法渲染 3D 图表 #4992

Zuoqiu-Yingyi opened this issue May 23, 2022 · 0 comments
Assignees
Milestone

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

描述问题 Describe the problem

Echarts 图表块无法渲染如下所示的 3D 图表, 错误输出为 echarts render error: Error: Component series.surface not exists. Load it first.

{
    "title": {
        "text": "A-n37-k6"
    },
    "xAxis3D": {
        "type": "value"
    },
    "yAxis3D": {
        "type": "value"
    },
    "zAxis3D": {
        "type": "value"
    },
    "grid3D": {
        "viewControl": {}
    },
    "backgroundColor": "#fff",
    "visualMap": {
        "show": false,
        "dimension": 2,
        "min": 1000,
        "max": 2500,
        "inRange": {
            "color": [
                "#313695",
                "#4575b4",
                "#74add1",
                "#abd9e9",
                "#e0f3f8",
                "#ffffbf",
                "#fee090",
                "#fdae61",
                "#f46d43",
                "#d73027",
                "#a50026"
            ]
        }
    },
    "series": [
        {
            "type": "surface",
            "data": [
                [16, 16, 2238.2802751608015],
                [16, 32, 2139.6056152864235],
                [16, 64, 1837.3205782640473],
                [16, 128, 1765.139873306341],
                [16, 256, 1323.8094884665363],
                [16, 512, 1238.744293256538],
                [32, 16, 1756.478780340072],
                [32, 32, 1810.0598779790753],
                [32, 64, 1817.0194742939061],
                [32, 128, 1374.9433716536819],
                [32, 256, 1224.252248959915],
                [32, 512, 1125.0106973116326],
                [64, 16, 2158.4640190163177],
                [64, 32, 1991.7679479548815],
                [64, 64, 1584.3372397669527],
                [64, 128, 1330.4276016533906],
                [64, 256, 1280.1826491830705],
                [64, 512, 1008.1489398072747],
                [128, 16, 2362.728042492503],
                [128, 32, 1669.9778146659733],
                [128, 64, 1424.354815361734],
                [128, 128, 1289.1604424714003],
                [128, 256, 1176.908918418763],
                [128, 512, 1079.1861378503384],
                [256, 16, 2095.0657073342945],
                [256, 32, 1764.1426465502145],
                [256, 64, 1357.6489996766675],
                [256, 128, 1205.9685123968559],
                [256, 256, 1051.9043594719367],
                [256, 512, 1033.8230894128515],
                [512, 16, 2100.3173829790994],
                [512, 32, 1693.1682243422056],
                [512, 64, 1241.6744340159796],
                [512, 128, 1144.4296275603187],
                [512, 256, 1108.954829441973],
                [512, 512, 1039.4442711352413]
            ]
        }
    ]
}

期待的结果 Expected result

可以在 Examples - Apache ECharts 页面进行验证

截屏或者录屏演示 Screenshot or screen recording presentation

正常显示:
simple-surface

版本环境 Version environment

- Version: `2.0.12`
- Operating System: windows 10
- Browser (if used):

日志文件 Log file

前端与内核日志均无异常输出

更多信息 More information

No response

@Vanessa219 Vanessa219 self-assigned this Jun 2, 2022
@Vanessa219 Vanessa219 added this to the 2.0.16 milestone Jun 2, 2022
Vanessa219 added a commit that referenced this issue Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants