Page 1 of 1

Bar Style Colour Problem

Posted: Tue Nov 17, 2009 9:26 am
by 13052926
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?

Re: Bar Style Colour Problem

Posted: Tue Nov 17, 2009 11:40 am
by 10050769
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,