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
Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl
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
Type | Name | Description |
---|---|---|
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
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroGraphics | graphics | The graphics context used to draw the bar. |
System.Int32 | seriesNumber | The series number to which the bar belongs. |
System.ValueTuple<System.Int32,System.Int32> | value | The value represented by the bar. |
System.Int32 | x | The X-coordinate of the top-left corner of the bar. |
System.Int32 | y | The Y-coordinate of the top-left corner of the bar. |
System.Int32 | width | The width of the bar. |
System.Int32 | height | The height of the bar. |
Meadow.Color | barColor | The color of the bar. |
System.Boolean | filled | A value indicating whether the bar is filled or just outlined. |