This chapter explores Insights Boards in DataChat using the "titanic" dataset included with DataChat. For this example, we'll create tables and charts about ticket fares to add to an Insights Board.
- Open a new DataChat session
- Load the file "titanic.csv".
- Double-click on "Unnamed" next to the DataChat icon to rename the session. Let's call it "TitanicObjects".
Let's create a couple of objects from this dataset that we can add to an Insights Board.
Click Dataset > Describe to create a new dataset that show summary statistics about "titanic".
By default, the describe dataset appears as a pop-up. To adjust this setting, see Automatically enlarge charts and some tables in Grid Mode.
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.
A new "titanic_Compute" dataset is created in the dataset panel, showing the "AvFare" for each "Pclass".
Click Plot in the sidebar to open the Chart Builder.
Select Bar Chart for type, "Age" for the X-Axis, "Fare" for the Y-Axis. By default, "Average" is the Y-Axis Aggregate.
Under Optional Fields, select "Pclass" for Slider.
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 Analyze (Bar) 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 "titanic_Describe" table.
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 all of our panels are condensed towards the top of the board.
- 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".
The annotation appears on the Insights Board. You can move and resize it, like other panels, to your desired position.
Click Edit mode.
Click Customize to open the customizable option.
Click the Color button, and select the purple option.
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.
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 workflow and apply and changes.
Click Refresh in the sidebar.
Hovering an object will 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. 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.