Skip to main content
The Color section in the Style tab controls two related things: how series are colored, and how they are stacked or grouped relative to each other. These settings apply to charts that color by a Color channel: bar, line, area, scatter, and heatmap. Chart types that color some other way, such as pie, funnel and sankey, pick their palette from a Palette dropdown of their own — but the palettes below are the same ones they offer.
Palette menu open under a series in the Style tab, listing Default, Cube and other built-in palettes

Color faceting

Mapping a field to the Color channel in the Fields tab creates one series per unique value in that field, each assigned a color from the active palette. How this field is typed affects the available options: For strings, only discrete bucketing is available. For dates and numbers, you can choose whether each value gets its own distinct color (discrete) or a gradient is applied across the range (continuous). If a date or numeric field only offers discrete options, try casting the field to the appropriate type.

Palettes

Discrete palettes

For discrete data, colors from the palette are applied in palette order, matching the sort order of the query results. Change the palette order by adjusting the sort in your query. Enable Reverse colors to reverse the order colors are applied.

Continuous (gradient) palettes

For continuous data, the gradient palette maps to the range of values in your results. Select a different gradient from the palette dropdown to change the color treatment.

Custom palettes

To use colors that no built-in palette offers, such as your brand colors, ask an admin to create a custom palette in Admin → Customization → Chart palettes. It needs the Manage chart palettes permission. The palette then appears in the palette menu of every chart in the account. See Chart palettes.

Series color controls

When no Color channel is assigned (single measure, no color-by), each series gets an individual color picker in the Series section of the Style tab. Click the color swatch next to a series to change its color.

Stacking options

The stacking behavior controls how multiple series at the same X-axis value are positioned relative to each other. The available modes:
Stacked bar chart with the Stacked button selected next to Break down by in the Fields tab

Per-series stacking

You can also set the placement of each series’ breakdown separately, to create grouped clusters of stacked sub-groups. See Stacking override.

Stacked segment sorting

When stacking is active, control how segments within each stack are ordered using Sort stack by:
The Value sorting option is only available for bar and column charts. For area and line charts, use Sum or Label.

Legend

The legend appears when a Color channel is assigned. A chart type without a Color channel decides for itself: a pie carries a legend regardless, a funnel starts without one, and a sankey has none to configure. Where a legend is offered, it uses the same Legend section:
Click a legend entry to show only that series. The axes rescale to it, and the other entries stay in the legend, dimmed. Click the same entry again to show all series. To show or hide one series without affecting the others, ⌘-click it on macOS or Ctrl-click it on Windows and Linux. The last visible series can’t be hidden. On a chart with several color legends, a click affects only the legend you click. What you show or hide isn’t saved: reloading the page or changing the chart’s fields or settings shows all series again.
Legend section of the Style tab with the bottom position selected, and the legend below the chart