antvis / G2

📊 The concise and progressive visualization grammar.
https://g2.antv.antgroup.com
MIT License
12.07k stars 1.58k forks source link

当我在new Chart中配置data数据时报错 #6032

Closed dengsong666 closed 2 months ago

dengsong666 commented 7 months ago

问题描述

@antv_g2.js?t=1704960787879&v=a136584a:2667 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'map') at @antv_g2.js?t=1704960787879&v=a136584a:2667:27 at @antv_g2.js?t=1704960787879&v=a136584a:57371:95 at @antv_g2.js?t=1704960787879&v=a136584a:57106:55 at @antv_g2.js?t=1704960787879&v=a136584a:5671:16 at Array.reduce () at mapObject (@antv_g2.js?t=1704960787879&v=a136584a:5670:33) at extractColumns (@antv_g2.js?t=1704960787879&v=a136584a:57106:24) at @antv_g2.js?t=1704960787879&v=a136584a:57399:41 at Generator.next () at fulfilled (@antv_g2.js?t=1704960787879&v=a136584a:57279:25)

代码提示允许我在new Chart中写data,这有问题吗/

重现链接

No response

重现步骤

No response

预期行为

No response

平台

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

pearmini commented 7 months ago

可以提供一下完整的例子吗?