# TeeChart Performance optimized

**URL:** <https://support.steema.com/t/teechart-performance-optimized/16632>\
**Category:** .NET\
**Created:** [March 12, 2019, 5:33pm UTC](https://support.steema.com/t/teechart-performance-optimized/16632 "2019-03-12T17:33:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uPetexUser83958](https://support.steema.com/letter_avatar_proxy/v4/letter/u/bbce88/32.png) [@uPetexUser83958](https://support.steema.com/u/uPetexUser83958)\
**Post date:** [March 12, 2019, 5:33pm UTC](https://support.steema.com/t/teechart-performance-optimized/16632/1 "2019-03-12T17:33:08Z")

</div>

Using the .Net Version=4.1.2018.5046 of TeeChart we observe slow performance of standard operations (render, zoom etc.).

As an example create 5 line series each with a million points (in a standard Winform).  
The time to render the plot is improved if we use a FastLine series but not significantly.

When we compare performance with other similar Net charting software even with moderate size data sets TChart is significantly slower (i.e. takes 10s of seconds vs instantaneous).

We would be interested in how we could optimize the performance of the plots.

# Code extract

Steema.TeeChart.Styles.Line lineSeries1 = new Steema.TeeChart.Styles.Line();  
Steema.TeeChart.Styles.Line lineSeries2 = new Steema.TeeChart.Styles.Line();  
Steema.TeeChart.Styles.Line lineSeries3 = new Steema.TeeChart.Styles.Line();  
Steema.TeeChart.Styles.Line lineSeries4 = new Steema.TeeChart.Styles.Line();  
Steema.TeeChart.Styles.Line lineSeries5 = new Steema.TeeChart.Styles.Line();  
tChart.Aspect.View3D = false;  
tChart.Aspect.Orthogonal = false;  
  
  
// bottom axis - pipe length  
Steema.TeeChart.Axis bottomAxis = tChart1.Axes.Bottom;  
bottomAxis.Title.Visible = true;  
bottomAxis.Title.Text = “Pipe length”;

// left axis - property  
Steema.TeeChart.Axis leftAxis = tChart1.Axes.Left;  
leftAxis.Title.Visible = true;

lineSeries1.Color = Color.Blue;  
lineSeries1.FillSampleValues(1000000);

lineSeries2.Color = Color.Red;  
lineSeries2.FillSampleValues(1000000);

lineSeries3.Color = Color.Green;  
lineSeries3.FillSampleValues(1000000);

lineSeries4.Color = Color.Brown;  
lineSeries4.FillSampleValues(1000000);

lineSeries5.Color = Color.Orange;  
lineSeries5.FillSampleValues(1000000);

tChart.Series.Add(lineSeries1);  
tChart.Series.Add(lineSeries2);  
tChart.Series.Add(lineSeries3);  
tChart.Series.Add(lineSeries4);  
tChart.Series.Add(lineSeries5);

---

<div class="post-metadata">

**Author:** ![Marc](https://support.steema.com/user_avatar/support.steema.com/marc/32/7997_2.png) [@Marc](https://support.steema.com/u/Marc)\
**Post date:** [July 5, 2019, 8:13am UTC](https://support.steema.com/t/teechart-performance-optimized/16632/2 "2019-07-05T08:13:38Z")

</div>

Replied to on TeeChart forum here:

[https://www.steema.com/support/viewtopic.php?f=4&t=17143](https://www.steema.com/support/viewtopic.php?f=4&t=17143)
