How to best show/highlight series values that are hitting min/max limits?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
X-ray
Newbie
Newbie
Posts: 12
Joined: Thu Dec 15, 2022 12:00 am

How to best show/highlight series values that are hitting min/max limits?

Post by X-ray » Mon Aug 19, 2024 9:57 am

We often show process values/parameters using multiple Line series:
Capture.PNG
Capture.PNG (213.53 KiB) Viewed 11117 times
Now we want to highlight values per Line series that are outside certain user given min/max limits. Is there a TChart Tool or a certain Series for that, or do we need to develop our own tool for that? Like drawing something on the Canvas in the OnAfterDraw event of the Chart etc.

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

Re: How to best show/highlight series values that are hitting min/max limits?

Post by Yeray » Mon Aug 19, 2024 11:52 am

Hello,

I believe you are trying to achieve something very similar to what was discussed in this thread.
Take a look at the example here.
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

X-ray
Newbie
Newbie
Posts: 12
Joined: Thu Dec 15, 2022 12:00 am

Re: How to best show/highlight series values that are hitting min/max limits?

Post by X-ray » Mon Aug 19, 2024 5:12 pm

Hello Yeray,

Thanks for the Tip, but all these lines add too much "Noise" to the graphics. I am now creating an extra TPointSeries that contains the violating Points as Yellow semitransparent circles. So the graphics only gets more populated with "stuff" in case there are min/max violations.
CaptureNew.PNG
CaptureNew.PNG (245.7 KiB) Viewed 11079 times
But maybe I will use your tip for some other purpose.

Thanks and best regards,

Thomas

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

Re: How to best show/highlight series values that are hitting min/max limits?

Post by Yeray » Tue Aug 20, 2024 6:44 am

Hello,

Of course drawing the horizontal threshold line(s) is just an option.
Also note it's simpler if you only want to draw pointers where the values are out of the range; the tricky part in that example was to change the line pen between the in-range and the out-range points.
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