Skip to main content

Class HistogramChart

Represents a histogram chart control.

Assembly: MicroLayout.dll​
View Source​
Declaration
public class HistogramChart : ChartControl, IThemedControl, IControl

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

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

Properties​

Series​

Gets or sets a series of float values to plot

View Source​
Declaration
public List<HistogramChartSeries> Series { get; set; }

ShowXAxisLabels​

Gets or sets the visibility of the X axis labels

View Source​
Declaration
public bool ShowXAxisLabels { get; set; }

MinXAxisValue​

Gets or sets an optional minimum X Axis value

View Source​
Declaration
public int? MinXAxisValue { get; set; }

MaxXAxisValue​

Gets or sets an optional maximum X Axis value

View Source​
Declaration
public int? MaxXAxisValue { get; set; }

MaxYAxisValue​

Gets or sets an optional maximum Y Axis value

View Source​
Declaration
public int? MaxYAxisValue { get; set; }

Methods​

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.MicroGraphicsgraphicsThe Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on.

DrawValueBar(MicroGraphics, int, (int X, int Y), int, int, int, int, Color, bool)​

Called to draw a value bar in the histogram chart.

View Source​
Declaration
protected virtual void DrawValueBar(MicroGraphics graphics, int seriesNumber, (int X, int Y) value, int x, int y, int width, int height, Color barColor, bool filled)
Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphicsgraphicsThe graphics context used to draw the bar.
System.Int32seriesNumberThe series number to which the bar belongs.
System.ValueTuple<System.Int32,System.Int32>valueThe value represented by the bar.
System.Int32xThe X-coordinate of the top-left corner of the bar.
System.Int32yThe Y-coordinate of the top-left corner of the bar.
System.Int32widthThe width of the bar.
System.Int32heightThe height of the bar.
Meadow.ColorbarColorThe color of the bar.
System.BooleanfilledA value indicating whether the bar is filled or just outlined.

Implements​