Skip to main content

ISeriesChart Interface

Definition

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

Interface for charts that contain and manage series.

public interface ISeriesChart

Methods

NameDescription
GetLegendItemsGets the legend items for this chart based on its series.
GetSeriesBrushGets the brush for a series at the specified index from the palette.

GetLegendItems Method

Gets the legend items for this chart based on its series.

public System.Collections.Generic.IEnumerable<Avalonia.Controls.Charts.ChartLegendItem> GetLegendItems()

Returns

System.Collections.Generic.IEnumerable<Avalonia.Controls.Charts.ChartLegendItem>

A collection of legend items.

GetSeriesBrush Method

Gets the brush for a series at the specified index from the palette.

public Avalonia.Media.IBrush GetSeriesBrush(int index)

Parameters

index int

The series index.

Returns

Avalonia.Media.IBrush

The brush to use for the series.

Properties

NameDescription
PaletteGets the color palette used for series colors.
SeriesGets the collection of series in this chart.

Palette Property

Gets the color palette used for series colors.

public Avalonia.Controls.Charts.ChartPalette Palette { get; set; }

Series Property

Gets the collection of series in this chart.

public System.Collections.Generic.IEnumerable<Avalonia.Controls.Charts.ChartSeries> Series { get; set; }