TAChart/fr

From Lazarus wiki
Jump to navigationJump to search

Deutsch (de) English (en) español (es) français (fr) português (pt) русский (ru) українська (uk) 中文(中国大陆)‎ (zh_CN)

A propos

TAChart est un composant LGPL de représentation de graphes pour Lazarus (comme la série(LineSerie ?) des TeeChart ).

Ses caractéristiques principales sont :

  • Nombre illimité de courbes
  • Nombre illimité de points
  • Légende de graphique
  • Titre de graphique
  • Étiquettes aux axes
  • Zoom interactif
  • Cross hair or vertical cross hair cursor with point measure
  • Tracé de ligne entre les points
  • Dessin d'un point sur chaque point
  • Différentes formes de point (carré, cercle, croix, croix de forme diagonale et étoile)
  • Colorisation de chaque point et ligne
  • Miroir sur l'axe des abscisses
  • Limitations automatique ou manuelle du graphique
  • Ajustement linéaire au moindre carré
  • Smart marks drawing
  • Vertical and horizontal line graph type
  • 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.

Capture d'écran

Voici un exemple du composant TAChart affichant une ligne avec du bruit (en bleu), une ligne ajustée (en noir ) et un réticule:


Tachart.png

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 2005/04/06
  • Version 1.1 2005/06/10
 - TTAChart.GetNewColor added to automate color choice. 
 - A lot of bug corrections.
  • Version 1.2 2006/02/01
 - New graphe simple type : Horizontal or vertical line
 - New point shapes
 - Bug correction for Linux
 - Bug correction for cross hair

Dependencies / System Requirements

  • None

Status: Stable

Issues: Tested on Windows and 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 only if you don't want to install the component into the IDE)
  • 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;

Use this code to add a horizontal line :

procedure TForm1.Button12Click(Sender: TObject);
var
  TALine:TTALine;
begin
TALine:=TTALine.Create(TAChart1);
TAChart1.AddSerie(TALine);
TALine.LineStyle:=lsHorizontal;
TALine.Position:=10.231;
TALine.Visible:=True;
end;

See the example project TestOfTAGraph for additional examples of component usage. See a complex application example written in Delphi6PE at the adress : http://www.martinole.org/Waves.html

The TestOfTAGraph Example Application

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

Installation

  • Open TestOfTaGraph.lpi
  • compile
  • run