Protovis 中的树状图
我喜欢 http://vis.stanford.edu/protovis 上的 protovis 库。我正在尝试用它来创建树形图。 Protovis 的树状图布局中是否有一种方法可以指示要显示的最大级别。基本上,我有一棵深度为 5 的深树,但我只想显示最多 3 层的节点。如果用户导航到第 3 层的节点,则显示其子节点(如果有)。
任何意见和帮助将不胜感激。
谢谢
I liked the protovis library at http://vis.stanford.edu/protovis. I am trying to use it to create a treemap. Is there a way in Protovis' treemap layout by which we can indicate maximum level to show. Basically, I have a deep tree with depth 5 but I want to show nodes upto 3 levels only. If a user navigates into a node at level 3 then show its children, if any.
Any comments and help will be greatly appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该看看 Mike Bostock 的新图表实现。将其视为 protovis 的下一个版本,称为 D3。它正在积极开发中,并且正在将 protovis 的大部分部分移植到其中。您可以在 Google 网上论坛中查看开发小组。有一个简单的程序显示了您需要在爆发树形图中执行的操作。
You should take a look at Mike Bostock's new charting implementation. Think about it as the next version of protovis and is called D3. It is actively being developed and is in the process of porting most parts of protovis to it. You can check the development groups in google groups. There is a simple program showing what you need to do in bursting treemap.