This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.
Let’s now add your pie chart to the top section and ensure it has the right input object set.
🔨 Task Instructions
Add a Chart: Pie widget to the empty section.
Click into the Select object set variable . . . field and choose ➕ New object set variable.
Rename the variable to [o] Filtered Flight Alerts (COP) to distinguish it from the similarly named variable on your inbox page.
Set its starting object set to the existing [o] All Flight Alerts variable.
Click the (x) Filter using variable option below and choose [f] Flight Alerts Filter (COP).
You can also make the chart interactive so that clicking on a particular segment will further filter objects on the map. For that, you’ll need to define the pie chart’s output filter variable. This is a common pattern for adding a filtering capability to all types of Workshop charts.
Back in the pie chart widget configuration panel, add Priority as the Group By property.
Move the Show Legend toggle to the “On” position.
Test the responsiveness of your pie chart to the filter by setting a value (e.g., via click and drag) in the Flight Date filter. Your pie chart will reload with new values.
At the bottom of your pie chart configuration panel, click into the Select object set filter variable . . . field and then on ➕ New object set filter variable.
A generic variable name (Chart: Pie 1 undefined) now appears in the selection field. Click on it to open the fly-out window.
Rename the variable to [f] Pie Chart Alert Filter.