Recommended replacement for deprecated legend checkboxes?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
sydro_consult
Newbie
Newbie
Posts: 12
Joined: Tue Oct 19, 2021 12:00 am

Recommended replacement for deprecated legend checkboxes?

Post by sydro_consult » Tue Oct 10, 2023 1:42 pm

I stumbled upon this issue where legend checkboxes seem to have been deprecated at some point pretty recently (somwehere between 4.2022.8.23 and 4.2023.8.31).
Christopher wrote:
Tue Apr 04, 2023 5:03 pm
Mth wrote:
Tue Apr 04, 2023 1:43 pm
2. The "CheckBoxes" property has disappeared from Chart.Legend so the following code does not compile:

Code: Select all

mChart.Legend.CheckBoxes = true;
Best regards
Yes, this property has been deprecated, the reasons for which we explain here.
Is there a recommended replacement solution for the deprecated legend checkboxes? This feature is very important for our applications. Our users need to be able to quickly switch individual series on and off (without having to open the chart editor).

Also, in which version exactly was the feature removed?

EDIT: according to the linked explanation, it was removed because of changes in .NET 5.0/6.0/7.0. But it has also been removed for .NET Framework 4.8, why?

sydro_consult
Newbie
Newbie
Posts: 12
Joined: Tue Oct 19, 2021 12:00 am

Re: Recommended replacement for deprecated legend checkboxes?

Post by sydro_consult » Sat Oct 28, 2023 9:53 am

After testing all previous versions before the latest version 4.2023.10.25 individually, I have found that the legend checkboxes were apparently removed in v2023.5.23. The last version where they were still worked is 4.2023.4.18. (I am testing with an application targeting .NET Framework v4.8 )

This is the changelog for version v2023.5.23:
Bugfixes/changes:
Changes & bugfixes
=====================================
Binary Release, Nuget 23th May 2023:
https://www.nuget.org/packages/Steema.T ... .2023.5.23
https://www.nuget.org/packages/Steema.T ... .2023.5.23
Following the "Bugfixes/changes" link shows that supposedly only a single, completely unrelated issue was fixed in this version ("Setting Line Series Smoothing from True to False loses data when DataMembers are set").

I expect such a significant change to at least be mentioned in the changelog. A deprecation notice beforehand would have been even better.

After asking about it in another thread, an issue has been opened on the bugtracker, describing it as "a new feature/wish to be considered for further versions". But this is not about a new feature, it is about an existing feature that was suddenly removed without notice!

Please, Steema, tell me whether you plan to restore this feature or implement an alternative solution soon. My subscription depends on it.

And please, can you publish more detailed changelogs in future that actually tell me what has changed? Or is there some other changelog that I am not aware of?

Rubén
Newbie
Newbie
Posts: 18
Joined: Fri Nov 19, 2010 12:00 am

Re: Recommended replacement for deprecated legend checkboxes?

Post by Rubén » Thu Nov 02, 2023 1:10 pm

Hi,

we are working on including a strikethrough line as a replacement for checkboxes.

https://gyazo.com/00727be72f2381d285f472a8e23d4f76

Regards,
Ruben

sydro_consult
Newbie
Newbie
Posts: 12
Joined: Tue Oct 19, 2021 12:00 am

Re: Recommended replacement for deprecated legend checkboxes?

Post by sydro_consult » Sat Nov 04, 2023 9:06 am

Hi,

that's great to hear!

Any possibility of being able to customize the way in which deactivated legend items are displayed? Maybe instead of strikethrough also have the possibility to display them as faded, similar to e.g. https://plotly.com/python/legend/ ?

Regards,
Felix

Post Reply