Page 1 of 1

Appearance problem if adding transparent values (Line, Area)

Posted: Tue Jan 20, 2009 10:15 am
by 13049466
Hello

I have a problem with Line (then I replaced it with FastLine which works) and Area class. Appearance properties could not be set if I add transparent value.

for example:

Area area = new Area(tChart1);
area.Brush.Color = Color.Red;
area.Brush.Transparency = 80;
area.AreaLines.Transparency = 90;
area.LinePen.Transparency = 90;
area.AreaLines.Color = Color.Red;
area.Transparency = 80;
area.AreaBrush.Transparency = 80;

After I add transparent values like:

area.Add(new double?[10]);
or
area.Add();

all these properties set before (or set after), became random (and transparent became zero?).

Or is there any other way to set start position of some charts to be moved to the right?

Good example of valid behaviour is Financial function MovingAverage which added to the Line creates blank space for size of period. My custom funcions would like to do the same :)

Thanks,

Goran

Posted: Tue Jan 20, 2009 10:54 am
by narcis
Hi Goran,

I'm not sure about which is the exact problem here. Using code below works fine for me here. Which is the exact problem do you have with it?

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			Steema.TeeChart.Styles.Area area = new Steema.TeeChart.Styles.Area(tChart1.Chart);
			area.Brush.Color = Color.Red;
			area.Brush.Transparency = 80;
			area.AreaLines.Transparency = 90;
			area.LinePen.Transparency = 90;
			area.AreaLines.Color = Color.Red;
			area.Transparency = 80;
			area.AreaBrush.Transparency = 80;

			area.Add(10);
			area.Add(5);
			area.Add(7);
			area.Add();
			area.Add(6);
			area.Add(8);
			area.Add(5);

			area.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;
		}
Thanks in advance.

Posted: Tue Jan 20, 2009 11:40 am
by 13049466
Hi Narcis,

I tried your code and it displays blue (or something near blue) chart and not red, and if I comment out
//area.Add();
then it's red as it should be.

Is the problem solved in some newer version?
Mine is 3.5.3188.18561

Goran

Posted: Tue Jan 20, 2009 12:07 pm
by narcis
Hi Goran,

Yes, this works fine for me here using latest TeeChart for .NET v3 maintenance release.

Can you please check if this solves the problem at your end?

Thanks in advance.

Posted: Tue Jan 20, 2009 12:32 pm
by 13049466
Hi Narcis,

With this version, the problem is gone.

Thank you.

Best regards,

Goran