Skip to main content
All docs
V25.1
  • TreemapSeriesOptions Interface

    Contains options for treemap data series.

    Namespace: DevExpress.Spreadsheet.Charts

    Assembly: DevExpress.Spreadsheet.v25.1.Core.dll

    NuGet Package: DevExpress.Spreadsheet.Core

    Declaration

    public interface TreemapSeriesOptions

    The following members return TreemapSeriesOptions objects:

    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