private void DrawVerticalGrid(Painter painter, ChartData data) { PaintArguments paintArguments = new PaintArguments(painter, null, chartMargin); foreach (DataSeries dataSeries in data.Series) { int x = paintArguments.AxisXLocation + (data.Series.IndexOf(dataSeries)) * CalculateInterval(painter, data); ChartPoint[] yLinePoint = new ChartPoint[2]; foreach (DataPoint dataPoint in dataSeries.Point) { yLinePoint[0] = new ChartPoint(x, painter.Height - paintArguments.AxisYLocation); yLinePoint[1] = new ChartPoint(x, painter.Height - paintArguments.AxisYLocation - paintArguments.AxisHeight); } painter.DrawLine(style, yLinePoint, LineType.DotLine); } }
private void DrawAxis(Painter painter, IEnumerable <ChartPoint> point) { painter.DrawLine(style, point, LineType.ArrowAnchor); }