Charts
Hierarchy Charts
Explore hierarchical CSV as a tree or sunburst.
Hierarchy Charts is a hierarchy chart built from slash-separated paths. The table has columns path, name, value. There are 18 data rows. The first rows read: flare/analytics/cluster/AgglomerativeCluster,AgglomerativeCluster,3938; flare/analytics/cluster/CommunityStructure,CommunityStructure,3812; flare/analytics/cluster/MergeEdge,MergeEdge,743; flare/analytics/optimization/AspectRatioBanker,AspectRatioBanker,7074. The path column is the nesting, and the value column is the size of each leaf.
Keep the header row. Add or edit a data row in the field below, then generate to redraw only this table.
Equation
path,name,value
flare/analytics/cluster/AgglomerativeCluster,AgglomerativeCluster,3938
flare/analytics/cluster/CommunityStructure,CommunityStructure,3812
flare/analytics/cluster/MergeEdge,MergeEdge,743
flare/analytics/optimization/AspectRatioBanker,AspectRatioBanker,7074
flare/animate/Easing,Easing,17010
flare/animate/FunctionSequence,FunctionSequence,5842
flare/animate/interpolate/ArrayInterpolator,ArrayInterpolator,1983
flare/data/converters/Converters,Converters,721
flare/data/DataField,DataField,1759
flare/data/DataSchema,DataSchema,2165
flare/display/DirtySprite,DirtySprite,8833
flare/display/LineSprite,LineSprite,1732
flare/display/RectSprite,RectSprite,2454
flare/physics/DragForce,DragForce,1082
flare/physics/GravityForce,GravityForce,1336
flare/physics/Particle,Particle,2822
flare/vis/axis/Axes,Axes,1302
flare/vis/legend/Legend,Legend,20859
How to read the table
A chart page starts from a small CSV table. The first row names the columns, and each later row is one observation. DGS reads that table in the chart workflow and draws a D3 chart such as bars, a line, a pie, a scatterplot matrix, or a hierarchy.
Changing a number changes only that mark. Changing a header can change which column is treated as the category and which columns are the values. The editable field below is the whole table, so you can add a row and generate the chart again.
Reading the input
path,name,value— This is a header or a data row. Values in the same column share a meaning.flare/analytics/cluster/AgglomerativeCluster,AgglomerativeCluster,3938— This is a header or a data row. Values in the same column share a meaning.flare/analytics/cluster/CommunityStructure,CommunityStructure,3812— This is a header or a data row. Values in the same column share a meaning.flare/analytics/cluster/MergeEdge,MergeEdge,743— This is a header or a data row. Values in the same column share a meaning.flare/analytics/optimization/AspectRatioBanker,AspectRatioBanker,7074— This is a header or a data row. Values in the same column share a meaning.flare/animate/Easing,Easing,17010— This is a header or a data row. Values in the same column share a meaning.flare/animate/FunctionSequence,FunctionSequence,5842— This is a header or a data row. Values in the same column share a meaning.flare/animate/interpolate/ArrayInterpolator,ArrayInterpolator,1983— This is a header or a data row. Values in the same column share a meaning.11 more lines— The remaining lines use the same kind of instruction. Read them by the same rule as the lines above.
Other versions of this example
These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.
Collapsible Tree
This is a header or a data row. Values in the same column share a meaning.
path,name,value
flare/analytics/cluster/AgglomerativeCluster,AgglomerativeCluster,3938
flare/analytics/cluster/CommunityStructure,CommunityStructure,3812
flare/analytics/cluster/MergeEdge,MergeEdge,743
flare/analytics/optimization/AspectRatioBanker,AspectRatioBanker,7074
flare/animate/Easing,Easing,17010
flare/animate/FunctionSequence,FunctionSequence,5842
flare/animate/interpolate/ArrayInterpolator,ArrayInterpolator,1983
flare/data/converters/Converters,Converters,721
flare/data/DataField,DataField,1759
flare/data/DataSchema,DataSchema,2165
flare/display/DirtySprite,DirtySprite,8833
flare/display/LineSprite,LineSprite,1732
flare/display/RectSprite,RectSprite,2454
flare/physics/DragForce,DragForce,1082
flare/physics/GravityForce,GravityForce,1336
flare/physics/Particle,Particle,2822
flare/vis/axis/Axes,Axes,1302
flare/vis/legend/Legend,Legend,20859
Zoomable Sunburst
This is a header or a data row. Values in the same column share a meaning.
path,name,value
flare/analytics/cluster/AgglomerativeCluster,AgglomerativeCluster,3938
flare/analytics/cluster/CommunityStructure,CommunityStructure,3812
flare/analytics/cluster/MergeEdge,MergeEdge,743
flare/analytics/optimization/AspectRatioBanker,AspectRatioBanker,7074
flare/animate/Easing,Easing,17010
flare/animate/FunctionSequence,FunctionSequence,5842
flare/animate/interpolate/ArrayInterpolator,ArrayInterpolator,1983
flare/data/converters/Converters,Converters,721
flare/data/DataField,DataField,1759
flare/data/DataSchema,DataSchema,2165
flare/display/DirtySprite,DirtySprite,8833
flare/display/LineSprite,LineSprite,1732
flare/display/RectSprite,RectSprite,2454
flare/physics/DragForce,DragForce,1082
flare/physics/GravityForce,GravityForce,1336
flare/physics/Particle,Particle,2822
flare/vis/axis/Axes,Axes,1302
flare/vis/legend/Legend,Legend,20859
Try a change
- Change one number in the last row, leave the header as it is, and generate the chart again. Only that mark should move.
- Add a new row in the same number of columns. A pie slice, bar, or line point appears for the new row.
Generate Chart reads this CSV in the chart workflow and draws it with D3. The example page does not embed the live chart. The button below opens the studio and runs the table.