Smooth line series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Smooth line series

Post by Amol » Tue Jul 31, 2018 2:19 pm

Hi Steema,

We are facing one problem that is when we draw a line series on chart the series is not looking smooth as shown in below figure:-
Smooth.png
Smooth.png (27.03 KiB) Viewed 13835 times
So kindly assist us to give the solution so we draw the line series smooth.

Thanks & regards
PlanoResearch

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Smooth line series

Post by Sandra » Wed Aug 08, 2018 12:53 pm

Hello amol,

The code below do smoothing for us, using SootingMode as AntiAlias and setting smoothed line series propierty to true:

Code: Select all

   Steema.TeeChart.TChart tChart1;
        private void InitializeChart()
        {
            tChart1 = new  Steema.TeeChart.TChart();
            this.Controls.Add(tChart1);
            tChart1.Dock = DockStyle.Fill;
			tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            tChart1.Aspect.View3D = false;
            Steema.TeeChart.Styles.Line line1 = new Line(tChart1.Chart);
			line1.Smoothed = true;
			line1.FillSampleValues(10);
}
Could you confirm us if the code above fix the problem you're experiencing?

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Re: Smooth line series

Post by Amol » Thu Aug 09, 2018 2:19 pm

Hi Steama,

Thanks for the reply.

We have applied the code sent by you but we have still facing the same issue regarding the line smoothing.

For this we are sending one snap as showing below figure:-
LineSmooth.jpg
LineSmooth.jpg (113.33 KiB) Viewed 13800 times
So kindly assist us.

Thanks & regards
PlanoResearch

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Smooth line series

Post by Sandra » Mon Aug 13, 2018 10:18 am

Hello Amol,

Could you send us a simple project where we can reproduce the problem you're experiencing? Also, could you tell us which TeeChartFor.Net version are you using?

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply