# Use the chart legend

A legend displays to the right of most chart types. The legend's color coding matches the palette you select for your chart. The contents of the legend adjust according to the selected mode. If multiple measures are selected, they also display in the legend.

## Change the position of the legend <a href="#usethechartlegend-changethepositionofthelegend" id="usethechartlegend-changethepositionofthelegend"></a>

By default, the legend displays on the top right of each chart. You can use the **Legend position** setting to change where the legend displays or hide the legend from view.

<figure><img src="https://content.gitbook.com/content/itAvDF3MljQXV0rjHRP7/blobs/UxjX3u9cqkZA0Gv8Rt1B/3145827318.png" alt=""><figcaption></figcaption></figure>

## View property details <a href="#usethechartlegend-viewpropertydetails" id="usethechartlegend-viewpropertydetails"></a>

In the legend below, a group of customers has been focused on and the following properties selected: Name, Suburb and Postcode (zip). These properties display in the legend.&#x20;

<div align="left"><figure><img src="https://content.gitbook.com/content/itAvDF3MljQXV0rjHRP7/blobs/zMdovXNhc6NrhOc5JLv1/619323" alt="" width="217"><figcaption></figcaption></figure></div>

This information also displays when you hover over a chart segment.

<figure><img src="https://content.gitbook.com/content/itAvDF3MljQXV0rjHRP7/blobs/WbZkyV1ViZVp9SDOlwQX/619322.png" alt=""><figcaption></figcaption></figure>

## Select and focus on data <a href="#usethechartlegend-selectandfocusondata" id="usethechartlegend-selectandfocusondata"></a>

As well as being able to [select and focus on a chart segment](https://docs.phocassoftware.com/analytics/visualize-your-data-in-a-chart/select-and-focus-on-a-chart-segment), such as a bar, column or wedge, you can select and focus on items in your legend. Selected items have a solid colored circle and black text (Judy in the example below). Unselected items have a hollow colored circle and gray text.

<div align="left"><figure><img src="https://content.gitbook.com/content/itAvDF3MljQXV0rjHRP7/blobs/yHeoyDQTehl7QHf6EsCp/614531.png" alt="" width="170"><figcaption></figcaption></figure></div>

## Change the order of legend items <a href="#usethechartlegend-changetheorderoflegenditems" id="usethechartlegend-changetheorderoflegenditems"></a>

The order of items in the chart legend can be changed by sorting the respective columns in grid view.  <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.phocassoftware.com/analytics/visualize-your-data-in-a-chart/use-the-chart-legend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
