Skip to main content Skip to complementary content

How I made this: Dynamic analysis with the layout container

This example shows you how you can make dynamic, interactive sheet content with the layout container. The layout container supports gridless design and stacked visualizations, allowing extensive control over the arrangement of your analytics content. Additionally, as with other container objects, you can dynamically present different information depending on a variety of conditions, such as variable and selection states.

This example shows you can build a layout container to present information from multiple charts as a single object. Some general design approaches include:

  • Arranging similar objects in a symmetrical fashion, using styling to distinguish different sections of data.

  • Removing borders from individual objects inside the layout container, and then adding a border around the entire object when finished.

  • Displaying different objects or data conditionally depending on user interaction—in this example, a bar chart in which the user can show or hide details.

  • Building composite elements consisting of multiple different objects placed next to each other—in this example, an interactive button that mimics an on/off switch.

  • Allowing multiple ways for users to select and filter data when they need to take a closer look.

Final result

Finished layout container for the example

Preparations

Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.

After loading the data, switch to sheet view.

Example load script

Part 1: Create the variable

First, create the variable. This variable is the subject of conditions that will be added later. The values of the variable will be changed during analysis by interactions with button objects.

Create the following variable. Set the Definition to =false().

  • vViewChartValues

Creating a variable

Part 2: Create the layout container

  1. In the assets panel, open Extension Custom objects > Dashboard bundle and drag a Layout container to the sheet.

  2. Resize the container so that it is 17 by 10 squares on the sheet grid.

Part 3: Add visualizations to the layout container

Next, add visualizations to the layout container.

Part 4: Finalize presentation

Finalize the layout container by adding a title and border.

  1. In the properties panel, expand Appearance > General.

  2. Set the Title to Late vs. Non-Late Orders - Sales Impact.

  3. Expand Appearance > Presentation.

  4. Turn on Keep charts inside.

  5. Click Palette Styling.

  6. Set the following properties for Border:

    • Outline: 2 px

    • Color: #7b7a78

  7. Set the following properties for Shadow:

    • Medium size

    • Color: #7b7a78

Results

Exit sheet edit mode. Click the toggle switch button to alternate between the simple and detailed bar chart.

Layout container with Show values switched off

Layout container with 'Show values' switched off, presenting the bar chart without value labels

Layout container with Show values switched on

Layout container with 'Show values' switched on, presenting the bar chart with value labels

Click on the Not Late and Late titles at the top of the chart. Notice that clicking these elements selects the corresponding values in the app.

Layout container with selection Not Late in field Late Status.

Layout container with selection made in the 'Late Status' field. This selection was made by clicking the titles at the top of the layout container

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!