# Setting the Plot Background

## Content



Setting the Plot background is an easy way to add some customization and contrast to your chart.

The following XAML markup allows you to set the background:

```xml
<c1:C1Chart.View>
    <c1:ChartView PlotBackground="#FF343434">
    </c1:ChartView>
</c1:C1Chart.View>
```

You can also set the **PlotBackground** property in code. Just specify your chart by name, and add the following code to the **InitializeComponent()** method:

```csharp
chart.View.PlotBackground = Brushes.BlueViolet;
```

## See Also

[Data Binding](/componentone/docs/wpf/online-chart/overview/ChartFeatures/DataBinding)