Page 1 of 1

TLineSeries segment colours

Posted: Thu Jul 14, 2016 9:27 am
by 16575285
Hi,

With a TLineSeries, I colour values according to a quality attribute, using TLineSeries.AddXY(Const AXValue, AYValue: TChartValue; Const ALabel: String; AColor: TColor), and everything is fine.

Each line segment takes the colour of the following point. Ideally, I'd be able to colour the line segments both sides of the point with the same colour as the point. I know this question is a little bit similar to http://www.teechart.net/support/viewtop ... =3&t=14199, but before diving into that, is there a simple property that controls which line segments adjacent to the point are coloured?

Thanks for any advice

Toreba

Re: TLineSeries segment colours

Posted: Fri Jul 15, 2016 7:36 am
by yeray
Hello Toreba,
Toreba wrote:is there a simple property that controls which line segments adjacent to the point are coloured?
I'm afraid not.
So I'd use two separate series, one for the pointers and anotherone for the line segments, or I'd create a custom series, ie TMyLineSeries = class(TLineSeries) overriding DrawValue method.

Re: TLineSeries segment colours

Posted: Fri Jul 15, 2016 2:39 pm
by 16575285
Yeray,

Okay, thanks for the advice

Regards

Toreba