protected override void InternalDraw(Abt.Controls.SciChart.Rendering.Common.IRenderContext2D renderContext, IRenderPassData renderPassData) { var pointSeries = CurrentRenderPassData.PointSeries; var shiftedLine = new LinesEnumerable(pointSeries, renderPassData.XCoordinateCalculator, renderPassData.YCoordinateCalculator, false).Select(u => new Point(u.X, u.Y - 5)); using (var segmentPen = renderContext.CreatePen(SeriesColor, AntiAliasing, StrokeThickness, Opacity, StrokeDashArray)) { renderContext.DrawLines(segmentPen, shiftedLine); } base.InternalDraw(renderContext, renderPassData); }
private void CategoryDateTimeAxis_VisibleRangeChanged(object sender, Abt.Controls.SciChart.VisibleRangeChangedEventArgs e) { Debug.WriteLine("{0} from {1}:{2} to {3}:{4}", "CategoryDateTimeAxis_VisibleRangeChanged ", e.OldVisibleRange.Min, e.OldVisibleRange.Max, e.NewVisibleRange.Min, e.NewVisibleRange.Max); }