# Legend Position

## Content



You can use the <span data-popup-content="This property is available in \u003ca href=\u0022/componentone/api/wpf/online-flexchart/dotnet-api/C1.WPF.Chart/C1.WPF.Chart.FlexChartBase.LegendPosition.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/api/wpf/online-flexchart/dotnet-api/C1.WPF.Chart/C1.WPF.Chart.FlexChartBase.LegendPosition.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="LegendPosition" data-popup-theme="ui-tooltip-green qtip-green">LegendPosition</span> property to position the Legend relative to the Plot Area, as per your requirements.

The LegendPosition property can be set to any of the following values in the **Position** enumeration:

| **Property** | **Description** |
| --- | --- |
| **Position.Auto** | Positions the legend automatically. |
| **Position.Bottom** | Positions the legend below the plot. |
| **Position.Left** | Positions the legend to the left of the plot. |
| **Position.None** | Hides the legend. |
| **Position.Right (default value)** | Positions the legend to the right of the plot. |
| **Position.Top** | Positions the legend above the plot. |

Here is the code snippet for setting the property:

**csharp**

```csharp
flexChart.LegendPosition = C1.Chart.Position.Top;
```

![](https://cdn.mescius.io/document-site-files/images/8ba28e07-1633-4a6a-9114-13b9f1f04eed/images/imagesext/wpfflexchartlegendposition.png)