Skip to content

Working with Charts

Ad Hoc charts are a flexible, interactive way to explore your data graphically. You can choose different levels of aggregation for drop areas, change a field from a column to a row, pivot the entire chart, hide chart values, and zoom in to see chart details.

js AdHoc Chart Example

Figure 1 Ad Hoc Editor’s Chart View for old layout band

Adhoc chart

Figure 2 Ad Hoc Editor’s Chart View for new layout band

The following sections explain how to populate, edit, and format an Ad Hoc chart. Many tasks related to working with charts are identical (or very similar) to those for tables and crosstabs. For any tasks not discussed in this section, see the information in Working with Tables.

Using Fields and Measures in Charts

You must add at least one measure to view a chart. Before any measures are added to the chart, the Ad Hoc Editor displays a placeholder with the legend displaying a single entry: Add a measure to continue. As you add measures, the editor displays the grand total of each measure in the chart.

The initial display reflects only the measures you add. It does not change when you add fields or dimensions. For example, for each measure you add to a bar chart, you see a bar with the total value of the measure, regardless of how many fields you add. This means you can add, remove, and arrange measures and fields without waiting for the display to update. Once you have the fields and measures you want, you can use the sliders on the right to select the level of detail you want. See “Effect of the Slider on a Chart” for more information.

All available fields are listed in the Data Selection panel, as either standard fields or measures.

  • Standard fields can be added as:

    • For Old Layout Band, to a column or row.
    • For New Layout Band, to the supported drop areas according to the visualization type selected.
  • Measures contain summarized values. They are typically numeric fields that determine the length of bars, size of pie slices, location of points (in line charts), and height of areas. They can be added to the drop areas, but must all be in the same target — that is:
    In Old Layout Band you can add one or more measures to the chart as columns, or add one or more measures to the chart as rows, but you cannot have one measure as a column and another as a row in the same chart.
    In New Layout Band, for example in Column chart you can add fields to Y-axis and/ or Columns, and add one or more measures to the Y-axis, but you cannot add measures to the Columns.

When creating a chart, keep in mind that the drop areas are arranged in hierarchies, with the highest member of the hierarchy on the left. For an Ad Hoc view based on an OLAP data source, you can change the order of distinct dimensions by dragging, but you cannot change the order of levels within a dimension. For an Ad Hoc view based on a non-OLAP data source, you can drag the field headings to rearrange the hierarchy; the highest level in a group should appear to the left; the lowest level in a group should appear to the right. For example, it doesn’t make sense to group first by postal code then by country, because each postal code belongs to only one country.

To add a field or measure to a row or column, for Old Layout Band:

  1. In the Data Selection panel, select the field you want to add to the chart as a group. Use Ctrl-click to select multiple items.
  2. Drag the selected item into the Columns or Rows box in the Layout Band.

To add a field or measure to a supported drop areas, for New Layout Band:

  1. In the Data Selection panel, select the field you want to add to the chart as a group. Use Ctrl-click to select multiple items.
  2. Drag the selected item into the supported drop areas according the visualization type selected.

Setting Levels

When you add a field or dimension to the drop areas, a multi-level slider located at the top of the Filters pane allows you to set the level of aggregation to use for viewing the data.
In Old Layout Band, the Data levels are rows and columns.
In New Layout Band, the Data levels are the drop area that corresponds to the visualization type you select.
The number of fields or dimensions in the drop areas, for example rows or column for any chart in Old Layout band, and Bars or X-axis, for Bar chart in New Layout Band, determines the number of levels on the slider. Measures are not reflected in the slider.

Note

You cannot adjust levels on time series charts.

In Old Layout Band, the following figure shows the effect of the slider on a chart with one level of aggregation for both rows and columns.

 

Columns

js AdHoc Charts SliderLevel0

Columns

js AdHoc Charts SliderLevel1

Rows

js AdHoc Charts SliderLevel0

js AdHoc Charts Slider

js AdHoc Charts Slider Columns

Rows

js AdHoc Charts SliderLevel1

js AdHoc Charts Slider Rows

js AdHoc Charts Slider RowsColumns

Figure 3 Effect of the Slider on a Chart (Old Layout Band)

In New Layout Band, the following figure shows the effect of the slider on a chart with one level of aggregation for both Y-axis and Columns for Column chart.

Y-axis

js AdHoc Charts SliderLevel0

Y-axis

js AdHoc Charts SliderLevel1

Columns

js AdHoc Charts SliderLevel0

js adhoc levels1

js adhoc levels3

Columns 

js AdHoc Charts SliderLevel1

js adhoc levels2

js adhoc levels4

Figure 4 Effect of the Slider on a Chart (New Layout Band)

Data Level Mappings for New Layout band

Visualization Group

Visualization Type

