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 - TreeMapSeries draws small nodes as lines out of the parent shape in GDI
Summary: TreeMapSeries draws small nodes as lines out of the parent shape in GDI
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 131119
Hardware: PC Windows
: High enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-25 07:57 EST by yeray alonso
Modified: 2016-07-18 11:09 EDT (History)
0 users

See Also:
Chart Series: ---
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 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;