Container

The container is an object that lets you add visualizations in a limited space. You can also show or hide the visualizations inside the container based on conditions.

A container.

When to use it

The container is useful when you want to be able to quickly switch between different visualizations, on a dashboard with limited screen real estate. You can also use a container to show different visualizations based on:

  • Which user is accessing the chart.
  • The value of a variable.
  • Possible number of values in a field, by using the GetPossibleCount() function in the condition expression.

Creating a container

You can create a container on the sheet you are editing.

Do the following:

  1. From the assets panel, drag a Container object to the sheet.
  2. Click Add under Content in the properties panel.
  3. Select a master visualization in Master items, or select to create a new visualization in Charts.

    Alternatively: you can add content to your container by dragging available visualizations from your sheet, or from your Master items, directly on the container.

  4. Drag the charts in the property panel to set the tab order.

You will now have a container with a tab for each visualization you added. You can switch between tabs to show different visualizations.

Adding show conditions

You can add show conditions on the tabs you have created.

Do the following:

  1. Click on the chart you want to add a show condition to, under Content in the property panel.
  2. Add a show condition for the chart in Show condition. Typically you would use an If() function.
  3. See if - script and chart function.

  4. Add another show condition to a different chart.
  5. The charts will now be shown or hidden depending on the result of the conditions you added. If the condition of a chart results in True, it is shown, and if it is False, it is hidden.

Display limitations

  • You cannot use a master visualization that contains a container inside another container.
  • It is not possible to add the same master visualization twice on a container.
  • Tab selection is remembered when navigating between sheets or refreshing the browser only for the same session only.
  • It is not possible to create a chart inside a container by dropping measures or dimensions on the container.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?