Data Levels in Old Layout Band Data Levels in New Layout Band Mapping Old Layout Band drop areas to New Layout Band drop areas Drill down supported drop areas

Data Grid

Cross-tab None None

Columns → Y-axis

Rows → Columns

Does not support drill down.
  Table None None

Columns →Y-axis

Rows → Columns

Does not support drill down.
Column & Bar Column
  • Columns

  • Rows

  • Y-axis

  • Columns

Columns → Y-axis Rows → Columns Columns
  Stacked Column

Columns

Rows

Y-axis

Columns

Columns → Y-axis Rows → Columns Columns
  Percent Column

Columns

Rows

Y-axis

Columns

Columns → Y-axis Rows → Columns Columns
  Bar

Columns

Rows

  • X-axis

  • Bars

Columns → X-axis Rows → Bars Bars
  Stacked Bar

Columns

Rows

  • X-axis

  • Bars

Columns → X-axis Rows → Bars Bars
  Percent Bar

Columns

Rows

  • X-axis

  • Bars

Columns → X-axis Rows → Bars Bars
  Spider Column

Columns

Rows

  • Radial axis

  • Columns

Columns → Columns Rows → Radial axis Radial axis
Line & Area Line

Columns

Rows

  • X-axis

  • Lines

Columns → Lines Rows → X-axis X-axis
  Spline

Columns

Rows

  • X-axis

  • Lines

Columns → Lines Rows → X-axis X-axis
  Area

Columns

Rows

  • X-axis

  • Areas

Columns → Areas Rows → X-axis X-axis
  Stacked Area

Columns

Rows

  • X-axis

  • Areas

Columns → Areas Rows → X-axis X-axis
  Percent Area

Columns

Rows

  • X-axis

  • Areas

Columns → Areas Rows → X-axis X-axis
  Area Spline

Columns

Rows

  • X-axis

  • Areas

Columns → Areas Rows → X-axis X-axis
  Spider Line

Columns

Rows

  • Radial Axis

  • Line

Columns → Lines Rows → Radial axis Radial Axis
  Spider Area

Columns

Rows

  • Radial Axis

  • Area

Columns → Areas Rows → Radial axis Radial Axis
Dual & Multi Axis

Column Line

  • Rows

  • X-axis

Columns → Columns/Line Rows → X-axis X-axis
  Column Spline
  • Rows

  • X-axis

Columns → Columns/Line Rows → X-axis X-axis
  Stacked Column Line
  • Rows

  • X-axis

Columns → Columns/Line Rows → X-axis X-axis
  Stacked Column Spline
  • Rows

  • X-axis

Columns → Columns/Line Rows → X-axis X-axis
  Multi Axis Line
  • Rows

  • X-axis

Columns → Lines
Rows → X-axis
X-axis
  Multi Axis Spline
  • Rows

  • X-axis

Columns → Lines
Rows → X-axis
X-axis
  Multi Axis Column
  • Rows

  • X-axis

Columns → Columns Rows → X-axis X-axis
Time Series Time Series Line  
  • Lines

Columns → Lines
Rows → Time axis
Does not support drill down.
  Time Series Spline  
  • Lines

Columns → Lines
Rows → Time axis
Does not support drill down.
  Time Series Area  
  • Area

Columns → Areas
Rows → Time axis
Does not support drill down.
  Time Series Area Spline  
  • Area

Columns → Areas
Rows → Time axis
Does not support drill down.
Scatter & Bubble Scatter  
  • Values

  • Color by

Columns → X-axis/Y-axis/Color by
Rows → Values
Values
  Bubble  
  • Values

  • Color by

Columns → X-axis/Y-axis/Size/Color by
Rows → Values
Values
Pie Pie  
  • Slices

  • Multiples

Columns → Multiples Rows → Slices Slices
  Dual-level Pie
  • Data Level

  • Data Level

Columns → Value
Rows → Levels
Does not support drill down.
  Semi-Pie  
  • Slices

  • Multiples

Columns → Multiples Rows → Slices Slices
Range Heat Map  
  • X-axis

  • Y-axis

Columns → Value/X-axis Rows → Y-axis Does not support drill down.
  Time Series Heat Map None None Columns → Value
Rows → Time axis
Does not support drill down.
  Dual-Measure Tree Map None None Columns → Size/Color Rows → Category Does not support drill down.
  Tree Map   Category Columns → Size
Rows → Category

Category

**Note** It has built-in drill down.

  Parent Tree Map   Category Columns → Size
Rows → Category

Category

**Note** It has built-in drill down.

Gauge Gauge   Multiples Columns → Values (measures)/Multiples (fields)
Rows → Unused
Does not support drill down.
  Multi-Level Gauge   Multiples Columns → Values (measures)/Multiples (fields)
