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

Unhandled Runtime Error #59

Open
asynchat opened this issue Dec 13, 2024 · 4 comments
Open

Unhandled Runtime Error #59

asynchat opened this issue Dec 13, 2024 · 4 comments

Comments

@asynchat
Copy link

版本:0.3.4
能正常预览,不能自适应,其它支持的图表是可以自适应
image

Unhandled Runtime Error
Error: [G6 v5.0.35] The graph instance has been destroyed

Call Stack
Graph.eval
node_modules/.pnpm/@AntV[email protected][email protected]/node_modules/@antv/g6/esm/runtime/graph.js (856:1)
Generator.next

fulfilled
node_modules/.pnpm/@AntV[email protected][email protected]/node_modules/@antv/g6/esm/runtime/graph.js (4:43)

@lvisei
Copy link
Member

lvisei commented Dec 13, 2024

支持自适应的图表有哪些,是关系图还是统计图表 @asynchat

@asynchat
Copy link
Author

支持自适应的图表有哪些,是关系图还是统计图表 @asynchat

关系图,试了下流程图,同样问题,另外折线图抛出:

Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'map')

其它的有些会提示不支持,所以没去全部测试一遍了

@lvisei
Copy link
Member

lvisei commented Dec 17, 2024

我这样控制样式的,没有复现提的错误。

.gpt-vis {
    min-width: 300px;
    height: 300px;
    max-width: 100%;
}

你怎么使用的,复现一下代码示例。

@asynchat
Copy link
Author

line
折线图现在是可以的
abc
流程图依然说destroy,可能是系统其它的样式影响到了吧,如果是因为样式问题,可能需要增加一个style,class已经被覆盖了

<GPTVis>{message.content}</GPTVis>
没有复杂使用,就是用 GPTVis 包裹了下消息内容。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants