.:Silverlight:. Large number of points (>500 000)
Posted: Wed Apr 06, 2011 1:09 pm
Hi,
I'm trying to manage a large number of points with no success...
I have to display a curve with more than 500,000 points and be able to zoom in/out on it (under silverlight)
it takes too long (for my requirements) for the zoom frame to be display and to zoom (> 10 seconds...)
can anyone help me ?
here is my code (for 50,000 points):
Thank you,
Simon
I'm trying to manage a large number of points with no success...
I have to display a curve with more than 500,000 points and be able to zoom in/out on it (under silverlight)
it takes too long (for my requirements) for the zoom frame to be display and to zoom (> 10 seconds...)
can anyone help me ?
here is my code (for 50,000 points):
Code: Select all
Steema.TeeChart.Silverlight.Functions.DownSampling function1;
Steema.TeeChart.Silverlight.Styles.Points points2;
DataChart1.Chart.Series.Add(new Steema.TeeChart.Silverlight.Styles.Points());
DataChart1.Chart.Series[0].FillSampleValues(50000);
points2 = new Steema.TeeChart.Silverlight.Styles.Points(DataChart1.Chart);
points2.Pointer.Style = Steema.TeeChart.Silverlight.Styles.PointerStyles.Triangle;
points2.Color = Color.FromArgb(255, 255, 0, 0);
//points2.Visible = true;
points2.DataSource = DataChart1.Chart[0];
//points2.CheckDataSource();
function1 = new Steema.TeeChart.Silverlight.Functions.DownSampling(DataChart1.Chart);
function1.Method = Steema.TeeChart.Silverlight.Functions.DownSamplingMethod.Average;
function1.Tolerance = 10.0;
function1.DisplayedPointCount = DataChart1.Chart.Series[0].Count / (int)function1.Tolerance;//Convert.ToInt32(function1.Tolerance * 4);
points2.Function = function1;
DataChart1.Header.Text = "Number of Points reduced to " + points2.Count;
Simon