Skip to main content

Class LineChart

An X/Y Line chart

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

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

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl

Properties

AlwaysShowYOrigin

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

View Source
Declaration
public bool AlwaysShowYOrigin { get; set; }

AxisFont

The IFont used to for displaying axis labels

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

BackgroundColor

The chart's background color

View Source
Declaration
public Color BackgroundColor { get; set; }

AxisColor

The color used to draw the chart axes lines

View Source
Declaration
public Color AxisColor { get; set; }

AxisLabelColor

The color used to draw the chart axes labels

View Source
Declaration
public Color AxisLabelColor { get; set; }

AxisStroke

The width of the axes lines

View Source
Declaration
public int AxisStroke { get; set; }

ShowYAxisLabels

When true, Y-axis labels will be shown

View Source
Declaration
public bool ShowYAxisLabels { get; set; }

Series

The collection of data series to plot

View Source
Declaration
public LineChartSeriesCollection Series { get; set; }

Fields

DefaultAxisColor

The default color for axis lines

View Source
Declaration
public static Color DefaultAxisColor

DefaultAxisLabelColor

The default color for axis labels

View Source
Declaration
public static Color DefaultAxisLabelColor

DefaultBackgroundColor

The default chart background color

View Source
Declaration
public static Color DefaultBackgroundColor

Methods

ApplyTheme(DisplayTheme)

Applies the specified display theme to the control.

View Source
Declaration
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
Declaration
protected override void OnDraw(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on.

Implements