Skip to main content

Class LineChart

An X/Y Line chart

Assembly: MicroLayout.dll
View Source
public class LineChart : ThemedControl, IThemedControl, IControl

Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.Control -> Meadow.Foundation.Graphics.MicroLayout.ThemedControl

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl, Meadow.Foundation.Graphics.MicroLayout.IControl

Properties

AlwaysShowYOrigin

When true, Y-value origin (zero) is always displayed, otherwise the Y axis is scaled based on the data range.

View Source
public bool AlwaysShowYOrigin { get; set; }

AxisFont

The IFont used to for displaying axis labels

View Source
public IFont? AxisFont { get; set; }

BackgroundColor

The chart's background color

View Source
public Color BackgroundColor { get; set; }

AxisColor

The color used to draw the chart axes lines

View Source
public Color AxisColor { get; set; }

AxisLabelColor

The color used to draw the chart axes labels

View Source
public Color AxisLabelColor { get; set; }

AxisStroke

The width of the axes lines

View Source
public int AxisStroke { get; set; }

ShowYAxisLabels

When true, Y-axis labels will be shown

View Source
public bool ShowYAxisLabels { get; set; }

Series

The collection of data series to plot

View Source
public LineChartSeriesCollection Series { get; set; }

Fields

DefaultAxisColor

The default color for axis lines

View Source
public static Color DefaultAxisColor

DefaultAxisLabelColor

The default color for axis labels

View Source
public static Color DefaultAxisLabelColor

DefaultBackgroundColor

The default chart background color

View Source
public static Color DefaultBackgroundColor

Methods

ApplyTheme(DisplayTheme)

Applies the specified display theme to the control.

View Source
public override void ApplyTheme(DisplayTheme theme)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.DisplayThemethemeThe display theme to apply.

OnDraw(MicroGraphics)

Performs the actual drawing of the control on the specified Meadow.Foundation.Graphics.MicroGraphics surface. This method must be implemented in derived classes.

View Source
protected override void OnDraw(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphicsgraphicsThe Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on.

Implements