Skip to content
ChartForgeX
Class

ChartResolutionPolicy

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
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.

Accepted by parameters 14

Constructors

public ChartResolutionPolicy() #

Methods

public int ResolvePointBudget(double viewportWidth) #

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

Parameters

viewportWidth double required

Returns

int
public static ChartResolutionPolicy Trend() #

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

Properties

public double PointsPerPixel { get; set; } #

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

public int MinimumPointCount { get; set; } #

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

public int MaximumPointCount { get; set; } #

Gets or sets the maximum point budget.

public int MaximumMarkerCount { get; set; } #

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; } #

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) #

Sets ChartResolutionPolicy.DecimationMode: 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

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { DecimationMode = value };    chartResolutionPolicy.DecimationMode(value);
public static ChartResolutionPolicy MaximumMarkerCount(ChartResolutionPolicy chartResolutionPolicy, int value) #

Sets ChartResolutionPolicy.MaximumMarkerCount: 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

// C# initializer or property                                                         // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { MaximumMarkerCount = value };    chartResolutionPolicy.MaximumMarkerCount(value);
public static ChartResolutionPolicy MaximumPointCount(ChartResolutionPolicy chartResolutionPolicy, int value) #

Sets ChartResolutionPolicy.MaximumPointCount: 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

// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { MaximumPointCount = value };    chartResolutionPolicy.MaximumPointCount(value);
public static ChartResolutionPolicy MinimumPointCount(ChartResolutionPolicy chartResolutionPolicy, int value) #

Sets ChartResolutionPolicy.MinimumPointCount: 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

// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Core.ChartResolutionPolicy { MinimumPointCount = value };    chartResolutionPolicy.MinimumPointCount(value);
public static ChartResolutionPolicy PointsPerPixel(ChartResolutionPolicy chartResolutionPolicy, double value) #

Sets ChartResolutionPolicy.PointsPerPixel: 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

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