Appearance problem if adding transparent values (Line, Area)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vlaho
Newbie
Newbie
Posts: 9
Joined: Wed Jun 25, 2008 12:00 am
Contact:

Appearance problem if adding transparent values (Line, Area)

Post by vlaho » Tue Jan 20, 2009 10:15 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jan 20, 2009 10:54 am

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.
Best Regards,
Narcís Calvet / 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

vlaho
Newbie
Newbie
Posts: 9
Joined: Wed Jun 25, 2008 12:00 am
Contact:

Post by vlaho » Tue Jan 20, 2009 11:40 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jan 20, 2009 12:07 pm

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.
Best Regards,
Narcís Calvet / 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

vlaho
Newbie
Newbie
Posts: 9
Joined: Wed Jun 25, 2008 12:00 am
Contact:

Post by vlaho » Tue Jan 20, 2009 12:32 pm

Hi Narcis,

With this version, the problem is gone.

Thank you.

Best regards,

Goran

Post Reply