Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 618

Summary: Hiding line pen has no effect
Product: VCL TeeChart Reporter: ChristianH <christian.holzner>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: IN_PROGRESS ---    
Severity: enhancement CC: david, sandra
Priority: ---    
Version: 140220   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description ChristianH 2014-03-04 11:33:12 EST
I want to hide a TLineSeries but display it's y-axis.

This is not possible by setting Series.LinePen.Visible to false. It was possible in the past. Another user reported similar problem in id 486 (http://bugs.teechart.net/show_bug.cgi?id=486)

BTW, the reason for that hiding is that it should display another (percentage) based y-axis for a TLineSeries which is displayed with a "normal" y-axis.
Comment 1 sandra pazos 2014-03-05 13:32:38 EST
The Line Pen of TLineSeries can only be hidden if Pointer->Visible ==true. The change was made after some reflection here and  we considered the change an improvement (see http://bugs.teechart.net/show_bug.cgi?id=486 for details). You can however, achieve the same behaviour that you saw in previous versions; if you use the Series transparency property instead of the Series LinePen.Visible property to hide the Pen of the Series. I would recommend something like the code below:

uses VCLTee.Series;
var Series1:TLineSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D := false;
  Series1 := TLineSeries.Create(self);
  Chart1.AddSeries(Series1);
  Series1.FillSampleValues(10);
  Series1.Transparency := 100;
end;

Thanks in advance