# ChartDecimator

Provides explicit point reduction for dense ordered chart series.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Modifiers**

static

Provides explicit point reduction for dense ordered chart series.

## Inheritance

- object
- ChartDecimator

 Filter members   

    Show inherited   

 

## Methods

 `public static ChartDecimationResult Decimate(IEnumerable<ChartPoint> points, int maximumPoints, ChartDecimationMode mode = LargestTriangleThreeBuckets)` [#](#method-decimate-collections-generic-ienumerable-chartforgex-primitives-chartpoint-int32-chartforgex-core-chartdecimationmode) 

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

Reduces an ordered point sequence while retaining its source-index mapping.

Parameters

**points System.Collections.Generic.IEnumerable<ChartForgeX.Primitives.ChartPoint> required**

The ordered source points.

**maximumPoints int required**

The maximum number of rendered points. Must be at least three.

**mode ChartForgeX.Core.ChartDecimationMode = LargestTriangleThreeBuckets optional**

The deterministic reduction algorithm.

Returns

 `ChartDecimationResult` A reduction result that reports exactly what was retained. 

## 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?` 

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