Filtering Graph Data
The Filter panel enables you to filter data by any numerical property, including date and time, using multiple composable filters. An individual filter operates on a single property (of either nodes or edges). Creating multiple filters that operate at once lets you select data with any combination of numerical properties (for example, transaction amount, date range, etc.).
Data that meets filter criteria remain in the graph space where it can be selected using the Select Visible Nodes button in the Filter panel, or the Select Visible Nodes toolbar icon. This is particularly useful for selecting and removing data that are not of interest. You can set filter criteria, select and delete the visible data, and then delete the filter to see the remaining data.
Filtering using multiple composable filters
This example uses a dataset of TV series viewership per episode displayed in a parametric layout. We can create a filter by date, then add a second filter for the number of viewers.
Date-time values need to be formatted as YYYY-MM-DD hh:mm:ss. Date-timestamps not in that format can be converted using an f(x) function in the Transform panel.
To filter data using multiple filters:
Open the Filter panel. First we’ll filter by date.
From the Node Properties menu, choose the episodeAirdate property.
The filter is labeled with the property name and the category or relationship label (e.g. episodeAirdate(Episodes)). A slider shows the range of the property's timestamp values.
Set a range of dates using the Min and Max selectors under the slider. For filtering by date, you can click the value to display a calendar and select dates. You can lock down a range of values, then use the slider or animation playhead to filter using that range (for example, by year, month, or week).
Now add a second filter for viewership. We select the millionViewers property from the Node Properties menu.
To set a range of amounts, enter minimum and maximum values in the Min and Max text boxes (e.g. 5 and 10).
The view in the graph space now includes only the filtered data. List items in the legend are updated to show the new numbers for each category, relationship, etc.
For dynamic presentation of data, the animation playhead lets you play through the range of filtered values automatically. You can set start and ending values on the slider, then enter a duration and select options for the direction of play and for continuous looping through the filter values. Each filter has its own independently set playhead.
Clearing a filter
Click the Delete button above the filter’s slider, or click the property name in the Node Properties menu.
You can dismiss the Filter panel and continue working with the filtered data.
To clear all existing filters so that you can see all your data again, you must clear (i.e., delete) all your filters. When the menu panel is closed, clicking the green Reset tab clears all existing filters and returns data to a force layout.
Filters do not persist when you exit the project. When you load a saved Snapshot of a filtered graph, filters are not included, but the data that was filtered out is hidden and can be restored by clicking the Un-hide Selection icon.
Saving or deleting filtered nodes using Select Visible Nodes
Filters do not delete data; it must be explicitly selected and deleted. You can delete either the visible nodes, or nodes that have been filtered out.
To delete visible nodes:
Click Select Visible Nodes and press del or backspace.
The graph space appears empty.
To restore data you wanted to keep, clear your filters by clicking the Del button to the right of the filter’s slider (or the x next to the property name in the Node Properties menu).
To delete filtered nodes:
Click Select Visible Nodes (the nodes you want to keep).
Clear your filters by clicking the Del button to the right of the filter’s slider (or the x next to the property name in the Node Properties menu).
All the data appears, with the nodes you want still selected.
Click Inverse (Ctrl+I) to invert the selection, and press del or backspace to delete.