Skip to main content

Class ChartControl

An abstract base class for Chart controls

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

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

Derived:
Meadow.Foundation.Graphics.MicroLayout.LineChart

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl

Properties

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; }

ChartAreaHeight

Gets or sets the height of the chart (non-axis) area

View Source
Declaration
protected int ChartAreaHeight { get; set; }

ChartAreaWidth

Gets or sets the width of the chart (non-axis) area

View Source
Declaration
protected int ChartAreaWidth { get; set; }

ChartAreaLeft

Gets or sets the left of the chart (non-axis) area

View Source
Declaration
protected int ChartAreaLeft { get; set; }

ChartAreaTop

Gets or sets the top of the chart (non-axis) area

View Source
Declaration
protected int ChartAreaTop { get; set; }

ChartAreaBottom

Gets or sets the bottom of the chart (non-axis) area

View Source
Declaration
protected int ChartAreaBottom { get; set; }

ParentOffsetX

Gets or sets the X offset withing the chart's parent

View Source
Declaration
protected int ParentOffsetX { get; }

ParentOffsetY

Gets or sets the Y offset withing the chart's parent

View Source
Declaration
protected int ParentOffsetY { get; }

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

DefaultMargin

The default width of the control margin

View Source
Declaration
protected const int DefaultMargin = 5

DefaultAxisStroke

The default width of the control's axis lines

View Source
Declaration
protected const int DefaultAxisStroke = 4

Methods

GetAxisFont()

Get either the specified or default font for the axes

View Source
Declaration
protected IFont GetAxisFont()
Returns

Meadow.Foundation.Graphics.IFont

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.

Implements