Page 1 of 1
Area Series doesnt work with Brush Style
Posted: Thu Oct 28, 2010 12:08 pm
by 14045267
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.
Re: Area Series doesnt work with Brush Style
Posted: Thu Oct 28, 2010 1:12 pm
by narcis
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;
Re: Area Series doesnt work with Brush Style
Posted: Sun Oct 31, 2010 7:02 am
by 14045267
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.
Re: Area Series doesnt work with Brush Style
Posted: Tue Nov 02, 2010 1:51 pm
by narcis
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;