Page 1 of 1

TeeChart 2010 - TreeMap - No Documentation?

Posted: Sun May 30, 2010 11:55 pm
by 10550242
Hi
I have purchased the TeeChart2010 - and have it installed. I have it working fine in Dephi 2009. I am now trying to figure out how to add items to the TreeMap. However, I am not able to figure out how to add items inside others. The Add method has a parameter called Superior - but I cannot figure out how to use it.

The directory where TeeChart was installed (C:\Program Files\Steema Software\TeeChart Pro 2010 Full Source Code) - has no help file - or sample projects to learn from. All I have below that directory is the Sources directory - and the ones for TeeMaker and TeeTree directories.
Is this normal? If so - what happened to the help file that was with eariler versions? Are their examples how to add things to the TreeMap?

I tried adding it
Series_TreeMap.Add(999,DirectoryName,0,clTeal);
and it gives me a list index out of bounds error.

When I switch the Superior parameter to -1 then
Series_TreeMap.Add(999,DirectoryName,-1,clTeal);
then it loads properly - but then I only get the first level of directories...

So - I am thinking that the Superior parameter has something to do with what blocks are inside of other blocks - but without any docs it is very difficult to figure out.

Can someone point me to some samples - or send me a help file


Bradley MacDonald
TimeAcct Information Systems
brad_AT_timeacct_DOT_com

Re: TeeChart 2010 - TreeMap - No Documentation?

Posted: Mon May 31, 2010 2:46 am
by 10550242
OK - I found that I had only installed the source. But now I have downloaded the full install - and I still have some problems.

The help file does not seem to have much about the TreeMap. In fact there are multiple places where it says it cannot find the help file for version 8 - which thus makes it not too useful. :)

However, the sample seems to explain what is going on. I will play with that for a short while

Bradley

Re: TeeChart 2010 - TreeMap - No Documentation?

Posted: Mon May 31, 2010 9:28 am
by yeray
Hi,

I think you've already found it but, anyway, here is the code used in the Tee9New demo, included in the binary installer and downloadable from here.

Code: Select all

var tmp,
    tmp1,
    tmp2 : Integer;
begin
  With Series1 do
  begin
    Clear;

    tmp:=Add(100, 'A');
      tmp1:=Add(38, 'B', tmp);
        tmp2:=Add(40, 'H', tmp1);
          Add(20, 'N', tmp2);
          Add(30, 'O', tmp2);
      Add(10, 'I', tmp1);
      Add(13, 'J', tmp1);
      Add(10, 'C', tmp);
      tmp1:=Add(35, 'D', tmp);
        tmp2:=Add(20, 'K', tmp1);
          Add(40, 'P', tmp2);
        tmp2:=Add(34, 'L', tmp1);
          Add(24, 'Q', tmp2);
      Add(13, 'E', tmp);
      Add(10, 'F', tmp);
      tmp1:=Add(19, 'G', tmp);
        Add(16, 'M', tmp1);

    Format.Shadow.Visible:=True;
  end;
end;
The binary version is the one that includes the help files and examples.
TimeAcct wrote:In fact there are multiple places where it says it cannot find the help file for version 8 - which thus makes it not too useful. :)
Could you please tell us where did you found these wrong references?

Re: TeeChart 2010 - TreeMap - No Documentation?

Posted: Mon May 31, 2010 1:11 pm
by 10550242
Yeray,

Thank you for the reply on the code.

In terms of the help file....

1. Open the main help file - and search for TreeMap. All you get is AfterDraw, DeletedShapes for the TTeeAnimatedEditor. Nothing on the TreeMap.
while this is not a bug or a missing link - I was surprised I could not find a series by its name

2. One example in on the page (ms-help://embarcadero.rs2009/TeeChart8Standard/html/TCustomChart.OnClickSeries.html)
Here I cannot follow the link in the text
Description
An OnClickSeries event occurs whenever the user clicks onto any Chart TChartSeries.html">Series point.

3. This morning I cannot seem to duplicate the issue with the version 8 message. If I come across it again - I will resend it.

Bradley

Re: TeeChart 2010 - TreeMap - No Documentation?

Posted: Tue Jun 01, 2010 2:09 pm
by yeray
Hi Bradley,

You are right. I've added these missing pages and the link problem in the defect list to be fixed in future releases (TV52014925).
If you find more inconsistencies, please, don't hesitate to let us know.