ISeriesChart Interface
Definition
Interface for charts that contain and manage series.
public interface ISeriesChart
Methods
| Name | Description |
|---|---|
| GetLegendItems | Gets the legend items for this chart based on its series. |
| GetSeriesBrush | Gets 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
The brush to use for the series.
Properties
| Name | Description |
|---|---|
| Palette | Gets the color palette used for series colors. |
| Series | Gets 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; }