home User Guide Getting Started Help Center Documentation Community Training Certification
menu
close
settings
Looker keyboard_arrow_down
language keyboard_arrow_down
English
Français
Deutsch
日本語
search
print
Looker documentation will be moving to cloud.google.com in mid-2022!
All the information you rely on will be migrated and all docs.looker.com URLs will be redirected to the appropriate page.
Timeline chart options

Timeline charts help you visualize the relationship between groups of events and compare the timespans over which these events took place. A timeline visualization also works with numbers.

To use a timeline visualization, click the ellipsis (…) in the Visualization bar and choose Timeline. Click the gear in the upper right corner of the visualization tab to format your visualization.

This example shows the timespan between a customer’s first order date and the customer’s most recent order date. Each timespan is colored to indicate the number of orders that the customer has placed.

Timeline visualizations are based on fields in the Data section, and the fields must be in a particular order. Ignoring those fields that are hidden from the visualization, the timeline needs the following fields (in order from left to right):

Using timeline visualizations without dates

Timeline charts can be helpful for information other than dates. This example shows several airlines, each with a bar where:

The magnitude coloring helps illustrate that although an airline may have a large difference between its on-time flight count and its total flight count, it may have a good on-time percentage. For example, Southwest has a wide bar but also has the best percentage of on-time flights, as shown by the purple bar showing its on-time percentage. You can hover over a bar to see the data that the bar represents, including:

Displaying individual or multiple bars per row

If you turn on Group Bars by Label, all records that share the same label value appear as individual bars on the same row in the visualization. For example, the data below has a label field indicating the age tier. Each age tier has only one row in the visualization, with one or more records displayed as bars on that age tier’s row:

You can also display each record bar on its own row by turning off the Group Bars by Label option. In this case, the visualization will have multiple rows with the same label value:

Using colors

For timeline visualizations, the color of a bar can mean different things, depending on your data:

Below are two different visualizations of the same customer data. The data includes a detail field (Traffic Source) and a magnitude field (Lifetime Orders).

This example uses continuous palette. Since you have a magnitude field, the color continuum indicates the magnitude. The legend shows how many lifetime orders the colors on each end of the color continuum represent:

This example uses a categorical palette; the colors indicate the values in the detail field. The legend shows which traffic source is represented by each color:

If you remove both the detail and magnitude fields, the colors cycle through the palette chosen in the visualization options:

Options

Bar Colors

You can define the color palette for a chart.

Selecting a color collection and palette

A collection lets you create themed visualizations and dashboards that look good together. All of Looker's built-in color collections appear on the Color collections documentation page. Your Looker admin may also create a custom color collection for your organization.

You can choose a color collection from the Collection drop-down menu. The Palette section will update with a palette from your chosen color collection. To change to a different palette in the color collection, click the color palette, which opens the palette picker. From there, you can view and select from all palettes in the collection.

Choosing the type of palettes

If you use a sequential or diverging palette, each bar is colored on a scale along the palette. If you change to a categorical palette (a palette composed of multiple individual colors), colors are assigned to each bar in order. The first bar is assigned the first color, and so on. If there are more bars than colors listed, the colors repeat from the beginning of the palette.

Creating a custom color palette

To create a custom color palette, first select the Custom tab on the palette picker. You can edit your palette in several ways:

To change a selected color, or edit all colors at once, you can input hex strings, such as #2ca6cd, or CSS color names, such as mediumblue, into the color value box at the bottom of the menu.

You can also click the color wheel to the right of the color value box to bring up a color picker, which you can use to select a color. The corresponding hex value for that color appears in the color value box:

If you click EDIT ALL, the color value box populates with all hex codes of the color palette you've chosen or customized. Copying and pasting this list is the best way to copy custom color palettes from one chart to another.

Reverse Colors

You can reverse the colors used on a palette. For a sequential or diverging palette, each bar is colored on a scale along the palette in reverse order, starting with the color at the right end of the palette and moving to the left. For a categorical palette, this would apply the colors in the palette to each bar in reverse order, starting with the last color in the palette.

Group Bars by Label

You can determine whether a visualization should display each record bar in its own row, or if the record bars for each label value should all be in the same row. See Displaying Multiple Bars per Row.

Label Size

You can set the font size for labels, from Tiny to Huge.

Value Format

You can specify the number or date format of a value using Excel-style formatting. If no formatting is specified, the value displays in the format of the underlying dimension or measure.

MS Excel’s complete guidedescribes how to specify these formats. However, color formatting is not currently supported in Looker.

The Adding custom formatting to numeric fields documentation page provides more information on how to use custom formatting.

You can specify the formatting of date values. Common formatting options are:

Date Format Meaning
m Month as a number with no leading zero. May is shown as "5".
mm Month as a number with a leading zero when appropriate. May is shown as "05".
mmm Month as an abbreviation (Jan to Dec).
mmmm Month as a full name (January to December).
mmmmm Month as a single letter (J to D).
d Day as a number without a leading zero.
dd Day as a number with a leading zero when appropriate.
ddd Day as an abbreviation (Sun to Sat).
dddd Day as a full name (Sunday to Saturday).
yy Year as a two-digit number.
yyyy Year as a four-digit number.
h Hour as a number without a leading zero.
hh Hour as a number with a leading zero when appropriate. If the format contains AM or PM, the hour is based on the 12-hour clock. Otherwise, the hour is based on the 24-hour clock.
m Minute as a number without a leading zero.
NOTE: The m must appear immediately after the h or hh element or immediately before the s or ss element (otherwise, it will be interpreted as month instead of minutes).
mm Minute as a number with a leading zero when appropriate.
NOTE: The mm must appear immediately after the h or hh element or immediately before the s or ss element (otherwise, it will be interpreted as month instead of minutes).
s Second as a number without a leading zero.
ss Second as a number with a leading zero when appropriate. If you want to display fractions of a second, use a number format that resembles h:mm:ss.00.
am/pm, a/p Hour using a 12-hour clock. Excel displays "AM" or "A" for times from midnight until noon and "PM" or "P" for times from noon until midnight.

Show Legend

You can display or hide a legend at the bottom of the visualization.

Viewing timeline charts in the new dashboard experience

When you view timeline charts in Looker’s new dashboard experience, they may appear slightly different than when you view them as Looks, as Explores, or in legacy dashboard tiles. This example shows what a timeline chart looks like when viewed on a dashboard tile:

When you hover over a bar to see the data that bar represents, the data appears as a pop-up tooltip rather than embedded within the bar.

If you click Explore from Here on a timeline chart dashboard tile, or if you open the edit window for a timeline chart tile, you may see the Look version of the timeline chart.

If your Looker admin has enabled the New Explore Visualizations Labs feature, timeline visualizations appear in the dashboard style when you view them in Explores, Looks, or embedded content; or when you click Explore from Here, or open the edit window of a dashboard tile.

Top