TAChart

From Lazarus wiki
Revision as of 20:18, 7 April 2005 by Marty (talk | contribs) (First version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

About

TAChart is a charting GPL component for Lazarus (TeeChart LineSerie like).

Its main caracteristics are :

  • Unlimited number of curves
  • Unlimited number of points
  • Graph legend
  • Graph title
  • Axis labels
  • Interactive zoom
  • Reticule or vertical reticule with point measure
  • Line drawing between points
  • Point drawing on each point
  • Color each point
  • Mirror on X axis
  • Auto or manual graph limits
  • Linear least square fitting
  • Smart marks drawing
  • Easily extensible to new graph types


The download contains the component, an installation package and a demo application, that illustrates the features of the component along with some instrumentation for evaluating the chart on a given system.

This component was designed for cross-platform applications.

Author

Philippe Martinole

License

LGPL (please contact the author if the LGPL doesn't work with your project licensing)

Download

The latest stable release can be found on the Lazarus CCR Files page.

Change Log

  • Version 1.0 06-04-2005

Getting the latest source from CVS

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/lazarus login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/lazarus co tachart

Dependencies / System Requirements

  • None

Status: Beta

Issues: Tested on Windows. Needs testing on Linux.

Installation

  • Create the directory lazarus\components\tagraph
  • On this directory, unzip the files from tagraph\lazarus\component of the zip file
  • Open lazarus
  • Open the package ta.lpk with Component/Open package file (.lpk)
  • Click on Compile
  • Click on Install

Usage

Drop the component on a form. Change some properties as you like and use this code to add a curve :

procedure TForm1.Button1Click(Sender: TObject);
var
  Serie:TTASerie;
  i:Integer;
begin
Serie:=TTASerie.Create(TAChart1);
TAChart1.AddSerie(Serie);
Serie.ShowLines:=True;
Serie.ShowPoints:=False;
Serie.Title:='Sinus';
for i:=-500 to 499 do
   Serie.AddXY(i/10,Sin(i/10)*10,clBlack);
end;

See the exemple project TestOfTAGraph for additional examples of component usage.

The TestOfTAGraph Exemple Application

The TestOfTAGraph application require TAGraph to be installed in order to compile and operate. It show how to use many of the TAGraph features

Installation

  • Open TestOfTaGraph.lpi
  • compile
  • run