Skip to content
ChartForgeX
Class

ChartDecimator

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
static

Provides explicit point reduction for dense ordered chart series.

Inheritance

  • object
  • ChartDecimator

Methods

public static ChartDecimationResult Decimate(IEnumerable<ChartPoint> points, int maximumPoints, ChartDecimationMode mode = LargestTriangleThreeBuckets) #

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.