Question about AreaLine of AreaSeries.

TeeChart for ActiveX, COM and ASP
Post Reply
MXSoft
Newbie
Newbie
Posts: 7
Joined: Mon Jan 10, 2011 12:00 am

Question about AreaLine of AreaSeries.

Post by MXSoft » Wed Jan 19, 2011 3:39 am

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 4082 times
1-1.JPG
1-1.JPG (46.29 KiB) Viewed 4038 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 4038 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.
Attachments
2.JPG
2.JPG (71.55 KiB) Viewed 4081 times

Yeray
Site Admin
Site Admin
Posts: 9540
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Question about AreaLine of AreaSeries.

Post by Yeray » Wed Jan 19, 2011 1:33 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply