D3js Is it possible create view like tree structure with custom nodes - javascript

I have requirement to list different activities with three states of each one with different colors as a status.Each activity will have many activities and each should draggable to replace it's position. Below image give you clear idea
Is it possible with d3.js??

Yes it's absolutely possible. Are there any more details you need??

Related

How to make menu hierarchy flowchart in ReactJS?

I am trying to make a hierarchical tree like this, 1
I have designed the basic tree, but I am unable to find a way to draw the lines, connecting the parent and child entries in the menu.
enter image description here
Does anyone know a better way, or literally any way to draw the lines?
I wish I could see some code to see how that's implemented. What about adding borders on divs? Like just a border-left? I'm sorry if I'm missing the question, I'd need more info. I hope this helps. If you share a live code I may be able to work on it live and test some things.

Expand nodes on click in cytoscape js

I have a graph of people who interact with each other.
The graph is quite messy since everybody interacts with each other. What I need is:
Display the "main" person in the center
Display only the first level of interactions
When the user clicks on a node toggle its children visibility (without displaying children of children)
I've read about compound nodes, but the thing is that one node (person) can have many parents and it's not supported in Cytoscape.
This is what it should look like. The red circle is the "main" person. The red rectangle is the first level of interactions. The rest should be hidden till the user clicks on a node, which reveals its direct children.
The only idea I got is to manipulate the data I provide for the chart. Right now I have an array of vertices and edges. Edges have source/target. So I probably can handle it in javascript by manipulating these arrays.
But is it possible to somehow simplify the process?
You can use view-utilities extension of cytoscape.js which provides hide/show functionality. See its API that has hide, show and showHiddenNeighbors functions. You can also play with its demo here.

Changing Image Instances on Dynamic Web Form

I'm looking to put together a dynamic Web form where, when the customer selects options from a series of radio buttons, additional items will be added to the main image.
Think of it as if you had a Photoshop layer and all the other layers above could be hidden or revealed dependent on the customer's input on the form.
So, two questions...
I assume I should be using JavaScript for this form. Being a beginner with JavaScript, is there a way for me to tell it to change the image based on multiple inputs selected by the customer? The base image would be the same but I would be looking to hide/reveal multiple "overlays" on top of the base image.
Is this something that React can handle or should I be looking at something like Angular?
Thanks for your assistance with this question!
I can answer for number one by providing a live example: http://codepen.io/zvona/pen/mVQWvX
It consists of three components, FormControls, Blocks and App. Names are quite self-explanatory and so should be code itself. There may be some minor mistakes in code since it's quite quickly written on the fly, but it should give you insight on how this can be achieved with React.

GoJS TreeLayout different level for every child

I want to display a graph which depicts a timed process. Therefore, it would be desireable to have nodes aligned according to a given timeline.
The time stamps are totally accurate, which is why I chose them to be the keys of my groups. If two nodes have the same time stamp, they get added to the same group.
These groups are aligned by the TreeLayout. Per default they are aligned in the following way:
(Please note that the black boxes depict the groups and their alignment. The red boxes were added for better understanding on which level which group is.
What I would like to have, is a more timelined view of the diagram like so:
I tried setting layerStyle: go.TreeLayout.LayerUniform, and afterwards setting the TreeVertex.level accordingly, but GoJS didn't change its positioning.
Are there any other possibilities to achieve what I want?
Did you assign TreeVertex.level in an override of TreeLayout.assignTreeVertexValues?
You might be interested in the LayeredTreeLayout example classes that are in two different samples: http://gojs.net/temp/swimBands2.html (no Groups) and http://gojs.net/temp/swimBands3.html (with Groups).
I hope the LayeredTreeLayout code in those files isn't too confusing. They are slightly different from each other, due to the absence or presence of Groups, and the corresponding changes in the node data.

Javascript/jQuery based dynamic list with indentation

I'm build the UI for a web-based list app.
Does anyone know of a script that allows users to arrange the ordering of html elements?
similar to this
http://jqueryui.com/demos/sortable/ but also has the ability to indent items by dragging horizontally? (to represent parent child relationships)
I believe that the parent-child relationship you want creates a tree, so why not looking for some jQuery Tree plugins that allow drag and drop.
I found this after a quick search in google:
http://www.jstree.com/demo
There are several Tree plugins that do something similar to what you want.

Categories

Resources