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

数据结构中,date属性是否应该在links上,而非nodes上 #32

Open
oasiszrz opened this issue Aug 10, 2023 · 0 comments
Open

Comments

@oasiszrz
Copy link

非常棒的项目!感谢作者的贡献。有个问题值得解决一下:一般来讲,时序图的时间戳体现在边(link)上更为合理,表示动态的事件发生时间点。而节点(node)是相对稳定不变的实体,与时间戳弱相关,请作者参考!类似数据组织方法如下,将date时间戳信息切换到links上:

nodes=[
{id: '1', name: '节点1'},
{id: '2', name: '节点2'}
];

const links = [
{source: '2', target: '4', date: '2021-10-19 12:00:00'},
{source: '2', target: '4', date: '2021-10-20 12:00:00'},
];
再次感谢作者贡献!

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

1 participant