private void RenderToSurface(GraphSurface surface) { RenderGutters(surface); foreach (var datum in Data) { surface.SetAxes(datum.CurrentAxisX, datum.CurrentAxisY); datum.Render(surface); } }
private void RenderGutters(GraphSurface surface) { surface.SetAxes(xAxes.Axes.First(), yAxes.Axes.First()); if (surface.XAxis.Gutter.IsFrozen) { return; } var allAxes = AllAxes(); foreach (var axis in allAxes) { axis.Gutter.Clear(); axis.Gutter.Add(new GutterText(0, "W", 0, 0.1, int.MaxValue)); // putting anything in every gutter makes the size rrecalculate correctly } foreach (var axis in allAxes) { axis.RenderLabelsAndLines(surface); } }
public override void Render(GraphSurface surface) { axis.RenderTitle(text, gutterBand, labelSize, labelRotation); }
protected override void InnerDrawGrid(GraphSurface surface, GraphValue scaledValue, Pen pen) => surface.Line(new RelativeValue(0), scaledValue, new RelativeValue(1), scaledValue, pen);