Bar Style Colour Problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Bar Style Colour Problem

Post by rossmc » Tue Nov 17, 2009 9:26 am

Hi

I'm using the bar style series to plot some data. Some bars are green, some are red. It seems that there is a border drawn around each bar which is messing with the output. When there are hundreds of bars visible at once each bar ends up looking semi-transparent giving the colours a washed out look. How do I get around this?

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

Re: Bar Style Colour Problem

Post by Sandra » Tue Nov 17, 2009 11:40 am

Hello rossmc,

Using the following code produces a "non-blurred" image:

Code: Select all

         tChart1.Aspect.View3D = false;
         tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default;

         Steema.TeeChart.Styles.Bar bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);
         bar1.Pen.Visible = false;
         bar1.FillSampleValues();
The issue seems to be the anti-alias applied by the SmoothingMode.HighQuality (which is the default value) and SmoothingMode.AntiAlias. Setting it to SmoothingMode.Default solves the issue.
Can you please check if this works fine at your end?

If not works fine, you could say please what version of TeeChart .Net are you using?

I hope will helps.

Thanks,
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