# Legend

The Legend component is used along with other charts if the user needs a checkbox legend.

#### Default Component Image:

<div align="left"><img src="/files/112IrIhzMuA2AvxSl7AI" alt=""></div>

#### Properties of the Legend:

* **Background:** The user can change the background color and adjust its transparency. Also, the border can be provided and the user can adjust its color and radius. The user can get the reflection of the chart by enabling the shadow option can also change the color and increase & decrease the transparency of the shadow.
* **General:** The user can change the height, width, top, left.
* If initial visibility is not enabled, then the chart won’t be available for the first preview.
* If ‘Show Checkbox’ is enabled, then a check box can be seen along with the legend values.
* First, the user needs to make the connection between the legend and the Chart by connecting them in the ‘Associate Chart’ section. The user can adjust legend orientation and shape.
* **Style:** The user can set the background color and font color as well as font style-weight-family etc in this section.

#### General Properties:

<div align="left"><img src="/files/AZtuaQ13ePl9QkEfaMP4" alt=""></div>

#### Style Properties:

<div align="left"><img src="/files/3fAciAPN5IWCUd1QFWAT" alt=""></div>

#### Modified Legend after changing its properties:

#### Horizontal Legend:

![](/files/UOSWpGVcZWKe1T08Iiyz)

#### Vertical Legend:

![](/files/etakYuLTff9T7fGXNXZV)


---

# 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.bdb.ai/bdb-documentation/data-visualization/governed-dashboards/charts-gallery/other-charts/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.
