Beispiel #1
0
        private GraphView GetGraph(out FakeBarSeries series, out FakeHAxis axisX, out FakeVAxis axisY)
        {
            GraphViewTests.InitFakeDriver();

            var gv = new GraphView();

            gv.ColorScheme = new ColorScheme();

            // y axis goes from 0.1 to 1 across 10 console rows
            // x axis goes from 0 to 10 across 20 console columns
            gv.Bounds   = new Rect(0, 0, 20, 10);
            gv.CellSize = new PointF(0.5f, 0.1f);

            gv.Series.Add(series = new FakeBarSeries());

            // don't show axis labels that means any labels
            // that appaer are explicitly from the bars
            gv.AxisX = axisX = new FakeHAxis()
            {
                Increment = 0
            };
            gv.AxisY = axisY = new FakeVAxis()
            {
                Increment = 0
            };

            return(gv);
        }
Beispiel #2
0
        private GraphView GetGraph(out FakeHAxis axisX, out FakeVAxis axisY)
        {
            GraphViewTests.InitFakeDriver();

            var gv = new GraphView();

            gv.ColorScheme = new ColorScheme();
            gv.Bounds      = new Rect(0, 0, 50, 30);
            // graph can't be completely empty or it won't draw
            gv.Series.Add(new ScatterSeries());

            axisX    = new FakeHAxis();
            axisY    = new FakeVAxis();
            gv.AxisX = axisX;
            gv.AxisY = axisY;

            return(gv);
        }
Beispiel #3
0
 private GraphView GetGraph(out FakeVAxis axis)
 {
     return(GetGraph(out _, out axis));
 }