Area Series doesnt work with Brush Style

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rino
Newbie
Newbie
Posts: 26
Joined: Wed May 23, 2007 12:00 am

Area Series doesnt work with Brush Style

Post by rino » Thu Oct 28, 2010 12:08 pm

Hi
I am using version 3.5.3425.20244
I have area series and I need to set each series with a different Brush style.
It doesnt seem to work
Thanks.

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

Re: Area Series doesnt work with Brush Style

Post by Narcís » Thu Oct 28, 2010 1:12 pm

Hi rino,

Are you using AreaBrush? Code snippet below works fine for me here using latest v3 release available at the client area which is build 3.5.3700.30574/5.

Code: Select all

      Steema.TeeChart.Styles.Area area1 = new Steema.TeeChart.Styles.Area(tChart1.Chart);
      area1.FillSampleValues();
      area1.Brush.Style = System.Drawing.Drawing2D.HatchStyle.DarkDownwardDiagonal;
      area1.AreaBrush.Style = System.Drawing.Drawing2D.HatchStyle.DarkUpwardDiagonal;
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

rino
Newbie
Newbie
Posts: 26
Joined: Wed May 23, 2007 12:00 am

Re: Area Series doesnt work with Brush Style

Post by rino » Sun Oct 31, 2010 7:02 am

Hi Narcis
AreaBrush fixes the problem , Thanks. Funny that you need to set both the brush and the AreaBrush.

Btw I just noticed that I have the same problem with Line series . How can I fill in the style of a line series. ? Setting line.Brush.Style doesnt work .
Thanks.

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

Re: Area Series doesnt work with Brush Style

Post by Narcís » Tue Nov 02, 2010 1:51 pm

Hi rino,

You need to set Solid to false first:

Code: Select all

            line1.Brush.Solid = false;
            line1.Brush.Style = System.Drawing.Drawing2D.HatchStyle.BackwardDiagonal;
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

Post Reply