简体   繁体   English

使用angular / d3 / css3 /(?)通过动画的树状图创建体验

[英]Creating an experience through an animated tree-like graph using angular/d3/css3/(?)

So I have a simple tree graph that is broken down into categories which may change later. 因此,我有一个简单的树图,将其分为几类,以后可能会更改。

This will be strictly for ipad/chrome, so dont worry about legacy. 严格来说,这仅适用于ipad / chrome,因此不必担心遗留问题。

树形图

I would like the branches(lines) to kind of grow from each category(Voice/video Chat) to following nodes(hangouts, skype etc). 我希望分支(线)从每个类别(语音/视频聊天)发展到以下节点(环聊,Skype等)。 I'm pretty sure that canvas is the best way to implement this. 我很确定画布是实现此目的的最佳方法。 The data for the nodes and categories will be fetched from a javascript/json factory/model in angularJS. 节点和类别的数据将从angularJS中的javascript / json工厂/模型中获取。 Can anyone at stack help me with a solution that could scale for changes and make clicks and animations simplistic for rapid changes. 堆栈中的任何人都可以为我提供一个解决方案,该解决方案可以扩展更改并简化单击和动画以实现快速更改。

If possible, extra comments in the realm of canvas (where I know almost nothing). 如果可能的话,在画布领域(我几乎一无所知)中添加更多评论。 This is a preemptive strike for me; 这对我来说是先发制人的打击; so If, I'm asking for too much sorry. 所以,如果要,我太抱歉了。

D3 would probably be the way to go. D3可能是要走的路。 It often comes with a steep learning curve though (at least for me, not having worked with SVGs before). 但是,它通常带有陡峭的学习曲线(至少对我来说,以前没有使用过SVG)。 Mike Bostock has a similar example: http://bl.ocks.org/mbostock/4339083 Mike Bostock有一个类似的示例: http : //bl.ocks.org/mbostock/4339083

The nodes are interactive and have several layers of nesting. 节点是交互式的,并具有多层嵌套。 It's done as a left-right tree, rather than top - down like you're wanting. 它就像是一棵左右树,而不是像您想要的那样自上而下完成。 So it'll require modification to get it how you want. 因此,将需要对其进行修改以使其达到您的要求。

Another example from Mike Bostock is: http://bl.ocks.org/mbostock/999346 . Mike Bostock的另一个示例是: http : //bl.ocks.org/mbostock/999346 This is a top-down. 这是自上而下的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM