Completely broken latest version 4.2023.3.23

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mth
Newbie
Newbie
Posts: 11
Joined: Thu Dec 30, 2021 12:00 am

Completely broken latest version 4.2023.3.23

Post by Mth » Tue Apr 04, 2023 1:43 pm

Visual Studio 2022,
.net7.0 console project,
Steema.TeeChart.NET.Pro (4.2023.3.23)

1. This version doesn't work at all. It throws an exception in the constructor itself !

Code: Select all

using Steema.TeeChart;
using Steema.TeeChart.Styles;
using System.Drawing;

var mChart = new TChart();
System.ArgumentNullException: 'Value cannot be null. Arg_ParamName_Name'

at System.ArgumentNullException.Throw(String paramName)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Steema.TeeChart.Drawing.TeeBase.Instantiate[T](T property, Type type, Object[] args)
at Steema.TeeChart.Axis..ctor(Chart c)
at Steema.TeeChart.Axes..ctor(Chart c)
at Steema.TeeChart.Chart.InitVars()
at Steema.TeeChart.Chart..ctor(IChart parent, ILicenseProvider provider)
at Steema.TeeChart.TChart..ctor()
at Program.<Main>$(String[] args) in C:\Users\MicThi\source\repos\TeeChartNetConsoleTest\Program.cs:line 5

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

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Completely broken latest version 4.2023.3.23

Post by Christopher » Tue Apr 04, 2023 5:03 pm

Mth wrote:
Tue Apr 04, 2023 1:43 pm
Visual Studio 2022,
.net7.0 console project,
Steema.TeeChart.NET.Pro (4.2023.3.23)

1. This version doesn't work at all. It throws an exception in the constructor itself !
Thank you for reporting this issue to us; we have added it to our issue tracker with id=2599. Apologies for any inconvenience caused by this issue—until a new release becomes available, please use the previous NuGet v.4.2023.3.13. We have already fixed this problem, and hope to make a new release available in the near future.
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.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

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

Re: Completely broken latest version 4.2023.3.23

Post by sydro_consult » Mon Oct 09, 2023 2:38 pm

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).

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

Re: Completely broken latest version 4.2023.3.23

Post by Rubén » Tue Oct 10, 2023 3:26 pm

Hi,

thank you for your feedback. We have added this request to Bugzilla, and we are actively working on implementing a solution to address this issue.

https://www.steema.com/bugs/show_bug.cgi?id=2635

Regards,
Rubén

Calsep
Newbie
Newbie
Posts: 2
Joined: Mon Mar 27, 2023 12:00 am

Re: Completely broken latest version 4.2023.3.23

Post by Calsep » Wed Mar 20, 2024 8:38 am

Christopher wrote:
Tue Apr 04, 2023 5:03 pm
Mth wrote:
Tue Apr 04, 2023 1:43 pm
Visual Studio 2022,
.net7.0 console project,
Steema.TeeChart.NET.Pro (4.2023.3.23)

1. This version doesn't work at all. It throws an exception in the constructor itself !
Thank you for reporting this issue to us; we have added it to our issue tracker with id=2599. Apologies for any inconvenience caused by this issue—until a new release becomes available, please use the previous NuGet v.4.2023.3.13. We have already fixed this problem, and hope to make a new release available in the near future.
Mth wrote:
Tue Apr 04, 2023 1:43 pm

Best regards
Although the item 2599 is now marked as fixed the same exception happens when creating a ColorGrid.
We have tried with several of the nuget packages including the latest 4.2024.3.15 and v4.2023.3.13 as well as older nuget packages. They all throws the exception.


System.ArgumentNullException: Value cannot be null. (Parameter 'type')
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Steema.TeeChart.Styles.Series..ctor(Chart c)
at Steema.TeeChart.Styles.Custom3D..ctor(Chart c)
at Steema.TeeChart.Styles.Custom3DPalette..ctor(Chart c)
at Steema.TeeChart.Styles.ColorGrid..ctor(Chart c)
at Steema.TeeChart.Styles.ColorGrid..ctor()
at


We discovered this while upgrading a WinForms App to .NET 6 from .Net Framework 4.72 which were using TeeChart v4.1.2015.3112.

Best regards

Edu
Newbie
Newbie
Posts: 39
Joined: Tue Nov 28, 2023 12:00 am

Re: Completely broken latest version 4.2023.3.23

Post by Edu » Thu Mar 21, 2024 8:46 am

Calsep wrote:
Wed Mar 20, 2024 8:38 am

Although the item 2599 is now marked as fixed the same exception happens when creating a ColorGrid.
We have tried with several of the nuget packages including the latest 4.2024.3.15 and v4.2023.3.13 as well as older nuget packages. They all throws the exception.


System.ArgumentNullException: Value cannot be null. (Parameter 'type')
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Steema.TeeChart.Styles.Series..ctor(Chart c)
at Steema.TeeChart.Styles.Custom3D..ctor(Chart c)
at Steema.TeeChart.Styles.Custom3DPalette..ctor(Chart c)
at Steema.TeeChart.Styles.ColorGrid..ctor(Chart c)
at Steema.TeeChart.Styles.ColorGrid..ctor()
at


We discovered this while upgrading a WinForms App to .NET 6 from .Net Framework 4.72 which were using TeeChart v4.1.2015.3112.

Best regards
Thank you for reporting this bug. We're working on fixing the issue and expect to have it resolved soon.
Until it is fixed, there's an easy workaround: if a chart is created before creating any series, the bug doesn't occur. Here's an example:

Code: Select all

           //Empty chart that won't do anything. Alternatively, create your usefulChart here. 
            TChart emptyChart = new TChart();
            
            //Initialize your series (ColorGrid as per requested)
            ColorGrid cg = new ColorGrid();

            //(Optional) Your code modifying the colorgrid 
            for (int i = 0; i < 10; i++) cg.Add(i, i * 3);

            //Setting up whichever chart you may need.
            TChart usefulChart = new TChart();
            usefulChart.Series.Add(cg);
We are sorry for the inconvenience.
Edu
Steema Support

Edu
Newbie
Newbie
Posts: 39
Joined: Tue Nov 28, 2023 12:00 am

Re: Completely broken latest version 4.2023.3.23

Post by Edu » Fri Mar 22, 2024 8:27 am

Hi,
A solution has been applied to the code for inclusion with the next maintenance update.
Instead of creating a chart before creating series, you will have the option to call a static method instead that will solve this issue.
For example:

Code: Select all

		//One line of code. No need to create an object.
		TChart.InitTypes();

		//Create and work with your series.
		ColorGrid cg = new();
Please keep in mind that these changes won't be live until our next update, that we expect for release very soon.

Thank you for reporting this issue and for your patience.

Best regards.
Edu
Steema Support

Calsep
Newbie
Newbie
Posts: 2
Joined: Mon Mar 27, 2023 12:00 am

Re: Completely broken latest version 4.2023.3.23

Post by Calsep » Thu Apr 18, 2024 12:30 pm

I applied the workaround and it seems to solve the issue.
Thanks for your quick response.
:D

Post Reply