Skip to main content
All CollectionsGetting Started
How to use dynamic selections to change the content of other charts
How to use dynamic selections to change the content of other charts

In Juicebox, user's selections can determine what content is shown. This article outlines how to set-up these dynamic selections.

Zach Gemignani avatar
Written by Zach Gemignani
Updated over 2 years ago

An interactive data story in Juicebox combines a guided narrative with flexibility for your users to customize the information to their needs. This dynamic capability happens in a few ways in Juicebox.

  1. Automatic filtering. Selections in charts will automatically filter the content that follows that chart. This capability happens without you having to do anything in the design of your data story.

  2. Dynamic text. Selections in charts can dynamically update text and titles in your data story. Here's the documentation on how to create dynamic text.

  3. Dynamic selections. Selections in Chooser slices can determine the dimensions or measures used in other charts. That's what we'll be focusing on in this article.

To use dynamic selections, you first need to add a Chooser slice. The Chooser can provide your users with the option to select measures or dimensions that they care about. These selections can then be used to dynamically update the content in other charts.

Let's see how it works:

Choosers act as selectors

Chooser slices are among the most useful and commonly used features in Juicebox. Choosers can be used to show either a series of measures or a series of dimensions. When they show measures, the values of the measures will be shown in individual tiles.

When you have configured a Chooser with dimensions, each dimension will show up as a button, like this:

But showing those items is just the beginning. When a Chooser selection is used by another chart, the Chooser becomes selectable by your users, letting them decide what measures or dimensions they want to investigate in your data story.

How to use Chooser selections

The dynamic values from your Chooser will show up as an option when you are configuring other charts. The reference for this dynamic Chooser value will be displayed in the drop-down menu starting with the "@" symbol. Here's an example:

When you select this dynamic value to configure a chart, the chart will update based on the user's selection in the Chooser slice. Like this:

There are many ways to use Chooser selections to determine the content in charts. Dimension Choosers are often used to determine:

  • Which list of items gets represented in a bar chart;

  • Which items are ranked in a leaderboard chart;

  • What bubbles/points are represented in a scatterplot chart;

  • Which bubbles/points are represented in a map chart.

Measure Choosers are also very versatile. The selected measure can change:

  • What measure values are shown in a bar chart;

  • How bubbles are sized or colored on a map chart;

  • What measure is represented in a trend chart;

  • What axis values are shown on a scatterplot chart. Here's what that looks like:

Did this answer your question?