20 public void DrawGraph(SKCanvas Canvas, SKPoint[] Points,
object[] Parameters, SKPoint[] PrevPoints,
object[] PrevParameters,
31 Style = SKPaintStyle.Fill
36 float HalfBarHeight = (-DrawingArea.Height - Count) * 0.45f / Count;
40 if (!(PrevPoints is
null))
42 if ((c = PrevPoints.Length) != Points.Length)
46 for (i = 0; i < c; i++)
48 if (PrevPoints[i].Y != Points[i].Y)
61 foreach (SKPoint Point
in Points)
63 y0 = Point.Y - HalfBarHeight + 1;
65 y1 = Point.Y + HalfBarHeight - 1;
74 Canvas.DrawRect(
new SKRect(x0, y0, x1, y1), Brush);
77 Canvas.DrawPath(Path, Brush);
Contains information about the current drawing area.
Dictionary< string, double > YLabelPositions
Optional fixed Y-Label positions.
int Height
Height of drawing area.
int OffsetY
Y-offset of drawing area, relative to the canvas origin.
float OrigoX
X-coordinate for the origo.
Plots a two-dimensional horizontal-bar chart.
void DrawGraph(SKCanvas Canvas, SKPoint[] Points, object[] Parameters, SKPoint[] PrevPoints, object[] PrevParameters, DrawingArea DrawingArea)
Draws the graph on a canvas.
Painters for single-color graphs
static SKColor ToColor(object Object)
Converts an object to a color.
Interface for 2D graph drawing functions.