Installation Island đ︶
As the moon melts on the horizon, we wake up to find ourselves in a strange place.
There are a few lonely palm trees, coconuts littered across the sand, and miles of ocean stretching out as far as the eye can see. Turning around, we find an ancient scroll next to us:
On a quest, you must embark with speed.
Learning how to create dashboards with ease.
On this island, find the tools you'll need.
With TigerGraph and Plotly, you shall succeed.
Sitting next to the scroll, thereâs an orange box with a strange laptop resting upon it...
The TigerGraph Toolbox¶
âEvery dashboard starts with the data!â reads the white engraving on the laptop.
Opening the box fully reveals three strange manuscripts, each detailing the steps needed to begin harnessing the Power of TigerGraph. Eagerly, we open up the laptop and begin to examine each.
Mysterious Manuscript 01
Creating our Solution¶
Welcome to Step 1 of the Beginnerâs Guide to Dashboarding!
In order to load and store the data for our dashboard, we must create a new TigerGraph solution.
To do this, we can:
- Navigate to TigerGraphâs Cloud Portal
- Login/Register for free using our email address
- Click on the blue âCreate Solutionâ button
- Nagvigate to the Healthcare tab
- Select âHealthcare Engineâ Starter Kit
NOTE: For the purposes of learning dashboarding, we will be using TigerGraphâs Healthcare Engine Starter Kit. This Starter Kit comes with over # vertices, # edges, and [still need to finish researching this] data attributes.

Next, we must enter the details for our solution.
- Name - This we can simply keep as "Healthcare Engine"
- Tags - We can add "Dashboard", "Healthcare"
- Password - By default, it's "tigergraph"
- Subdomain - This can be "healthcare-dash"
NOTE: Make sure that your subdomain name is unique! (two solutions cannot have the same subdomain at the same time. This subdomain name is used to access your solution (via GraphStudio, for example)

Once this has been completed, click âNextâ and then âSubmitâ.
And voila, in a few seconds, our solution should go from âUninitializedâ to âReadyâ!
After reading through the first manuscript, we reach for the second one...
Mysterious Manuscript 02
Loading our Data¶
Ahh, you've reached Step 2 of the Beginnerâs Guide to Dashboarding!
Next up, itâs time to load in our data. To do this, we need to:
- Open GraphStudio by selecting it from the Applications tab
- Click on MyGraph. This is the graph weâll be using
NOTE: Additional graphs can be added, deleted, and modified as desired by the user. For the purposes of this dashboard, we will be using the default graph the Healthcare Engine Starter Kit comes with.
Time to take a look at our schema! Navigate over to the âDesign Schemaâ tab on the right.
This is our schema, the blueprint of our graph. It consists of vertices connected to one another via edges. Each vertex can be of a different type and contain different attributes. Similarly, edges can be directional, undirected, and even reversed. Each edge can contain different attributes as well, each with multiple datatypes.
Hovering over each component, we see that our schema in this Starter Kit consists of:

NOTE: This schema can be modified by switching to âGlobal Viewâ and editing the properties of each vertex and edge. Additionally, vertices and edges may be added and deleted. For a comprehensive guide on creating your own schemas, make sure to check out these resources: TigerGraph Docs, YouTube GSQL 101
Next, we can navigate to the âMap Data to Graphâ tab. This section ensures that the raw CSV data files are imported correctly into our graph. Each column is mapped to the appropriate attribute in the appropriate vertex/edge.
In order to modify this mapping, we can simply click the âEdit Data Mappingâ icon at the top and select the file and component(s) we wish to map. Next, we click on the source column in the CSV file and match it to the corresponding attribute. When weâre all finished, we can click the âPublish Data Mappingâ icon at the top left corner.

Everything here looks good!
Next up, we can navigate to the âLoad Dataâ tab. Simply press on the white play icon at the top left corner and the loading job should begin automatically. The graph on the right-side displays the progress with respect to time.
When the loading has finished, all CSV files should say âfinishedâ.
Only one manuscript left in the box...
Mysterious Manuscript 03
Connecting with pyTG¶
Surprised you made this far, eh? Step 3 of the Beginnerâs Guide to Dashboarding!
In order to interface with our Graph, we will utilize pyTigerGraph .
To begin, we can simply install this package by running the following command.
!pip install -q pyTigerGraph
import pyTigerGraph as tg
Next, we need to use our solution information from before.
TG_SUBDOMAIN = "healthcare-dash"
TG_HOST = "https://" + TG_SUBDOMAIN + ".i.tgcloud.io" # GraphStudio link
TG_USERNAME = "tigergraph" # This should remain the same...
TG_PASSWORD = "tigergraph" # Shh, it's our password!
TG_GRAPHNAME = "MyGraph" # The name of the graph
NOTE: As mentioned in the previous document, subdomain names should be unique!
Now, we can run the following lines to establish a connection with our solution.
conn = tg.TigerGraphConnection(host=TG_HOST, username=TG_USERNAME, password=TG_PASSWORD, graphname=TG_GRAPHNAME)
conn.apiToken = conn.getToken(conn.createSecret())
print("Connected!")
Voila, weâre in!
As we put down the three manuscripts , we hear a rumbling from the beach!
After quickly bookmarking TigerGraph Cloud and our solutionâs subdomain , we close the laptop, grab the box and the manuscripts, and make our way to the source of the commotion...
The Plotly Pirates¶
âRRRRâ comes a gruff voice.
Standing on the shore, we're surprised to see two strange pirates standing next to their rather shabby brown canoe. As we walk towards them, they turn and look at us with a wry grin.
"Ahh, that orange box ya got there, you've begun your quest?" questions the first.
"Well then, better come with us back to Port Plotly.â finishes the second.
Well, not many other options for leaving the island...
Clutching the laptop and orange box, we cautiously climb into the canoe as the two pirates sit in front of us. While one of them paddles, the other gestures to our strange new laptop.
âMight wanna open that up ladâ. Itâs time y'all learned a few things boutâ our namesakeâŚâ
As the island shrunk in the distance, the pirates began to explain the Power of PlotlyâŚ
-
All code segments from this chapter can be found in this Colab Notebook. Feel free to follow along! ↩
-
Everything we've installed so far (prerequistes for next section):
↩!pip install -q pyTigerGraph import pyTigerGraph as tg TG_SUBDOMAIN = 'healthcare-dash' TG_HOST = "https://" + TG_SUBDOMAIN + ".i.tgcloud.io" # GraphStudio Link TG_USERNAME = "tigergraph" # This should remain the same... TG_PASSWORD = "tigergraph" # Shh, it's our password! TG_GRAPHNAME = "MyGraph" # The name of the graph conn = tg.TigerGraphConnection(host=TG_HOST, graphname=TG_GRAPHNAME, username=TG_USERNAME, password=TG_PASSWORD, beta=True) conn.apiToken = conn.getToken(conn.createSecret())