Page 1 of 1

XY-LINE series

Posted: Mon Sep 03, 2007 1:56 pm
by 9244864
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

Posted: Mon Sep 03, 2007 2:02 pm
by narcis
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;

Posted: Mon Sep 03, 2007 7:59 pm
by 9047589
Hello, Andy!
The simplest way to make x-y line series is to use TFastlineSeries