private void ZoomExtents() { _viewportManager.BeginInvoke(() => { ViewportManager.AnimateZoomExtents(TimeSpan.FromMilliseconds(500)); }); }
private void OnRunExample() { Task.Factory.StartNew(() => { DataSeries = null; // Generate Data and mark time var dataSeries = new XyDataSeries <double, double>(); var stopwatch = Stopwatch.StartNew(); var xyData = new RandomWalkGenerator(0.0d).GetRandomWalkSeries(Count); stopwatch.Stop(); // Append to SciChartSurface and mark time stopwatch = Stopwatch.StartNew(); dataSeries.Append(xyData.XData, xyData.YData); DataSeries = dataSeries; stopwatch.Stop(); // Zoom viewport to extents ViewportManager.AnimateZoomExtents(TimeSpan.FromMilliseconds(500)); }); }
private void OnRunExample() { Task.Factory.StartNew(() => { DataSeries = null; IsBusy = true; var stopwatch = Stopwatch.StartNew(); // Generate Data and mark time DoubleSeries[] xyData = new DoubleSeries[SeriesCount]; var generator = new RandomWalkGenerator(0d); for (int i = 0; i < SeriesCount; i++) { xyData[i] = generator.GetRandomWalkSeries(PointCount); generator.Reset(); } stopwatch.Stop(); IsBusy = false; // Append to SciChartSurface and mark time stopwatch = Stopwatch.StartNew(); var allDataSeries = new IDataSeries[SeriesCount]; for (int i = 0; i < SeriesCount; i++) { var dataSeries = new XyDataSeries <double, double>(); dataSeries.Append(xyData[i].XData, xyData[i].YData); allDataSeries[i] = dataSeries; } DataSeries = allDataSeries; stopwatch.Stop(); ViewportManager.AnimateZoomExtents(TimeSpan.FromMilliseconds(500)); }); }
private void ZoomExtents() { ViewportManager.AnimateZoomExtents(TimeSpan.FromMilliseconds(500)); }