Show only certain series in legend as checkboxes

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
EdDressel
Newbie
Newbie
Posts: 1
Joined: Mon Dec 07, 2020 12:00 am

Show only certain series in legend as checkboxes

Post by EdDressel » Mon Mar 01, 2021 9:59 pm

I need to be able to show only certain series in the legend as checkboxes--most of the series always show, the user has the ability to turn off/off only a few series?

How can I do that?

Thank you,

Ed Dressel

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

Re: Show only certain series in legend as checkboxes

Post by Yeray » Tue Mar 02, 2021 3:04 pm

Hello Ed,

I'm afraid the legend doesn't support this level of customization. However, you could draw your own legend manually at the OnAfterDraw event.
I've written a simple example:
LegendSomeCheckBoxes.zip
(2.12 KiB) Downloaded 841 times
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