19 public void DrawGraph(SKCanvas Canvas, SKPoint[] Points,
object[] Parameters, SKPoint[] PrevPoints,
object[] PrevParameters,
30 Style = SKPaintStyle.Fill
35 float HalfBarWidth = (DrawingArea.Width - Count) * 0.45f / Count;
39 if (!(PrevPoints is
null))
41 if ((c = PrevPoints.Length) != Points.Length)
45 for (i = 0; i < c; i++)
47 if (PrevPoints[i].X != Points[i].X)
60 foreach (SKPoint Point
in Points)
62 x0 = Point.X - HalfBarWidth + 1;
64 x1 = Point.X + HalfBarWidth - 1;
73 Canvas.DrawRect(
new SKRect(x0, y0, x1, y1), Brush);
76 Canvas.DrawPath(Path, Brush);
Contains information about the current drawing area.
float OrigoY
Y-coordinate for the origo.
Dictionary< string, double > XLabelPositions
Optional fixed X-Label positions.
int Width
Width of drawing area.
int OffsetX
X-offset of drawing area, relative to the canvas origin.
Painters for single-color graphs
Plots a two-dimensional vertical-bar chart.
void DrawGraph(SKCanvas Canvas, SKPoint[] Points, object[] Parameters, SKPoint[] PrevPoints, object[] PrevParameters, DrawingArea DrawingArea)
Draws the graph on a canvas.
static SKColor ToColor(object Object)
Converts an object to a color.
Interface for 2D graph drawing functions.