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 1413

Summary: TreeMapSeries draws small nodes as lines out of the parent shape in GDI
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: High    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2016-01-25 07:57:09 EST
Having a TreeMapSeries with some small values to be drawn on the right, they are drawn as vertical lines out of their ancestor parent shape rectangle; probably due to the margin between shapes.

This happens on GDI but not in GDIPlus.
Happens since the first release of the series, in v2010.


uses Chart, TeeConst, TeeTreeMapSeries, TeCanvas, TeeTools;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Caption:=TeeMsg_Version;
  Chart1:=TChart.Create(Self);

  with Chart1 do
  begin
    Parent:=Self;
    Align:=alClient;
    Canvas:=TTeeCanvas3D.Create;

    with Chart1.AddSeries(TTreeMapSeries) as TTreeMapSeries do
    begin
      Add(100,'first');
      Add(100,'second', 0, clWhite);
      Add(100,'third', 0, clWhite);
      Add(10,'fourth', 0, clWhite);
      Add(1,'fifth', 3, clWhite);
      Add(1,'sixth', 0, clWhite);
      Add(1,'seventh', 5, clWhite);
      Add(1,'eighth', 6, clWhite);
      Add(1,'ninth', 7, clWhite);
    end;
  end;
end;