Visualization tab examples
This article gives specific examples of how to configure the visualization tab of the Data Analysis Panel for various types of data visualizations. The visualization tab helps you assign data elements from the underlying metric set to parts of the data visualization. Using the Data Analysis Panel and simple drag-and-drop operations, you can display data in the form of labels, headers, tooltips, colors, etc.
See Setting up the visualization to learn more about the visualization tab.
2. Chart visualizations
2.1. Grouping series in a bar chart
The SERIES GROUPING option of a series allows you determine whether a data point series is grouped into multiple series based on a hierarchy's values.
As an example, consider a metric set with the following data selected and visualized as a bar chart:
- MEASURES: OrderQty
- ROWS: OrderDate hierarchy
Click the Visualization button in the top-right corner of the Data Analysis Panel to switch to the Visualization tab. Under Series 1, click More to see additional options. Locate DATA POINT LABEL and SERIES GROUPING. Drag the Product hierarchy from the Explore window and drop it under each. The resulting bar chart shows a cluster of bars over each year, each with a bar for each value in the top level of the Product hierarchy.
2.2. Axis Labels
Axis labels can be used to display labels from upper levels of a hierarchy (e.g. Month grouping labels under Day labels) by dragging a hierarchy level from the Explore window, or to display measure values by dragging a measure.
2.3. Series Color
Series color can be used to apply different colors to data points or series based on measure or hierarchy values. Adding data under Color activates color rules, which you can configure from the Properties window. See Apply colors to data points or series using color rules for more details.
3. Table visualization
Consider the metric set with data selected as follows:
- MEASURES: OrderQty, LineTotal
- ROWS: OrderDate hierarchy
- COLUMNS: Product hierarchy
Despite terminology such as COLUMNS and ROWS, the metric set configuration is not specific to a table visualization. Rather, these metric set terms are describing how data will be selected and grouped into a tabular result, which may then be visualized a variety of ways, including as charts and tables. The figure below shows how this metric set is configured in the Data Analysis Panel, along with the corresponding table visualization.
Click the Visualization button in the top-right corner of the Data Analysis Panel to see the mappings of table elements to metric set elements (measures and hierarchies). In this case, options such as COLUMN HEADER, ROW HEADER, and COLUMNS refer to specific parts of the table visualization. For this particular example, these parts are mapped as follows:
- COLUMN HEADER - Maps to the Product hierarchy which is displayed as a row of table column headers above the table columns.
- ROW HEADER - Maps to the OrderDate hierarchy which is displayed as a column of table row headers positioned to the left of the table columns. Row headers are a special kind of column designed to visually group data appearing on the right, where cells with the same row hierarchy value are merged. Expanders are used in row headers to allow viewers to click to access the more detailed results making up that row in a lower hierarchy level.
- COLUMN - Maps to the OrderQty and LineTotal measures, each of which is displayed in its own table column. These two columns are repeated for each column hierarchy value (e.g., each Product hierarchy value).
In the above example, table columns are mapped to measures but you can also add hierarchies in order to display a regular column of hierarchy values rather than a row header column.
Each table column has settings such as header text, tooltip, appearance, state styles, and different column types, all of which you can further customize in the Properties window.
When you're setting up interactivity, such as hover-over interactions, you also have the option of targeting a specific table column (e.g. using the Bound visual option).
The Visualization tab also allows you to remove an element of the metric set from the visualization, or to restrict it to only a certain use. For example, a measure can be removed from under COLUMN so that it is not displayed directly in a column of the table, but added instead to the tooltip of some other column.