A color collection is a set of coordinating palettes that work well together. Looker contains 15 built-in color collections, which lets users create themed visualizations and dashboards.
Each collection contains categorical, sequential, and diverging palette types. When you create a new visualization and select a color collection, Looker defaults to the palette type that works best for that type of visualization. However, you can change to a different palette in the collection or make edits to the palette you're using.
Looker admins can set a default color collection for all visualizations. Admins can also create custom color collections.
Color collection IDs
Color collection IDs and palette IDs can be used in LookML dashboards to apply colors to various parts of visualizations. Collection IDs and palette IDs for any new custom color collections are based on each collection's name. This lets LookML dashboards that use those collections render consistently across instances if both instances have the same custom collections named identically.
For example, a custom color collection with the name Company Custom Colors would have the following IDs:
- collection ID:
company-custom-colors
- categorical palette ID:
company-custom-colors-categorical-0
- sequential palette ID:
company-custom-colors-sequential-0
- diverging palette ID:
company-custom-colors-diverging-0
Because IDs are based on collection names, no two collections on a single instance can have the same name. Additionally, the collection ID and palette IDs don't change if a color collection's name is changed.
Looker's built-in color collections receive instance-specific alphanumeric IDs.
Looker's color collection palettes
Each color collection contains categorical, sequential, and diverging palettes.
- Categorical palettes are useful for illustrating the differences between series when the data isn't inherently ordered.
- Sequential palettes are useful for visualizing ordered or numeric data that spans from low to high values.
- Diverging palettes are useful for displaying data that has a meaningful or neutral central value, such as zero, with positive and negative values on either side.
The Dalton color collection accommodates various forms of color vision deficiency.