Guided Learning
This chapter explores Insights Boards in DataChat using a Titanic dataset. For this example, we'll create tables and charts about ticket fares to add to an Insights Board.
Load Data
- Open a new session
- Load the "Titanic Dataset" CSV file.
- Double-click on "Unnamed" next to the DataChat icon to rename the session. Let's call it "TitanicObjects".
Create Objects
Let's create a couple of objects from this dataset that we can add to an Insights Board.
Datasets
Click Dataset > Compute to open the Compute form.
Enter "average" for the aggregate, "Fare" for the column, and "AvFare" for the new column name.
Select "Pclass" as the grouping column.
Click Submit.
A new "titanic_Compute" dataset is created in the dataset panel, showing the "AvFare" for each "Pclass".
Charts
Click Plot in the sidebar to open the Chart Builder.
Select Bar Chart for type, "Age" for the X-Axis and "Fare" for the Y-Axis. By default, "Average" is the Y-Axis Aggregate.
Under Optional Fields, select "Pclass" for Slider.
Click Submit.
Let's create a second chart to examine "Fare" vs. "Survived":
Click Plot in the sidebar to open the Chart Builder.
Select Violin Chart for type, "Survived" for the X-Axis and "Fare" for the Y-Axis.
Under Optional Fields, select "Pclass" for Subplot.
Click Submit.
Add Objects to an Insights Board
Now that we have objects created, we can create an Insights Board to add them to.
Create an Insights Board
In the chart panel, click the Publish (+) button on the violin chart.
Click Create Insights Board and Publish.
Enter "Titanic Board" for the name, then click Submit.
Add Other Objects
In the chart panel, scroll to the bar chart.
Click the Publish (+) button.
Select "Titanic Board".
Repeat steps 2 and 3 for the "titanic_Compute" dataset.
Edit and Use an Insights Board
Open an Insights Board
To view our Insights Board, "Titanic Board":
Return to the homepage.
Click Insights Boards in the sidebar.
Double-click "Titanic Board".
Move and Resize Object Panels
Let's say that we'd like to organize our Insights Board so that the charts are along the left side and resize the "titanic_Compute" dataset so that it is larger.
- Move the panels by clicking the top of the panel and dragging to the desired position.
- Resize the panels by clicking and dragging the edge of the object panel.
Create an Annotation
Let's say we'd also like to make an annotation about the "Average Fare vs. Age" bar chart to call out that "Average Fare" decreases as "Pclass" increases.
Click Annotate in the sidebar.
Enter "Average Fare decreases as Pclass increases".
Click Submit.
The annotation appears on the Insights Board. You can move and resize it, like other panels, to your desired position.
Edit Charts
From an Insights Board, we can also edit our "Average Fare vs. Age" chart. Let's say we'd like to change the color to purple:
Click Edit mode.
Click Customize to open the customizable option.
Click the Color button, and select the purple option.
Click Submit.
Remove Objects
Let's say that we no longer need our "titanic_Compute" dataset. We can remove the panel by clicking the Remove Publication (X) button.
Add Back Removed Objects
Now let's add the "titanic_Compute" dataset back to our Insights Board:
Click Manage in the sidebar.
Click Tables.
Select "titanic_Compute", then click Add Item (+).
The "titanic_Compute" dataset is readded to the Insights Board.
Refresh an Insights Board
Let's say we expect changes have been made to the underlying data associated with "Titanic Board". We can refresh our Insights Board to rerun the underlying recipe and apply and changes by clicking Refresh in the sidebar. You can also hover an object to display the most recent refresh.
Share an Insights Board
Now that we have our Insights Board finalized with refreshed objects, we can share it with others using a link. To share "Titanic Board":
Click Share in the sidebar.
Enter the name of a user to share with. You can remove users by clicking the X next to their role.
Optionally, you can make the Insights Board public by clicking the Make Public button. This creates a link to "Titanic Board" that you can copy and share with anyone outside of your organization.