We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Real Time Chart performance

Thread ID:

Created:

Updated:

Platform:

Replies:

94473 May 14,2010 05:23 PM UTC May 17,2010 07:55 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Dan Schubel
Asked On May 14, 2010 05:23 PM UTC

I have a chart that uses a binding list as a data source. The chart updates as items are added to the binding list, but I would like to improve the performance. I am adding to the binding list via a timer interval of 1ms.
Adding 2000 items to the binding list takes approx. 68 seconds to plot. If I just populate the binding list and don't use the chart it takes roughly 15 seconds.

Are there any recommendations to improve this performance?
My chart is set up like this:

public void SetUpChart(Table sourceTable)
{
chartControl1.Series.Clear();

ChartSeries series1 = new ChartSeries("IVT1", ChartSeriesType.Scatter);
series1.Text = series1.Name;
series1.Style.Symbol.Size = new System.Drawing.Size(5,5);
series1.Style.Symbol.Shape = ChartSymbolShape.VertLine;
series1.Style.Symbol.Color = Color.Red;
series1.Style.Border.Color = Color.Red;

ChartDataBindModel model = new ChartDataBindModel(sourceTable);
model.XName = "Im_real";
model.YNames = new string[] { "Vf_real" };
series1.SeriesModel = model;

chartControl1.PrimaryXAxis.RoundingPlaces = 3;
chartControl1.PrimaryYAxis.RoundingPlaces = 3;

ChartDataBindAxisLabelModel dataLabelsModel = new ChartDataBindAxisLabelModel(sourceTable);
dataLabelsModel.LabelName = "Im_real";
chartControl1.PrimaryXAxis.LabelsImpl = dataLabelsModel;

chartControl1.Series.Add(series1);

}

Also, all the values on the X axis are displaying 0.

Jaffersathick B [Syncfusion]
Replied On May 17, 2010 07:55 AM UTC

Hi DanSchubel,

Thank you for using Syncfusion products.

We suggest you to use the following properties to improve the chart performance.

(i) ChartSeries.EnableStyles: Point Symbols and Point Text will not be visible if set to false.

(ii) ChartSeries.Style.DisplayShadow: This is set to true by default. Turning it off means, your lines will not have shadows (and hence will be rendered faster).

(iii) ChartControl.ImprovePerformance = true;- Improve the performance of the chart control.

(iv) ChartControl.Indexed : Setting Indexed to false speeds up the Chart. This is not a choice for making the Chart faster. If you don''t need a Indexed/Positional Chart, you must set this property to false.

(v) ChartControl.CalcRegions: This property controls Tooltips and AutoHighliting. If this value is set to false, these features will not work.

Please refer the documentation from the following link:
http://help.syncfusion.com/ug_82/WindowsFormsUI_Chart/ImprovingPerformance.html

Let me know if you have any concerns.

Regards,
Jaffer.B

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;