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 1205

Summary: Hiding the LinePen in a LineSeries in 2D doesn't work
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: david, marc
Priority: ---    
Version: 150120   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=15572
Chart Series: Line Delphi / C++ Builder RAD IDE Version: Delphi 7

Description yeray alonso 2015-05-08 10:59:44 EDT
Hiding the LinePen in a TLineSeries:

- In 3D, the polygons are drawn without border.
- In 2D, the line is drawn!!! And if you change to 3D the border is drawn.

If you make the Pointers visible, always in 2D:

- In v2014.12, the pointers are drawn. The line isn't drawn.
- In v2015.14 and up, the pointers are drawn. The line is also drawn!!!

Test example:

uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;
  with (Chart1.AddSeries(TLineSeries) as TLineSeries) do
  begin
    FillSampleValues;
    LinePen.Visible:=false;
    //Pointer.Visible:=true;
  end;
end;

Probably related to this:
http://bugs.teechart.net/show_bug.cgi?id=486

A workaround, as the customer suggests, is to set LinePen.Style:=psClear
Comment 1 david berneda 2015-05-11 12:14:25 EDT
LinePen is forced always visible in 2D (setting Pen.Style to psClear is ok to make the pen invisible)

This is forced to prevent seeing nothing inadvertedly. 
One modification we can do is to not force pen visibility if the series Pointer is Visible.