Rows → Unused
Does not support drill down.
  Arc Gauge   Multiples Columns → Values (measures)/Multiples (fields)
Rows → Unused
Does not support drill down.

To recreate this view

  1. Select Create > Ad Hoc View.

  2. In the Select Data wizard, select foodmart data for crosstab and click OK.

  3. Click js icon column simple to open the Visualization Selector.

  4. Click js AdHoc icon chart column and then Apply and Close.

  5. Drag the following from the Fields panel to the Layout Band:

    • Store Sales from Measures to Columns. The view changes to show a column with the total. No slider is added for measures.
    • Product Family from Fields to Columns. The Data Level area is shown in the Filters panel, with a Columns slider added.
    • Date from Fields to Rows. A Rows slider is added to the Data Level area in the Filters panel.
  6. Use the sliders to see how the view changes.
    The sliders help you explore your data visually in a number of ways:

    • The slider reflects the hierarchy of the row or column groups, as determined by the order in which fields are arranged in the Layout Band.
    • Hovering over a setting on the slider shows the name of the field or dimension corresponding to that setting.
    • When you pivot a chart, slider settings are preserved and applied to the new target. For example, if you have the Row slider set to Month, the Column slider is set to Month when you pivot. See Pivoting a Chart for more information.
    • When you remove the currently selected level from a row or column, the slider is reset to the total; when you remove a field that is not selected, the level remains the same. When you add a field or dimension to a row or column, the number of levels of the slider changes to reflect your addition. When you change the order of the fields in a row or column, the level on the slider changes to reflect the new level of the field corresponding to the selection.

Changing Date Grouping

If your chart includes data based on a date field, you can change the level of aggregation for the time data. To select the unit of time to chart:

  • Right-click on the date field in the Layout Band and select Change Grouping. Then select the time period you want from the cascading sub-menu:

    • Year

    • Quarter (examples: Q1, Q2, etc.)

      Note

      Quarter groups the data by quarter through the whole selected period. For example, if the period has 2 years selected, then you will see 4 quarters (Q1, Q2, Q3, Q4) and data for each year will be grouped under these 4 quarters regardless of the year it belongs to. When Quarter is the only categorizer used, the sorting order will always start from the first quarter. Also, if there is no data for a specific quarter then this quarter will still be visible with no data.

  • Quarter and Year (examples: Q1 2020, Q2 2020, etc.)

    Note

    As of version 9.0, Quarter is renamed to Quarter and Year. Quarter and Year groups the data by quarter and year. For example, if the period has 2 years selected, then you will see potentially 8 quarters (for example, Q1 2020, Q2 2020, Q3 2020, Q4 2020, Q1 2021, Q2 2021, Q3 2021, Q4 2021), and data for each year will be grouped under its own quarter which will take into account the year as well. Also, if there is no data for a specific quarter, then this quarter will not be visible.

This date is required in order to create PeriodToPeriod (PTP) and YearToDate (YTD) charts.

  • Month (examples: January, February, etc.)

  • Month and Year (examples, January 2020, February 2020, etc.)

    Note

    As of version 9.0, Month is renamed to Month and Year. This date is required in order to create PeriodToPeriod (PTP) and YearToDate (YTD) charts.

  • Day

  • Hour

  • Minute

  • Second

  • Hour By Day

  • Minute By Day

  • Second By Day

  • Millisecond By Day

  • Day of Week

The view updates to reflect the new date grouping.

Note

Time Series charts can use only day, or smaller, intervals.

Changing the Summary Function of a Measure

You can get a new view of your data by changing the summary function of a measure, for example, from sum to average. To select a new summary function for a measure:

  • Right-click on the measure in the Layout Band and select Change Summary Function. Then select the function you want from the cascading submenu. The view updates to reflect the new summary function.

Pivoting a Chart

You can pivot a chart in two ways:

  • Pivot the entire chart by clicking js AdHoc SwitchGroup. The row and column groups switch places; slider levels are maintained. The following figure shows the effect of pivoting a basic column chart.

js AdHoc Charts Pivot

Figure 5 Effect of Pivoting a Chart

Note

Pivoting a chart is only possible in the Old Layout Band, the New Layout Band does not allow pivoting an entire chart.

  • Pivot a single group:
    For Old Layout Band

    • To pivot a single row group, right-click it and select Switch To Column Group. You can also move any field or dimension by dragging. You cannot drag a measure to a different group.
    • To pivot a single column group, right-click it and select Switch To Row Group. You can also move any field or dimension by dragging. You cannot drag a measure to a different group.

    For New Layout Band

    • To pivot a single group, click Adhoc icon icon and select Move to <drop_area_name>. You can also move any field or dimension by dragging. You cannot drag a measure to a different group.

    Note

    In the Move to <drop_area_name> option, the drop_area_name depends on the visualization type you select.