How to Create an Arc Diagram
Table of Contents
What is an Arc Diagram
The graphs below show all possible links between the values selected from two similar columns, using multiple Line Charts. For instance, one column may have Employee names, and the other one Manager names. Managers are also Employees.
Remark the graphs are bidirectional, and a link from a to b is displayed the same way as the link from b to a. The graphs do not show hierarchies, but bidirectional dependencies.
In Labeled Arc Diagrams, axis labels appear as node names. Hide them, and half of the arcs will appear below the nodes, as in the last two diagrams.
Steps to Create an Arc Diagram
Start Visual Xtractor or Data Xtractor. Connect to a database. Create or design a SQL query. Run the query and check the results.
- Display and enable the Chart query builder.
- Select the column with independent values as chart Label.
- Select some other column with similar and related values as Line Charts – Arc Line.
- You may also select another column as chart Category, to have different node colors.
- Hide the axis node labels, to have half of the arcs below the nodes.
Labeled Arc Diagram Demo Query
This is a great alternative to learn about and play with this type of chart, if you don’t want to create it from scratch.
Look for this ready-to-use generated query under the Queries > Demo Queries > Charts > Cartesian Charts folder. Click on the “add demo queries” command link, if Arc Diagram demo query is not already there.
The generated demo queries must work for any database, with no restriction. They use constant values generated on-the-fly and your database SQL engine, but do not depend on data from your tables, and never alter your database in any way.
Arc Diagram with Category
You may select another column as chart Category, in which case the chart legend will be populated with category items. A multi-color Arc Diagram with Category will show all nodes of a category item with the same color. This makes it easy to select only those items to be displayed.
Look for the ready-to-use Arcs with Category Chart generated demo query under the Queries > Demo Queries > Charts > Category Charts folder. Click on the “add demo queries” command link, if the demo query is not already there.
Customize your Arc Diagram
The chart toolbar at the bottom has many options you may change with one single click, to alter the graph. Here is just an example of what you can further do with this type of chart:
- Make it multi-color, to use one different color for each node.
- Show default (straight) lines and dot line styles.
- Change the chart theme (to Sand Signika).
- Hide all chart labels, so arcs between nodes could also appear below.
- Display square point markers.
- Click on legend items to hide some lines.
Conclusion
- Creating Arc Diagrams in Data Xtractor or Visual Xtractor is fast, simple and trivial: declare one independent column as Label, and another related similar column, with the same kind of data, as Arc Line, and that’s it!
- Add a chart Category column, to filter all nodes that belong to category items.
- Hide the axis labels to show arcs between nodes above and below. In Labeled Arc Diagrams, with axis labels (by default), the arcs appear only above the nodes.
- Many builtin powerful features of these chart type are common to most other charts: filtering series through the legend items, interactivity, monochrome or grayscale colors etc.
- Switch to another builtin chart theme, or customize your own, for any possible color or other styles.