# Chart Area

Work with DsExcel to configure the chart area style by changing its font, format, and other attributes and set the chart area format in your worksheet.

## Content

In DsExcel .NET, you can use the properties of the [IChartArea interface](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.Drawing.IChartArea.html) to set up the chart area as per your preferences.

## Configure Chart Area Style

You can configure the chart area style by changing its font, format and other attributes using the [Font property](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.Drawing.IChartArea.Font.html), [Format property](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.Drawing.IChartArea.Format.html) and [RoundedCorners property](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.Drawing.IChartArea.RoundedCorners.html) of the IChartArea interface.
Refer to the following example code to configure chart area style in your worksheet.

```csharp
// Configure chart area style
GrapeCity.Documents.Excel.Drawing.IShape shape = worksheet.Shapes.AddChart(GrapeCity.Documents.Excel.Drawing.ChartType.ColumnClustered, 250, 20, 360, 230);
worksheet.Range["A1:D6"].Value = new object[,]
{
    {null, "S1", "S2", "S3"},
    {"Item1", 10, 25, 25},
    {"Item2", -51, 36, 27},
    {"Item3", 52, 60, -30},
    {"Item4", 22, 65, 65},
    {"Item5", 23, 69, 69}
};

shape.Chart.SeriesCollection.Add(worksheet.Range["A1:D6"], GrapeCity.Documents.Excel.Drawing.RowCol.Columns, true, true);
GrapeCity.Documents.Excel.Drawing.IChartArea chartarea = shape.Chart.ChartArea;

// Format
chartarea.Format.Fill.Color.RGB = Color.LightGray;
chartarea.Format.Line.Color.RGB = Color.MediumSeaGreen;
chartarea.Format.Line.Weight = 1.5;

// Font
chartarea.Font.Color.RGB = Color.MediumSeaGreen;
chartarea.Font.Name = "Times New Roman";
chartarea.Font.Size = 12;
// Rounded corners
chartarea.RoundedCorners = true;
```

![](https://cdn.mescius.io/document-site-files/images/e333ad47-35da-43f9-a389-25433765f491/images/chart-area-style.png)