Hi,
With a TLineSeries, I colour values according to a quality atribute. To do this I use TLineSeries.AddXY(Const AXValue, AYValue: TChartValue; Const ALabel: String; AColor: TColor), and everything is fine. The pointers are coloured as expected. Each line segment takes the colour of the following point.
But, if the TLineSeries is created first from a saved template, and has its properties assigned using the method AssignFormat, then it seems that the AddXY method colours only the line segments, and not the pointers.
Is there a property of a TLineSeries that separately controls whether line segments and pointers receive the colour specified in the call to AddXY?
Thanks for any advice.
Toreba
Colouring points individually
Re: Colouring points individually
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Colouring points individually
Yeray,
I think that both properties 'ColorEachPoint' and 'ColorEachLine' are true by default, and so are not saved to stream with the method SaveChartToStream. So when I then use the method AssignFormat to apply a 'template' from a saved graph to a new series, these two property settings will be absent and so these properties will not be set in the target series. Is that correct?
Regards
Toreba
I think that both properties 'ColorEachPoint' and 'ColorEachLine' are true by default, and so are not saved to stream with the method SaveChartToStream. So when I then use the method AssignFormat to apply a 'template' from a saved graph to a new series, these two property settings will be absent and so these properties will not be set in the target series. Is that correct?
Regards
Toreba
Re: Colouring points individually
Hello Toreba,
That's correct. The properties that rest in the their default aren't streamed so they aren't loaded in the new object, but the properties should again be in their defaults.
That's correct. The properties that rest in the their default aren't streamed so they aren't loaded in the new object, but the properties should again be in their defaults.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Colouring points individually
Yeray,
Yes, that makes sense. Thanks for your help.
Regards
Toreba
Yes, that makes sense. Thanks for your help.
Regards
Toreba