Skip to main content

Legend and colors

Overview​

A widget legend is essential for creating clear and understandable visual data representations, enhancing the usability and effectiveness of the entire dashboard. Use your widget legends to:

  • Clarify data representation

  • Enhance data understanding and usability

  • Help users understand how to read and interact with the dashboard effectively

This document explains how to customize legends for all types of widgets supported by Coralogix, how to control the colors a widget gives its data series, and how to apply additional actions to enhance the data exploration capabilities.

Legend settings​

Configure a widget legend to appear at the side or bottom of your widget, show or hide it, and select which value columns it displays.

  1. Select the ellipsis (…) at the top right corner of your widget and select Legend Settings.

  2. Select the legend location (Side or Bottom) or hide it. Alternatively, set it to Auto to let the UI determine the best placement: the legend appears at the bottom on compact widgets and at the side on wider widgets.

    Line chart widget's more actions menu open on Legend Settings, showing the Side, Bottom, Auto, and Hide placement options

  3. Select which value columns to display. The available columns depend on the widget type: line charts offer Min, Max, Sum, Avg, and Last, while some widgets, such as bar charts, offer a single Value column. Value columns are available for both Side and Bottom legends, and Coralogix keeps your column selection when you switch between placements.

    Legend Settings submenu with the value column checkboxes Min, Max, Sum, Avg, and Last beside the placement options

Drag the inner edge of a side legend to resize its width. Double-click the same edge to discard the custom width and return the legend to automatic sizing. The width is stored in your browser per widget, so it persists across reloads until you reset it.

Bottom legend layout​

A bottom legend adapts to whether you display value columns:

  • Condensed: the default when a legend has no value columns. Legend entries wrap across one or more rows beneath the chart. When entries overflow, select Show More... to expand the full, scrolling list, then Show Less... to collapse it.

  • Expanded table: applied when a legend has one or more value columns. Entries appear in a vertical table beneath the chart, with column headers and a Select all row. The table displays up to three rows before it scrolls, so the legend never overtakes the chart area.

    Line chart widget with a bottom legend in expanded-table layout, showing Name, Min, Max, Sum, Avg, and Last columns with a Select all row

Search the legend​

Side legends include a search bar above the series list, whatever the number of series. Bottom legends don't. A bottom legend is a full-width strip under the chart, so it renders the same way it did before search existed.

Type to filter legend entries by series name. Only matching entries are shown, and Select all applies to the filtered results only. The count beside Select all shows the total number of series when no search is active, and switches to selected/filtered while you type. For example, 2/15.

When a widget has more than one query, each query group gets its own search bar and filters independently.

Side legend for two queries, each showing a search bar above its series list and a Select all row with the series count

Sort the legend​

When a legend displays value columns, select any column header (Name, Min, Max, Sum, Avg, or Last) to sort the entries by that column. Select the same header again to reverse the order, and a third time to restore the original order. Sorting on Name is case-sensitive or case-insensitive, depending on your team's Default sorting mode.

Note

Legend sorting applies to the current view and isn't saved with the dashboard. When you reload the dashboard, the legend returns to its default order.

Hide/show data series​

In complex charts or graphs with multiple data series, you can remove unnecessary entries to achieve a cleaner and more focused dashboard.

  1. In your widget legend, select a data series to display it or unselect it to hide. When hidden, the data series is removed from the view, but not from the underlying data.

  2. Select Select all to display all series, or unselect it to hide all of them.

    Line chart of logs count grouped by subsystem, with a side legend listing four series above a Select all row

Your selection is saved with the dashboard, not just with your browser, so it counts as an unsaved change until you save. Once saved, everyone opening the dashboard sees the same series hidden.

If you change the widget's query or its group-by fields, the selection resets and all series become visible again, because the previous series may no longer exist.

Note

This is different from the legend's width and sort order. A resized legend is remembered per widget in your browser only, and sorting applies to the current view and is not saved at all.

Advanced data series actions​

  1. Hover over a data series and select the ellipsis (…).

  2. In the context menu, the following actions are available:

    • Filter out - Exclude data series from the query. This action is applied to all widgets related to the same data source.

    • Filter in - Include data series into query. This action is applied to all widgets related to the same data source.

    • Open Explore - Create a log or span query on the Explore page, based on the widget conditions, such as timeframe, query, and filters. This option is relevant for widgets that use logs or spans as their data sources. Explore opens on the same data tier the widget reads from, so a widget set to load data from Frequent Search opens on frequentsearch/logs or frequentsearch/spans rather than on the archive tier.

    • Create alert - Create an alert based on data series, where applicable

    • Copy name - Copy data series name

