[FRQ]:expose more parameter for event OnBeforeAdd

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
easyblue
Newbie
Newbie
Posts: 10
Joined: Wed Jan 04, 2012 12:00 am

[FRQ]:expose more parameter for event OnBeforeAdd

Post by easyblue » Tue Feb 14, 2012 8:40 am

Hello

It will be better to expose more parameter for event OnBeforeAdd for TChartSeries as:

TSeriesOnBeforeAdd=Function(Sender:TChartSeries;Const AXValue,AYValue:TChartValue;
Const ALabel:String; AColor:TColor):Boolean of object;


This will give user a much more easy way to eliminate un-qualified value be added to series.

Thanks.

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

Re: [FRQ]:expose more parameter for event OnBeforeAdd

Post by Yeray » Tue Feb 14, 2012 11:53 am

Hi,

I've added it to the wish list to be studied for inclusion in future releases (TV52016034).
Thanks for reporting it.
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

easyblue
Newbie
Newbie
Posts: 10
Joined: Wed Jan 04, 2012 12:00 am

Re: [FRQ]:expose more parameter for event OnBeforeAdd

Post by easyblue » Tue Feb 14, 2012 1:08 pm

Hello

Thanks for quick response.

However, I need to modify my request as following to avoid introducing trouble to your component.

1. the suggested new definition of TSeriesOnBeforeAdd be modified as:
TSeriesOnBeforeAdd=Function(Sender:TChartSeries;Const AXValue,AYValue:TChartValue;
Const ALabel:String; var AColor:TColor):Boolean of object;
AColor is now a VAR parameter.
This is very useful if the user want to replace the unqualified value to a NULL value by setting:
AColor:=clNone;
By this NULL value be added instead of an unqualified value, the chart will looked more neat and clean.
You case see the different in attachment

2. Please also remember to make test on 3D series in case
2.1 a false value is returned by this event
2.2 a true value is returned by this event, but Y value is replaced by a NULL
Attachments
do not add unqualified value.png
the unqualified value are not added.
do not add unqualified value.png (19.79 KiB) Viewed 3968 times
replace unqualifed value to null.png
the unqualified value are replace by NULL
replace unqualifed value to null.png (17.98 KiB) Viewed 3953 times

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

Re: [FRQ]:expose more parameter for event OnBeforeAdd

Post by Yeray » Wed Feb 15, 2012 9:15 am

Hi,

Thanks again for your comments.
All the possibilities we can think on will be tested when this enhancement will be studied for inclusion, but I've added your comments to the ticket description for not to forget the concrete aspects you mentioned.
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

Post Reply