Class ChartControl
An abstract base class for Chart controls
Assembly: MicroLayout.dll
View Source
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
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; }
ChartAreaHeight
Gets or sets the height of the chart (non-axis) area
View Source
protected int ChartAreaHeight { get; set; }
ChartAreaWidth
Gets or sets the width of the chart (non-axis) area
View Source
protected int ChartAreaWidth { get; set; }
ChartAreaLeft
Gets or sets the left of the chart (non-axis) area
View Source
protected int ChartAreaLeft { get; set; }
ChartAreaTop
Gets or sets the top of the chart (non-axis) area
View Source
protected int ChartAreaTop { get; set; }
ChartAreaBottom
Gets or sets the bottom of the chart (non-axis) area
View Source
protected int ChartAreaBottom { get; set; }
ParentOffsetX
Gets or sets the X offset withing the chart's parent
View Source
protected int ParentOffsetX { get; }
ParentOffsetY
Gets or sets the Y offset withing the chart's parent
View Source
protected int ParentOffsetY { get; }
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
DefaultMargin
The default width of the control margin
View Source
protected const int DefaultMargin = 5
DefaultAxisStroke
The default width of the control's axis lines
View Source
protected const int DefaultAxisStroke = 4
Methods
GetAxisFont()
Get either the specified or default font for the axes
View Source
protected IFont GetAxisFont()
Returns
Meadow.Foundation.Graphics.IFont
ApplyTheme(DisplayTheme)
Applies the specified display theme to the control.
View Source
public override void ApplyTheme(DisplayTheme theme)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroLayout.DisplayTheme | theme | The display theme to apply. |