Skip to main content
This allows you to maintain consistent coloring for dimension values across visualizations, whether they’re on the same dashboard or on different dashboards.
You can also model colors for measures!

Syntax

<dimension_name>:
  colors:
    conditions:
      - condition:
          is: <value>
        color: <color>
    else: <fallback_color>

Properties

dimension_name
object
The name of the dimension. Dimension names must:
  • Be unique within the view
  • Start with a letter
  • Contain only alphanumeric characters and underscores

Examples

Multiple color conditions
status:
  order_by_field: status_order
  colors:
    conditions:
      - condition:
          is: Complete
        color: green
      - condition:
          is: Processing
        color: rgb(0, 0, 255)
      - condition:
          is: Pending
        color: rgba(0, 0, 255, 0.3)
      - condition:
          is: Shipped
        color: hsl(120, 100%, 50%)
      - condition:
          is: Cancelled
        color: "#000000"
    else: red
Simple color mapping
priority:
  colors:
    conditions:
      - condition:
          is: High
        color: red
      - condition:
          is: Low
        color: green
    else: gray