Clustering with TeeChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
David Berneda
Site Admin
Site Admin
Posts: 81
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia

Clustering with TeeChart

Post by David Berneda » Tue Jun 14, 2011 8:44 pm

Hi !
There's a new sub-project (the idea is to include it with the next future version of TeeChart), to perform "Clustering" algorithms.
For more information and an executable beta example, visit this link: ... orial.html

As always, feel free to post here your inquiries and suggestions !

Posts: 6
Joined: Fri Nov 11, 2011 12:00 am

Re: Clustering with TeeChart

Post by emwamin » Fri Nov 11, 2011 4:44 pm


This is a great tool. If I can make it work. I am running D7 and just installed Teechart 2011. Actually I purchased the upgarde for this tool.

So I start with adding the followig to my code:

uses TeeClusteringTool;

Delphi complains that it cannot find "TeeClusteringTool.dcu"

So add the following sourse files to my project:

"TeeClusteringTool.pas" and "TeeClustering.pas"

and compile again and get the following errors:

[Error] TeeClusteringTool.pas(540): This form of method call only allowed for class methods
[Error] TeeClusteringTool.pas(541): Undeclared identifier: 'PolygonCentroid'
[Error] TeeClusteringTool.pas(774): Undeclared identifier: 'Z'
[Error] TeeClusteringTool.pas(864): Undeclared identifier: 'PolygonCentroid'
[Fatal Error] XPplot.pas(13): Could not compile used unit 'TeeCluster\TeeClusteringTool.pas

and it comes from this function:

function TClusteringTool.GetHullCentroid(const ACluster:TCluster):TPointFloat;
var tmp : TPointArray;
GetClusterPoints(ACluster, tmp);
TTeeCanvas.ConvexHull(tmp); <------------------ Error starts here.

How can I proceed?

Can you provide sample code for the demo you have for this tool?


Site Admin
Site Admin
Posts: 8969
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Re: Clustering with TeeChart

Post by Yeray » Tue Nov 15, 2011 8:23 am

Hello emwamin,

You are right. We'll try to correct it for the next maintenance releases.
I'll send you the required units to the mail account you have registered in these forums.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply