Page 1 of 1

Question about AreaLine of AreaSeries.

Posted: Wed Jan 19, 2011 3:39 am
by 16658337
Hello MR or Madam:
As Described in the Help Doc, We set the AreaLine's Visible property as FALSE, hoped to hide the AreaLine. The Code is as follow:
m_tChart.Series(0).GetAsArea().GetAreaPen().SetVisible(FALSE);

However, the result is not as expected, we can see in the pics follow:
1-2.JPG
1-2.JPG (30.09 KiB) Viewed 4178 times
1-1.JPG
1-1.JPG (46.29 KiB) Viewed 4134 times
Meanwhile, as we did this job in the feature demo, it works good, as follow:
1-1.JPG
1-1.JPG (46.29 KiB) Viewed 4134 times
The TeeChart Version is TeeChart Pro v2010.0.0.2.11109 Win32. Platform is Windows Server 2003 EnterPrise Edition with SP2. VC Version is MS VS 2008.

Thx.

Re: Question about AreaLine of AreaSeries.

Posted: Wed Jan 19, 2011 1:33 pm
by yeray
Hi MXSoft,

I think this is the same that was discussed here:
http://www.teechart.net/support/viewtopic.php?p=33055

You could try setting the lines style psClear:

Code: Select all

  TChart1.Tools.Add tcAntiAlias
  
  TChart1.AddSeries scArea
  TChart1.Series(0).FillSampleValues 20
  TChart1.Series(0).asArea.Transparency = 60
  TChart1.Series(0).asArea.AreaPen.Visible = False
  TChart1.Series(0).asArea.AreaPen.Style = psClear