# ChartResolutionPolicy

Converts an intended render width into a bounded point budget for resolution-aware series.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartResolutionPolicy.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L9)

**Modifiers**

sealed

Converts an intended render width into a bounded point budget for resolution-aware series.

## Inheritance

- object
- ChartResolutionPolicy

## Usage

 Explore 25 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 11

- Extension method [ChartResolutionPolicy.DecimationMode](/api/chartforgex-core-chartresolutionpolicy/#extension-decimationmode-chartforgex-core-chartresolutionpolicy-chartforgex-core-chartdecimationmode)
- Extension method [ChartResolutionPolicy.MaximumMarkerCount](/api/chartforgex-core-chartresolutionpolicy/#extension-maximummarkercount-chartforgex-core-chartresolutionpolicy-int32)
- Extension method [ChartResolutionPolicy.MaximumPointCount](/api/chartforgex-core-chartresolutionpolicy/#extension-maximumpointcount-chartforgex-core-chartresolutionpolicy-int32)
- Extension method [ChartResolutionPolicy.MinimumPointCount](/api/chartforgex-core-chartresolutionpolicy/#extension-minimumpointcount-chartforgex-core-chartresolutionpolicy-int32)
- Extension method [ChartResolutionPolicy.PointsPerPixel](/api/chartforgex-core-chartresolutionpolicy/#extension-pointsperpixel-chartforgex-core-chartresolutionpolicy-double)
- Method [ChartResolutionPolicy.Trend](/api/chartforgex-core-chartresolutionpolicy/#method-trend)
- Method [ChartResolutionPolicyFluent.DecimationMode](/api/chartforgex-core-chartresolutionpolicyfluent/#method-decimationmode-chartforgex-core-chartresolutionpolicy-chartforgex-core-chartdecimationmode)
- Method [ChartResolutionPolicyFluent.MaximumMarkerCount](/api/chartforgex-core-chartresolutionpolicyfluent/#method-maximummarkercount-chartforgex-core-chartresolutionpolicy-int32)
- Method [ChartResolutionPolicyFluent.MaximumPointCount](/api/chartforgex-core-chartresolutionpolicyfluent/#method-maximumpointcount-chartforgex-core-chartresolutionpolicy-int32)
- Method [ChartResolutionPolicyFluent.MinimumPointCount](/api/chartforgex-core-chartresolutionpolicyfluent/#method-minimumpointcount-chartforgex-core-chartresolutionpolicy-int32)
- Method [ChartResolutionPolicyFluent.PointsPerPixel](/api/chartforgex-core-chartresolutionpolicyfluent/#method-pointsperpixel-chartforgex-core-chartresolutionpolicy-double)

### Accepted by parameters 14

- Method [Chart.AddAdaptiveArea](/api/chartforgex-core-chart/#method-addadaptivearea-string-collections-generic-ienumerable-chartforgex-primitives-chartpoint-double-chartforgex-core-chartresolutionpolicy-nullable-chartforgex-primitives-chartcolor) parameter `policy`
- Method [Chart.AddAdaptiveLine](/api/chartforgex-core-chart/#method-addadaptiveline-string-collections-generic-ienumerable-chartforgex-primitives-chartpoint-double-chartforgex-core-chartresolutionpolicy-nullable-chartforgex-primitives-chartcolor) parameter `policy`
- Method [Chart.AddAdaptiveScatter](/api/chartforgex-core-chart/#method-addadaptivescatter-string-collections-generic-ienumerable-chartforgex-primitives-chartpoint-double-chartforgex-core-chartresolutionpolicy-nullable-chartforgex-primitives-chartcolor) parameter `policy`
- Extension method [ChartResolutionPolicy.DecimationMode](/api/chartforgex-core-chartresolutionpolicy/#extension-decimationmode-chartforgex-core-chartresolutionpolicy-chartforgex-core-chartdecimationmode) parameter `chartResolutionPolicy`
- Extension method [ChartResolutionPolicy.MaximumMarkerCount](/api/chartforgex-core-chartresolutionpolicy/#extension-maximummarkercount-chartforgex-core-chartresolutionpolicy-int32) parameter `chartResolutionPolicy`
- Extension method [ChartResolutionPolicy.MaximumPointCount](/api/chartforgex-core-chartresolutionpolicy/#extension-maximumpointcount-chartforgex-core-chartresolutionpolicy-int32) parameter `chartResolutionPolicy`
- Extension method [ChartResolutionPolicy.MinimumPointCount](/api/chartforgex-core-chartresolutionpolicy/#extension-minimumpointcount-chartforgex-core-chartresolutionpolicy-int32) parameter `chartResolutionPolicy`
- Extension method [ChartResolutionPolicy.PointsPerPixel](/api/chartforgex-core-chartresolutionpolicy/#extension-pointsperpixel-chartforgex-core-chartresolutionpolicy-double) parameter `chartResolutionPolicy`
- Method [ChartResolutionPolicyFluent.DecimationMode](/api/chartforgex-core-chartresolutionpolicyfluent/#method-decimationmode-chartforgex-core-chartresolutionpolicy-chartforgex-core-chartdecimationmode) parameter `chartResolutionPolicy`
- Method [ChartResolutionPolicyFluent.MaximumMarkerCount](/api/chartforgex-core-chartresolutionpolicyfluent/#method-maximummarkercount-chartforgex-core-chartresolutionpolicy-int32) parameter `chartResolutionPolicy`
- Method [ChartResolutionPolicyFluent.MaximumPointCount](/api/chartforgex-core-chartresolutionpolicyfluent/#method-maximumpointcount-chartforgex-core-chartresolutionpolicy-int32) parameter `chartResolutionPolicy`
- Method [ChartResolutionPolicyFluent.MinimumPointCount](/api/chartforgex-core-chartresolutionpolicyfluent/#method-minimumpointcount-chartforgex-core-chartresolutionpolicy-int32) parameter `chartResolutionPolicy`
- Method [ChartResolutionPolicyFluent.PointsPerPixel](/api/chartforgex-core-chartresolutionpolicyfluent/#method-pointsperpixel-chartforgex-core-chartresolutionpolicy-double) parameter `chartResolutionPolicy`
- Method [ChartSeries.CreateAdaptive](/api/chartforgex-core-chartseries/#method-createadaptive-chartforgex-core-chartseriesid-string-chartforgex-core-chartserieskind-collections-generic-ienumerable-chartforgex-primitives-chartpoint-double-chartforgex-core-chartresolutionpolicy-nullable-chartforgex-primitives-chartcolor) parameter `policy`

 Filter members   

    Show inherited   

 

## Constructors

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

[ChartResolutionPolicy.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L9)

## Methods

 `public int ResolvePointBudget(double viewportWidth)` [#](#method-resolvepointbudget-double) 

[ChartResolutionPolicy.cs:70](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L70)

Resolves the maximum rendered point count for an intended horizontal render width.

Parameters

**viewportWidth double required**

Returns

 `int` 

 `public static ChartResolutionPolicy Trend()` [#](#method-trend) 

[ChartResolutionPolicy.cs:66](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L66)

Creates the report-friendly trend policy: two points per pixel, a 64-point floor, and automatic marker-density control.

Returns

 `ChartResolutionPolicy` 

## 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 PointsPerPixel { get; set; }` [#](#property-pointsperpixel) 

[ChartResolutionPolicy.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L17)

Gets or sets the number of rendered points allowed per horizontal pixel.

 `public int MinimumPointCount { get; set; }` [#](#property-minimumpointcount) 

[ChartResolutionPolicy.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L26)

Gets or sets the minimum point budget. The value must be at least three.

 `public int MaximumPointCount { get; set; }` [#](#property-maximumpointcount) 

[ChartResolutionPolicy.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L36)

Gets or sets the maximum point budget.

 `public int MaximumMarkerCount { get; set; }` [#](#property-maximummarkercount) 

[ChartResolutionPolicy.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L49)

Gets or sets the largest retained point count that still shows optional line or area markers. Zero suppresses markers for every adaptive series while preserving the connected path.

 `public ChartDecimationMode DecimationMode { get; set; }` [#](#property-decimationmode) 

[ChartResolutionPolicy.cs:58](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartResolutionPolicy.cs#L58)

Gets or sets the deterministic decimation algorithm used when the source exceeds the resolved budget.

## Extension Methods

 `public static ChartResolutionPolicy DecimationMode(ChartResolutionPolicy chartResolutionPolicy, ChartDecimationMode value)` [#](#extension-decimationmode-chartforgex-core-chartresolutionpolicy-chartforgex-core-chartdecimationmode) 

Sets [ChartResolutionPolicy.DecimationMode](/api/chartforgex-core-chartresolutionpolicy/): Gets or sets the deterministic decimation algorithm used when the source exceeds the resolved budget.

Parameters

**chartResolutionPolicy ChartForgeX.Core.ChartResolutionPolicy required**

The instance.

**value ChartForgeX.Core.ChartDecimationMode required**

The value.

Returns

 `ChartResolutionPolicy` The same instance. 

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { DecimationMode = value };    chartResolutionPolicy.DecimationMode(value);
```

 `public static ChartResolutionPolicy MaximumMarkerCount(ChartResolutionPolicy chartResolutionPolicy, int value)` [#](#extension-maximummarkercount-chartforgex-core-chartresolutionpolicy-int32) 

Sets [ChartResolutionPolicy.MaximumMarkerCount](/api/chartforgex-core-chartresolutionpolicy/): Gets or sets the largest retained point count that still shows optional line or area markers. Zero suppresses markers for every adaptive series while preserving the connected path.

Parameters

**chartResolutionPolicy ChartForgeX.Core.ChartResolutionPolicy required**

The instance.

**value int required**

The value.

Returns

 `ChartResolutionPolicy` The same instance. 

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { MaximumMarkerCount = value };    chartResolutionPolicy.MaximumMarkerCount(value);
```

 `public static ChartResolutionPolicy MaximumPointCount(ChartResolutionPolicy chartResolutionPolicy, int value)` [#](#extension-maximumpointcount-chartforgex-core-chartresolutionpolicy-int32) 

Sets [ChartResolutionPolicy.MaximumPointCount](/api/chartforgex-core-chartresolutionpolicy/): Gets or sets the maximum point budget.

Parameters

**chartResolutionPolicy ChartForgeX.Core.ChartResolutionPolicy required**

The instance.

**value int required**

The value.

Returns

 `ChartResolutionPolicy` The same instance. 

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { MaximumPointCount = value };    chartResolutionPolicy.MaximumPointCount(value);
```

 `public static ChartResolutionPolicy MinimumPointCount(ChartResolutionPolicy chartResolutionPolicy, int value)` [#](#extension-minimumpointcount-chartforgex-core-chartresolutionpolicy-int32) 

Sets [ChartResolutionPolicy.MinimumPointCount](/api/chartforgex-core-chartresolutionpolicy/): Gets or sets the minimum point budget. The value must be at least three.

Parameters

**chartResolutionPolicy ChartForgeX.Core.ChartResolutionPolicy required**

The instance.

**value int required**

The value.

Returns

 `ChartResolutionPolicy` The same instance. 

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { MinimumPointCount = value };    chartResolutionPolicy.MinimumPointCount(value);
```

 `public static ChartResolutionPolicy PointsPerPixel(ChartResolutionPolicy chartResolutionPolicy, double value)` [#](#extension-pointsperpixel-chartforgex-core-chartresolutionpolicy-double) 

Sets [ChartResolutionPolicy.PointsPerPixel](/api/chartforgex-core-chartresolutionpolicy/): Gets or sets the number of rendered points allowed per horizontal pixel.

Parameters

**chartResolutionPolicy ChartForgeX.Core.ChartResolutionPolicy required**

The instance.

**value double required**

The value.

Returns

 `ChartResolutionPolicy` The same instance. 

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { PointsPerPixel = value };    chartResolutionPolicy.PointsPerPixel(value);
```

<!-- PowerForge markdown artifact sha256:53F39F5A5D0D12BFB8E9EEB0F25AB62FAE19CFB850ECE0259D68BDB6CD18C0CE -->
