1/1/2015
Node-Hyperlink Tree Diagram in Tableau
Again in November somebody from Zurich, Switzerland, emailed me about utilizing my sankey-style slopegraph method in Tableau to emulate a chart in D3. The diagram is also known as a node-link tree diagram. To construct this I utilized the identical method as outlined here. I posted a picture on Twitter again in November here however the information used to construct this was proprietary so I wasn’t in a position to put up the workbook. I anonymized the information and the Tableau workbook is now posted here
The first distinction on this method vs. the unique sankey-style slopegraph (here and here) is that there are a number of ranges. Within the authentic design the sector T goes from -6 to six in increments on .25. On this workbork there’s a new area T2 which is the same as T + 12 for degree 2 and T + 24 for degree 3.
Root Node to Stage 1: T = -6 to six
Stage 1 to Stage 2: T = 6 to 18
Stage 2 to Stage 3: T = 18 to 30
Another method: Create a area for every degree after which set T2 = T +12 or +24 based mostly on the extent.
Under is a picture of the identical visualization with the axis labels and gridlines to point out how this method works.
The created a twin axis to create the circles on the nodes, altering the second Marks to Circles as an alternative of Traces. I created a calculated area for Colour (non-obligatory) so that every node degree could be a distinct shade:
Calculated Subject Identify: Colour
Formulation:
if sum([T2])= -6 then ‘grey’
elseif sum([T2])= 6 then ‘orange’
elseif sum([T2])= 18 then ‘blue’
elseif sum([T2])= 30 then ‘inexperienced’
finish
As soon as the primary chart is full merely swap the rows and columns and reverse the size on the Y-Axis (T2) to have the chart go down as an alternative of throughout.