Note

You may also access the actions menu by selecting the widget.

Bottom legend of severity series with the Warning entry's actions menu open on Filter out, Filter in, Open Explore, Create alert, and Copy name

Widget colors​

To control how a widget assigns colors to its data series, set Coloring method in the widget's settings to one of two options:

  • Color scheme: Assigns colors from a palette you select.
  • Color hashing: Derives each color from the series name, so the same name keeps the same color everywhere.

You can also set a per-series color override.

The color settings of Heatmaps and Geomaps widgets take their colors from the palette and thresholds in their own settings.

Color hashing​

When viewing multiple widgets on a dashboard, it’s important to maintain visual continuity, so that a data series, like eu-west-1, always appears in the same color across charts. Color hashing ensures consistent color assignment for string-based values (such as service names, host names and labels) across visualizations.

The example below shows two different charts both displaying AWS region values with color hashing applied. Notice how each region keeps the same color in both visualizations. This helps users instantly correlate regions between widgets, even when the chart types differ.

Two charts of AWS region values with color hashing applied, each region keeping the same color in both

Let’s say you're visualizing CPU usage grouped by Kubernetes node. With color hashing enabled, each node keeps its own color consistently across all bar charts, line charts, and pie charts on your dashboard.

Select the widget to open its Settings panel, then scroll to the LEGEND MANAGEMENT section and set Coloring method to Color hashing. With widget edit mode, first switch the widget to edit mode to reach its settings.

Coloring method set to Color scheme, with Color hashing as the other option, in the legend management settings

Colors are assigned deterministically from a fixed palette based on the string value of each data series. This behavior applies to any string-based grouping, such as regions, services, or Kubernetes nodes. These color mappings are consistent across all widgets that display the same data series strings and use color hashing. You can set the coloring method individually for each widget. The assigned colors appear in the legend next to their corresponding data series and are reflected in the chart visualization.

If the number of unique data series in the widget exceeds the available colors in the palette, colors are reused. To give a particular value a color of its own, set it yourself.

Per-series color override​

A custom color attaches to a value of the field the widget is colored by, rather than to a position in the chart, so the value keeps its color as the data changes.

Colors are set per value, not per series, so every series carrying the value takes that color, each in its own shade. This remains true when stacking series.

From the legend:

  1. Hover over a data series and select the ellipsis (…).
  2. Select Set color.
  3. Select a color from the palette.

Color palette open from a legend series Set color menu, with the Apply to all widgets on this dashboard checkbox beneath it

From the widget settings:

  1. Select the widget to open its Settings panel, then scroll to the LEGEND MANAGEMENT section. With widget edit mode, first switch the widget to edit mode.
  2. Under Color customization, find the value you want to color. Use Search values to filter a long list.
  3. Select the color swatch beside the value, then select a color from the palette.

Color customization in the legend management settings, listing each group-by value with its color swatch above a Search values box

To apply that color to every widget on the dashboard that has the same value, select Apply to all widgets on this dashboard.

Coralogix uses the first of these that applies:

  1. A color set directly on the widget.
  2. A color applied to the widget by another widget.
  3. The widget's default colors.

A widget's own custom color always wins, so applying a color to all widgets on the dashboard doesn't replace it.

To remove a custom color, use the reset control on the value's row under Color customization. The widget that applied the color to the dashboard owns it, so how far the removal reaches depends on which widget you remove it from:

Widget you remove it fromControlWhat it clears
The widget you set the color onReset to automaticThat color on that widget only.
The widget that applied the color to the dashboardReset widget overrideThe color on every widget that took it.
A widget that received the colorReset widget overrideThat widget only, leaving the others with the applied color.

Setting a color changes the dashboard, so it counts as an unsaved change until you select Save changes. Once saved, everyone opening the dashboard sees the same colors.

No single place lists every custom color on a dashboard. Manage each one from its widget or its legend.

Next steps​

Learn how to switch between visualizations in Custom Dashboards.

Last updated on