XY-LINE series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Andy
Newbie
Newbie
Posts: 32
Joined: Wed Apr 18, 2007 12:00 am
Location: Germany Oldenburg
Contact:

XY-LINE series

Post by Andy » Mon Sep 03, 2007 1:56 pm

Hello !

I want to make a simple xy-line-series,
that means lines from any xy-point to an other,
without points.

The TLineseries does not work because it sorts the values by x.
Can I disable it?

TPointSeries have not line between the points, be default.
In the chart editor I cannot define lines between it.

But in the TChartPro 7 Demo I find this needed feature in
the Point 3D demo.
In the code page I see:
Series1->LinePen->Visible = CheckBox1->Checked;

I tested it in my program but I did not work.
I see only points :-(

Here is my code
Series1->LinePen->Color=clBlack;
Series1->LinePen->Style=psSolid;
Series1->LinePen->Visible=true;

What must I do ?

Best regards
Andreas Weichert

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Sep 03, 2007 2:02 pm

Hello Andy,

By default line series sorts values as it is designed for plotting sequential data. However, the easiest way to achieve what you request is setting line series order to none before populating the series:

Code: Select all

  Series1.XValues.Order:=loNone;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Mon Sep 03, 2007 7:59 pm

Hello, Andy!
The simplest way to make x-y line series is to use TFastlineSeries
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

Post Reply