Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SeriesLayoutOptions.Treemap Property

Returns options for a treemap data series.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

TreemapSeriesOptions Treemap { get; }

#Property Value

Type Description
TreemapSeriesOptions

An object that stores series options for a treemap chart.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Treemap
Series
.LayoutOptions .Treemap

#Remarks

The code sample below creates a treemap chart. Use the TreemapSeriesOptions.ParentLabelLayout property to specify the layout of parent labels in the chart. In this example, they are displayed as banners above the categories.

Treemap chart

// Create a treemap chart and specify its location.
Chart chart = worksheet.Charts.Add(ChartType.Treemap, worksheet["B2:E14"]);
chart.TopLeftCell = worksheet.Cells["G2"];
chart.BottomRightCell = worksheet.Cells["N17"];

// Specify series options.
var options = chart.Series[0].LayoutOptions.Treemap;
options.ParentLabelLayout = TreemapParentLabelLayout.Banner;

// Add the chart title.
chart.Title.Visible = true;
chart.Title.SetValue("Daily Food Sales");
See Also