# ChartTreemapOptions

Controls hierarchical treemap interiors and their independent numeric color legend.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartTreemapOptions.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L10)

**Modifiers**

sealed

**Attributes**

 `Fluent(Copy = "Clone")` 

Controls hierarchical treemap interiors and their independent numeric color legend.

## Inheritance

- object
- ChartTreemapOptions

## Usage

 Explore 41 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 17

- Property [ChartOptions.Treemap](/api/chartforgex-core-chartoptions/#property-treemap)
- Extension method [ChartTreemapOptions.ColorDimension](/api/chartforgex-core-charttreemapoptions/#extension-colordimension-chartforgex-core-charttreemapoptions-action-chartforgex-core-chartcolordimensionoptions)
- Extension method [ChartTreemapOptions.ColorScale](/api/chartforgex-core-charttreemapoptions/#extension-colorscale-chartforgex-core-charttreemapoptions-chartforgex-core-chartcolorscale)
- Extension method [ChartTreemapOptions.Gap](/api/chartforgex-core-charttreemapoptions/#extension-gap-chartforgex-core-charttreemapoptions-double)
- Extension method [ChartTreemapOptions.GroupPadding](/api/chartforgex-core-charttreemapoptions/#extension-grouppadding-chartforgex-core-charttreemapoptions-double)
- Extension method [ChartTreemapOptions.LabelTrimming](/api/chartforgex-core-charttreemapoptions/#extension-labeltrimming-chartforgex-core-charttreemapoptions-chartforgex-typography-texttrimming)
- Extension method [ChartTreemapOptions.MinimumLabelFontSize](/api/chartforgex-core-charttreemapoptions/#extension-minimumlabelfontsize-chartforgex-core-charttreemapoptions-nullable-system-double)
- Extension method [ChartTreemapOptions.ShowGroupLabels](/api/chartforgex-core-charttreemapoptions/#extension-showgrouplabels-chartforgex-core-charttreemapoptions-boolean)
- Extension method [ChartTreemapOptions.ShowValues](/api/chartforgex-core-charttreemapoptions/#extension-showvalues-chartforgex-core-charttreemapoptions-boolean)
- Method [ChartTreemapOptionsFluent.ColorDimension](/api/chartforgex-core-charttreemapoptionsfluent/#method-colordimension-chartforgex-core-charttreemapoptions-action-chartforgex-core-chartcolordimensionoptions)
- Method [ChartTreemapOptionsFluent.ColorScale](/api/chartforgex-core-charttreemapoptionsfluent/#method-colorscale-chartforgex-core-charttreemapoptions-chartforgex-core-chartcolorscale)
- Method [ChartTreemapOptionsFluent.Gap](/api/chartforgex-core-charttreemapoptionsfluent/#method-gap-chartforgex-core-charttreemapoptions-double)
- Method [ChartTreemapOptionsFluent.GroupPadding](/api/chartforgex-core-charttreemapoptionsfluent/#method-grouppadding-chartforgex-core-charttreemapoptions-double)
- Method [ChartTreemapOptionsFluent.LabelTrimming](/api/chartforgex-core-charttreemapoptionsfluent/#method-labeltrimming-chartforgex-core-charttreemapoptions-chartforgex-typography-texttrimming)
- Method [ChartTreemapOptionsFluent.MinimumLabelFontSize](/api/chartforgex-core-charttreemapoptionsfluent/#method-minimumlabelfontsize-chartforgex-core-charttreemapoptions-nullable-system-double)
- Method [ChartTreemapOptionsFluent.ShowGroupLabels](/api/chartforgex-core-charttreemapoptionsfluent/#method-showgrouplabels-chartforgex-core-charttreemapoptions-boolean)
- Method [ChartTreemapOptionsFluent.ShowValues](/api/chartforgex-core-charttreemapoptionsfluent/#method-showvalues-chartforgex-core-charttreemapoptions-boolean)

### Accepted by parameters 24

- Extension method [Chart.Treemap](/api/chartforgex-core-chart/#extension-treemap-chartforgex-core-chart-action-chartforgex-core-charttreemapoptions) parameter `configure`
- Extension method [Chart.Treemap](/api/chartforgex-core-chart/#extension-treemap-chartforgex-core-chart-chartforgex-core-charttreemapoptions) parameter `value`
- Method [ChartFluent.Treemap](/api/chartforgex-core-chartfluent/#method-treemap-chartforgex-core-chart-action-chartforgex-core-charttreemapoptions) parameter `configure`
- Method [ChartFluent.Treemap](/api/chartforgex-core-chartfluent/#method-treemap-chartforgex-core-chart-chartforgex-core-charttreemapoptions) parameter `value`
- Extension method [ChartOptions.Treemap](/api/chartforgex-core-chartoptions/#extension-treemap-chartforgex-core-chartoptions-action-chartforgex-core-charttreemapoptions) parameter `configure`
- Extension method [ChartOptions.Treemap](/api/chartforgex-core-chartoptions/#extension-treemap-chartforgex-core-chartoptions-chartforgex-core-charttreemapoptions) parameter `value`
- Method [ChartOptionsFluent.Treemap](/api/chartforgex-core-chartoptionsfluent/#method-treemap-chartforgex-core-chartoptions-action-chartforgex-core-charttreemapoptions) parameter `configure`
- Method [ChartOptionsFluent.Treemap](/api/chartforgex-core-chartoptionsfluent/#method-treemap-chartforgex-core-chartoptions-chartforgex-core-charttreemapoptions) parameter `value`
- Extension method [ChartTreemapOptions.ColorDimension](/api/chartforgex-core-charttreemapoptions/#extension-colordimension-chartforgex-core-charttreemapoptions-action-chartforgex-core-chartcolordimensionoptions) parameter `chartTreemapOptions`
- Extension method [ChartTreemapOptions.ColorScale](/api/chartforgex-core-charttreemapoptions/#extension-colorscale-chartforgex-core-charttreemapoptions-chartforgex-core-chartcolorscale) parameter `chartTreemapOptions`
- Extension method [ChartTreemapOptions.Gap](/api/chartforgex-core-charttreemapoptions/#extension-gap-chartforgex-core-charttreemapoptions-double) parameter `chartTreemapOptions`
- Extension method [ChartTreemapOptions.GroupPadding](/api/chartforgex-core-charttreemapoptions/#extension-grouppadding-chartforgex-core-charttreemapoptions-double) parameter `chartTreemapOptions`
- Extension method [ChartTreemapOptions.LabelTrimming](/api/chartforgex-core-charttreemapoptions/#extension-labeltrimming-chartforgex-core-charttreemapoptions-chartforgex-typography-texttrimming) parameter `chartTreemapOptions`
- Extension method [ChartTreemapOptions.MinimumLabelFontSize](/api/chartforgex-core-charttreemapoptions/#extension-minimumlabelfontsize-chartforgex-core-charttreemapoptions-nullable-system-double) parameter `chartTreemapOptions`
- Extension method [ChartTreemapOptions.ShowGroupLabels](/api/chartforgex-core-charttreemapoptions/#extension-showgrouplabels-chartforgex-core-charttreemapoptions-boolean) parameter `chartTreemapOptions`
- Extension method [ChartTreemapOptions.ShowValues](/api/chartforgex-core-charttreemapoptions/#extension-showvalues-chartforgex-core-charttreemapoptions-boolean) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.ColorDimension](/api/chartforgex-core-charttreemapoptionsfluent/#method-colordimension-chartforgex-core-charttreemapoptions-action-chartforgex-core-chartcolordimensionoptions) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.ColorScale](/api/chartforgex-core-charttreemapoptionsfluent/#method-colorscale-chartforgex-core-charttreemapoptions-chartforgex-core-chartcolorscale) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.Gap](/api/chartforgex-core-charttreemapoptionsfluent/#method-gap-chartforgex-core-charttreemapoptions-double) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.GroupPadding](/api/chartforgex-core-charttreemapoptionsfluent/#method-grouppadding-chartforgex-core-charttreemapoptions-double) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.LabelTrimming](/api/chartforgex-core-charttreemapoptionsfluent/#method-labeltrimming-chartforgex-core-charttreemapoptions-chartforgex-typography-texttrimming) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.MinimumLabelFontSize](/api/chartforgex-core-charttreemapoptionsfluent/#method-minimumlabelfontsize-chartforgex-core-charttreemapoptions-nullable-system-double) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.ShowGroupLabels](/api/chartforgex-core-charttreemapoptionsfluent/#method-showgrouplabels-chartforgex-core-charttreemapoptions-boolean) parameter `chartTreemapOptions`
- Method [ChartTreemapOptionsFluent.ShowValues](/api/chartforgex-core-charttreemapoptionsfluent/#method-showvalues-chartforgex-core-charttreemapoptions-boolean) parameter `chartTreemapOptions`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartTreemapOptions()` [#](#constructor-ctor) 

[ChartTreemapOptions.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L10)

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public double? MinimumLabelFontSize { get; set; }` [#](#property-minimumlabelfontsize) 

[ChartTreemapOptions.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L18)

Gets or sets an optional finite positive complete-caption font-size floor in logical pixels. Default: null.

 `public TextTrimming LabelTrimming { get; set; }` [#](#property-labeltrimming) 

[ChartTreemapOptions.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L30)

Gets or sets the final primary-caption overflow policy. Default: None, retaining complete-or-omitted names.

 `public double GroupPadding { get; set; }` [#](#property-grouppadding) 

[ChartTreemapOptions.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L39)

Gets or sets the non-negative padding inside each group, in pixels. Default: six.

 `public double Gap { get; set; }` [#](#property-gap) 

[ChartTreemapOptions.cs:44](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L44)

Gets or sets the non-negative gap between sibling rectangles, in pixels. Small cells bound their own gap. Default: three.

 `public bool ShowGroupLabels { get; set; }` [#](#property-showgrouplabels) 

[ChartTreemapOptions.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L48)

Gets or sets whether measured group headers are reserved and drawn. Default: true.

 `public bool ShowValues { get; set; }` [#](#property-showvalues) 

[ChartTreemapOptions.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L50)

Gets or sets whether group and leaf captions include magnitudes. Labels and semantic values are retained. Default: true.

 `public ChartColorScale? ColorScale { get; set; }` [#](#property-colorscale) 

[ChartTreemapOptions.cs:52](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L52)

Gets or sets the numeric color scale. When omitted, supplied color values use the theme's sequential ramp.

 `public ChartColorDimensionOptions ColorDimension { get; private set; }` [#](#property-colordimension) 

[ChartTreemapOptions.cs:54](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartTreemapOptions.cs#L54)

Gets the independent color measurement's name and number display policy.

## Extension Methods

 `public static ChartTreemapOptions ColorDimension(ChartTreemapOptions chartTreemapOptions, Action<ChartColorDimensionOptions> configure)` [#](#extension-colordimension-chartforgex-core-charttreemapoptions-action-chartforgex-core-chartcolordimensionoptions) 

Configures [ChartTreemapOptions.ColorDimension](/api/chartforgex-core-charttreemapoptions/) in place: Gets the independent color measurement's name and number display policy.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**configure System.Action<ChartForgeX.Core.ChartColorDimensionOptions> required**

Configures the value.

Returns

 `ChartTreemapOptions` The same instance. 

 `public static ChartTreemapOptions ColorScale(ChartTreemapOptions chartTreemapOptions, ChartColorScale? value)` [#](#extension-colorscale-chartforgex-core-charttreemapoptions-chartforgex-core-chartcolorscale) 

Sets [ChartTreemapOptions.ColorScale](/api/chartforgex-core-charttreemapoptions/): Gets or sets the numeric color scale. When omitted, supplied color values use the theme's sequential ramp.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**value ChartForgeX.Core.ChartColorScale? required**

The value.

Returns

 `ChartTreemapOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartTreemapOptions { ColorScale = value };    chartTreemapOptions.ColorScale(value);
```

 `public static ChartTreemapOptions Gap(ChartTreemapOptions chartTreemapOptions, double value)` [#](#extension-gap-chartforgex-core-charttreemapoptions-double) 

Sets [ChartTreemapOptions.Gap](/api/chartforgex-core-charttreemapoptions/): Gets or sets the non-negative gap between sibling rectangles, in pixels. Small cells bound their own gap. Default: three.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**value double required**

The value.

Returns

 `ChartTreemapOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Core.ChartTreemapOptions { Gap = value };    chartTreemapOptions.Gap(value);
```

 `public static ChartTreemapOptions GroupPadding(ChartTreemapOptions chartTreemapOptions, double value)` [#](#extension-grouppadding-chartforgex-core-charttreemapoptions-double) 

Sets [ChartTreemapOptions.GroupPadding](/api/chartforgex-core-charttreemapoptions/): Gets or sets the non-negative padding inside each group, in pixels. Default: six.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**value double required**

The value.

Returns

 `ChartTreemapOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Core.ChartTreemapOptions { GroupPadding = value };    chartTreemapOptions.GroupPadding(value);
```

 `public static ChartTreemapOptions LabelTrimming(ChartTreemapOptions chartTreemapOptions, TextTrimming value)` [#](#extension-labeltrimming-chartforgex-core-charttreemapoptions-chartforgex-typography-texttrimming) 

Sets [ChartTreemapOptions.LabelTrimming](/api/chartforgex-core-charttreemapoptions/): Gets or sets the final primary-caption overflow policy. Default: None, retaining complete-or-omitted names.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**value ChartForgeX.Typography.TextTrimming required**

The value.

Returns

 `ChartTreemapOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Core.ChartTreemapOptions { LabelTrimming = value };    chartTreemapOptions.LabelTrimming(value);
```

 `public static ChartTreemapOptions MinimumLabelFontSize(ChartTreemapOptions chartTreemapOptions, double? value)` [#](#extension-minimumlabelfontsize-chartforgex-core-charttreemapoptions-nullable-system-double) 

Sets [ChartTreemapOptions.MinimumLabelFontSize](/api/chartforgex-core-charttreemapoptions/): Gets or sets an optional finite positive complete-caption font-size floor in logical pixels. Default: null.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**value double? required**

The value.

Returns

 `ChartTreemapOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::ChartForgeX.Core.ChartTreemapOptions { MinimumLabelFontSize = value };    chartTreemapOptions.MinimumLabelFontSize(value);
```

 `public static ChartTreemapOptions ShowGroupLabels(ChartTreemapOptions chartTreemapOptions, bool value = true)` [#](#extension-showgrouplabels-chartforgex-core-charttreemapoptions-boolean) 

Sets [ChartTreemapOptions.ShowGroupLabels](/api/chartforgex-core-charttreemapoptions/): Gets or sets whether measured group headers are reserved and drawn. Default: true.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `ChartTreemapOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Core.ChartTreemapOptions { ShowGroupLabels = value };    chartTreemapOptions.ShowGroupLabels(value);
```

 `public static ChartTreemapOptions ShowValues(ChartTreemapOptions chartTreemapOptions, bool value = true)` [#](#extension-showvalues-chartforgex-core-charttreemapoptions-boolean) 

Sets [ChartTreemapOptions.ShowValues](/api/chartforgex-core-charttreemapoptions/): Gets or sets whether group and leaf captions include magnitudes. Labels and semantic values are retained. Default: true.

Parameters

**chartTreemapOptions ChartForgeX.Core.ChartTreemapOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `ChartTreemapOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartTreemapOptions { ShowValues = value };    chartTreemapOptions.ShowValues(value);
```

<!-- PowerForge markdown artifact sha256:A6009F680F8A1309E914977BAF23EBDA97F3BE24306A8FEA1E1FF6E3A62C1265 -->
