Example #1
0
 private void RenderToSurface(GraphSurface surface)
 {
     RenderGutters(surface);
     foreach (var datum in Data)
     {
         surface.SetAxes(datum.CurrentAxisX, datum.CurrentAxisY);
         datum.Render(surface);
     }
 }
Example #2
0
        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);
            }
        }
Example #3
0
 public override void Render(GraphSurface surface)
 {
     axis.RenderTitle(text, gutterBand, labelSize, labelRotation);
 }
Example #4
0
 protected override void InnerDrawGrid(GraphSurface surface, GraphValue scaledValue, Pen pen) =>
 surface.Line(new RelativeValue(0), scaledValue, new RelativeValue(1), scaledValue, pen);