Skip to main content

SeriesRenderContext Struct

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Provides all the data a Avalonia.Controls.Charts.CartesianSeries needs to render itself inside a Avalonia.Controls.Charts.CartesianChart.

public struct SeriesRenderContext

Inheritance: ValueType -> SeriesRenderContext

Constructors​

NameDescription
SeriesRenderContextNo summary available.

SeriesRenderContext Constructor​

public SeriesRenderContext(Avalonia.Media.DrawingContext drawingContext, Avalonia.Rect plotArea, System.Collections.Generic.List<object> categories, System.Collections.Generic.Dictionary<object, int> categoryMap, double axisMin, double axisMax, Avalonia.Media.IBrush fillBrush, Avalonia.Media.IBrush strokeBrush, double minX, double maxX, int seriesIndex, Avalonia.Controls.Charts.CartesianChart chart)

Parameters​

drawingContext Avalonia.Media.DrawingContext

plotArea Avalonia.Rect

categories System.Collections.Generic.List<object>

categoryMap System.Collections.Generic.Dictionary<object, int>

axisMin double

axisMax double

fillBrush Avalonia.Media.IBrush

strokeBrush Avalonia.Media.IBrush

minX double

maxX double

seriesIndex int

chart Avalonia.Controls.Charts.CartesianChart

Methods​

NameDescription
GetEffectiveCategoryCountGets the effective category count for layout when generated-index categories are virtualized.

GetEffectiveCategoryCount Method​

Gets the effective category count for layout when generated-index categories are virtualized.

public double GetEffectiveCategoryCount(int fallbackCount)

Parameters​

fallbackCount int

Returns​

double

Fields​

NameDescription
AxisMaxGets the effective vertical-axis maximum.
AxisMinGets the effective vertical-axis minimum.
CategoriesGets the resolved category collection for the chart.
CategoryMapGets the category lookup used to resolve horizontal positions.
ChartGets the chart requesting the render.
DrawingContextGets the drawing context for the current render pass.
FillBrushGets the resolved fill brush for the series.
MaxXGets the effective horizontal viewport maximum.
MinXGets the effective horizontal viewport minimum.
PlotAreaGets the plot area in chart coordinates.
SeriesIndexGets the series index within the owning chart.
StrokeBrushGets the resolved stroke brush for the series.

AxisMax Field​

Gets the effective vertical-axis maximum.

public double AxisMax

AxisMin Field​

Gets the effective vertical-axis minimum.

public double AxisMin

Categories Field​

Gets the resolved category collection for the chart.

public System.Collections.Generic.List<object> Categories

CategoryMap Field​

Gets the category lookup used to resolve horizontal positions.

public System.Collections.Generic.Dictionary<object, int> CategoryMap

Chart Field​

Gets the chart requesting the render.

public Avalonia.Controls.Charts.CartesianChart Chart

DrawingContext Field​

Gets the drawing context for the current render pass.

public Avalonia.Media.DrawingContext DrawingContext

FillBrush Field​

Gets the resolved fill brush for the series.

public Avalonia.Media.IBrush FillBrush

MaxX Field​

Gets the effective horizontal viewport maximum.

public double MaxX

MinX Field​

Gets the effective horizontal viewport minimum.

public double MinX

PlotArea Field​

Gets the plot area in chart coordinates.

public Avalonia.Rect PlotArea

SeriesIndex Field​

Gets the series index within the owning chart.

public int SeriesIndex

StrokeBrush Field​

Gets the resolved stroke brush for the series.

public Avalonia.Media.IBrush StrokeBrush