apache / apache/echarts

TypeError: Cannot read properties of undefined (reading 'get')

Open
#15,893 18 comments 0 reactions 0 assignees View on GitHub
bug en missing-demo pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
4.9.0

### Steps to reproduce
Throwing an exception in collectAxesInfo, modelHelper.js

"Cannot read properties of undefined (reading 'get')"

### What is expected?
It should not throw exception

### What is actually happening?
var linksOption = globalAxisPointerModel.get('link', true) || []; is undefined

Contributor guide

Open the contributing guide

Research direction

Start in modelHelper.js at collectAxesInfo and inspect the globalAxisPointerModel access that calls get('link', true). Reproduce the reported exception using the issue's steps, then verify that collecting axis information no longer throws when that value is undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.