Skip to content
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

[Bug] Cannot read properties of undefined (reading 'dimensions') #18159

Closed
hansott opened this issue Jan 10, 2023 · 5 comments
Closed

[Bug] Cannot read properties of undefined (reading 'dimensions') #18159

hansott opened this issue Jan 10, 2023 · 5 comments
Labels
bug en This issue is in English topic: marker
Milestone

Comments

@hansott
Copy link

hansott commented Jan 10, 2023

Version

5.4.1

Link to Minimal Reproduction

https://codesandbox.io/s/new-hill-2jexmu

Steps to Reproduce

{
    "legend": {
        "show": false
    },
    "series": [
        {
            "name": "Api Key",
            "type": "pie",
            "radius": [
                "60%",
                "80%"
            ],
            "avoidLabelOverlap": false,
            "itemStyle": {
                "borderRadius": 0,
                "borderColor": "#fff",
                "borderWidth": 1
            },
            "emphasis": {
                "disabled": true
            },
            "cursor": "auto",
            "label": {
                "show": false
            },
            "markPoint": {
                "tooltip": {
                    "show": false
                },
                "label": {
                    "show": true,
                    "formatter": "{b}",
                    "color": "#102a43",
                    "fontSize": 14,
                    "fontWeight": "bold"
                },
                "data": [
                    {
                        "name": "0%",
                        "value": "-",
                        "symbol": "circle",
                        "itemStyle": {
                            "color": "transparent"
                        },
                        "x": "50%",
                        "y": "50%"
                    }
                ]
            },
            "data": [
                {
                    "name": "With value",
                    "value": 0,
                    "itemStyle": {
                        "color": "#48BB78"
                    }
                },
                {
                    "name": "Without value",
                    "value": 1,
                    "itemStyle": {
                        "color": "#9fb3c8"
                    }
                }
            ],
            "animationDuration": 0,
            "animationDurationUpdate": 0
        }
    ]
}

Current Behavior

TypeError: Cannot read properties of undefined (reading 'dimensions')
    at dataTransform (markerHelper.js:51:23)
    at eval (util.js:336:17)
    at Array.map (<anonymous>)
    at map (util.js:257:16)
    at createData (MarkPointView.js:138:44)
    at MarkPointView.renderSeries (MarkPointView.js:68:18)
    at eval (MarkerView.js:32:28)
    at GlobalModel.eval (Global.js:412:10)
    at Array.forEach (<anonymous>)
    at each (util.js:236:9)
    at GlobalModel.eachSeries (Global.js:410:33)
    at MarkerView.render (MarkerView.js:30:13)
    at eval (echarts.js:1337:23)
    at Array.forEach (<anonymous>)
    at each (util.js:236:9)
    at renderComponents (echarts.js:1334:35)
    at render (echarts.js:1322:7)
    at ECharts.update (echarts.js:1004:9)
    at ECharts.setOption (echarts.js:369:30)
    at $csb$eval (index.js? [sm]:6:7)
    at H (eval.js:31:28)
    at K.evaluate (transpiled-module.js:713:29)
    at ge.evaluateTranspiledModule (manager.js:340:33)
    at c (transpiled-module.js:695:31)
    at loadResources (index.html:3:2)
    at $csb$eval (index.html:9:3)
    at H (eval.js:31:28)
    at K.evaluate (transpiled-module.js:713:29)
    at ge.evaluateTranspiledModule (manager.js:340:33)
    at ge.evaluateModule (manager.js:311:34)
    at compile.ts:765:31
    at c (runtime.js:45:40)
    at Generator._invoke (runtime.js:274:22)
    at forEach.t.<computed> [as next] (runtime.js:97:21)
    at e (asyncToGenerator.js:3:20)
    at a (asyncToGenerator.js:25:9)

Expected Behavior

It doesn't crash

Environment

- OS: macOS Monterey
- Browser: Chrome 108.0.5359.124
- Framework: React

Any additional comments?

Updated from 5.4.0 to 5.4.1 and then the crash occurred

@hansott hansott added the bug label Jan 10, 2023
@echarts-bot echarts-bot bot added the missing-title This issue is missing a descriptive title. label Jan 10, 2023
@echarts-bot echarts-bot bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2023
@echarts-bot

This comment has been minimized.

@hansott hansott changed the title [Bug] [Bug] Cannot read properties of undefined (reading 'dimensions') Jan 10, 2023
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 10, 2023
@echarts-bot echarts-bot bot reopened this Jan 10, 2023
@echarts-bot echarts-bot bot removed the missing-title This issue is missing a descriptive title. label Jan 10, 2023
@plainheart plainheart added topic: marker and removed pending We are not sure about whether this is a bug/new feature. labels Jan 10, 2023
@plainheart plainheart added this to the 5.5.0 milestone Jan 10, 2023
@marnunez
Copy link

Same issue here. I think it has to do with the fact that neither of us is using datasets

@marnunez
Copy link

Actually no. Apparently, the pie chart we created has no coordinateSystem defined, so it can't get its dimensions

@wozien
Copy link

wozien commented May 15, 2023

Same issue.

@helgasoft
Copy link

Given that it is limited to an older version 5.4.1, is this issue still relevant ?

@plainheart plainheart modified the milestones: 5.5.0, 5.4.2 Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English topic: marker
Projects
None yet
Development

No branches or pull requests

5 participants