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 1946 - tnIgnore TreatNulls draws the line segments in white
Summary: tnIgnore TreatNulls draws the line segments in white
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 22.170619
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-17 10:05 EST by yeray alonso
Modified: 2023-03-15 07:46 EDT (History)
2 users (show)

See Also:
Chart Series: Line
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2017-11-17 10:05:04 EST
When having TreatNulls as tnIgnore, the segments drawn before null point are drawn, but they are drawn in white.

Also, when there are two consecutive null points, the first pointer is also drawn in white.


procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=False;
  Chart1.Legend.Visible:=False;
  Chart1.Color:=clGrayText;
  Chart1.Gradient.Visible:=False;
  Chart1.Walls.Visible:=False;
  Chart1.Axes.Left.Grid.Visible:=False;
  Chart1.Axes.Bottom.Grid.Visible:=False;

  with Chart1.AddSeries(TLineSeries) as TLineSeries do
  begin
    Pointer.Visible:=True;
    TreatNulls:=tnIgnore;

    for i:=0 to 8 do
      if (i=2) or (i=3) or (i=6) then
         AddNull(10)
      else
         Add(5);
  end;

  Chart1.Axes.Left.SetMinMax(0,15);
end;