antvis / antvis/G2Plot

🤔 [QUESTION]数据问题

Open
#2,962 0 comments 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]

### 💻 Link to minimal reproduction

我从后端取过来的数据,前端总报一个错: data.filter is not a function
但是我手动写的数据:
var data = [
{'省市' : '上海', '金额' : 63264015085.92229 },
{'省市' : '云南', '金额' : 282872912447.96295 },
{'省市' : '内蒙古', '金额' : 233891968254.89163 }
]
可以正常显示。
请问谁有从后端取来数据后处理的例子?谢谢各位大神了。

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start by comparing the backend response with the manually defined array shown in the issue, focusing on why the received value does not support data.filter. The issue names no source file, test, version, or platform, so completion cannot be defined beyond identifying the expected data shape and resolving the reported frontend error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.