TLineSeries segment colours

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Toreba
Newbie
Newbie
Posts: 29
Joined: Wed Sep 02, 2015 12:00 am

TLineSeries segment colours

Post by Toreba » Thu Jul 14, 2016 9:27 am

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TLineSeries segment colours

Post by Yeray » Fri Jul 15, 2016 7:36 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Toreba
Newbie
Newbie
Posts: 29
Joined: Wed Sep 02, 2015 12:00 am

Re: TLineSeries segment colours

Post by Toreba » Fri Jul 15, 2016 2:39 pm

Yeray,

Okay, thanks for the advice

Regards

Toreba

Post Reply