A graph is a set of points, called nodes or vertices, which are interconnected by a set of lines called edges. The graph visualizes how subjects are interconnected with each other.
Creating a Graph Visualization
Here is an example of Graph visualization with TigerGraph datasource:
Step 1: Create a new TigerGraph datasource & run the installed query on it to create a dataset. For this, you can refer to the “TigerGraph Datasource Integration” documentation.
Step 2: Once the dataset is created, click on the Create Visualization button.
Step 3: In Settings, select the Visualization Type as Graph.
This will create a graph visualization for the widget.
Alternatively, you can navigate to the dashboard and create a widget from the Tigergraph query. From there, you can use, widget settings to create a graph.
Chart Settings for Graph:
Edges Type: This allows you to filter visible links by edge type. If nothing is set, then all links (edges) are shown.
Integration Type: Integration type describes how Vertexes are aligned on a graph. There are two types of integration to select from Verlet (default) and Euler.
- Verlet: Verlet integration applies inertia by using previous and current positions.
- Euler: Velocity is stored with the object and added whenever a new position is calculated.
Data Format
To build Graph visualization, the data needs to be formatted to contain attributes describing both- Edge (Links) and Vertex.
For Vertex
- v_id - ID of a Vertex (String)
- v_type - Vertex Type (String)
- attributes - additional JSON field (String) - This is passed to a Graph as a tooltip.
For Edge
- from_id - ID of a source point (Vertex) for Link
- from_type - Type of a source point (Vertex) for Link
- to_id - ID of a destination point (Vertex) for Link
- to_type - Type of a destination point (Vertex) for Link
- e_type - Type of Edge (Link)
- attributes - additional JSON field (String) - This is passed to a Graph as a tooltip.
Note: All edges and vertexes can be described in one single dataset. If you have separate datasets with edges and vertexes, you need to use the Query Builder to Join Queries into one single query.
Please use Cloud9QL to combine, convert and rename fields to the format suitable for Graph.