Chart Class
Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI
Simple line / bar chart. The rendered surface is cached and only rebuilt when Refresh is called or the control's render size changes — so calling Invalidate on the parent each frame does not redo the chart math.
public class Chart : Image, IDisposable
Constructors
Chart(int width, int height)
public Chart(int width, int height)
No description available.
| Parameter | Type | Description |
|---|---|---|
width | int | |
height | int |
Properties
DivisionAxisX
public int DivisionAxisX { get; set; }
No description available.
DivisionAxisY
public int DivisionAxisY { get; set; }
No description available.
Font
public Font Font { get; set; }
Font used by the text. (inherited)
AxisPen
public Media.Pen AxisPen { get; set; }
No description available.
ChartPen
public Media.Pen ChartPen { get; set; }
No description available.
EllipseColor
public Media.SolidColorBrush EllipseColor { get; set; }
No description available.
DivisionColor
public Media.SolidColorBrush DivisionColor { get; set; }
No description available.
TextColor
public Media.SolidColorBrush TextColor { get; set; }
No description available.
BackgroundColor
public Media.SolidColorBrush BackgroundColor { get; set; }
No description available.
RadiusPoint
public int RadiusPoint { get; set; }
No description available.
ChartTitle
public string ChartTitle { get; set; }
No description available.
Items
public ArrayList Items { get; set; }
No description available.
Mode
public ChartMode Mode { get; set; }
SPI mode (clock polarity + phase). See SpiMode. (inherited)
Methods
Refresh()
public void Refresh()
Marks the cached chart surface stale. Call after mutating Items or any styling property to force a re-render on the next paint.
OnRender(DrawingContext dc)
public override void OnRender(DrawingContext dc)
Renders the DataGrid onto it's parent container's graphics. (inherited)
| Parameter | Type | Description |
|---|---|---|
dc | DrawingContext |
Dispose()
public void Dispose()
Releases buffered memory (the unmanaged firmware/application buffers). (inherited)
Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
Closes a response stream, if present. (inherited)
| Parameter | Type | Description |
|---|---|---|
disposing | bool | Not used. |