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 1681

Summary: Null points in histogram series are drawn
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: yeray alonso <yeray>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: 20.170306   
Target Milestone: v2017.20   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16322
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2016-11-10 10:35:27 EST
In the following code we are adding a null point in the center, but it's still drawn, in white:

uses StatChar;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;

  with Chart1.AddSeries(THistogramSeries) as THistogramSeries do
  begin
    Add(10);

    for i:=0 to 5 do
      Add(YValue[Count-1]+1);

    AddNull(YValue[Count-1]+1);

    for i:=0 to 5 do
      Add(YValue[Count-1]-1);
  end;
end;