Page 1 of 1

Completely broken latest version 4.2023.3.23

Posted: Tue Apr 04, 2023 1:43 pm
by 15692702
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

Re: Completely broken latest version 4.2023.3.23

Posted: Tue Apr 04, 2023 5:03 pm
by Christopher
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.

Re: Completely broken latest version 4.2023.3.23

Posted: Mon Oct 09, 2023 2:38 pm
by 15692046
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).

Re: Completely broken latest version 4.2023.3.23

Posted: Tue Oct 10, 2023 3:26 pm
by ruben
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

Re: Completely broken latest version 4.2023.3.23

Posted: Wed Mar 20, 2024 8:38 am
by 15695505
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

Re: Completely broken latest version 4.2023.3.23

Posted: Thu Mar 21, 2024 8:46 am
by edu
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.

Re: Completely broken latest version 4.2023.3.23

Posted: Fri Mar 22, 2024 8:27 am
by edu
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.

Re: Completely broken latest version 4.2023.3.23

Posted: Thu Apr 18, 2024 12:30 pm
by 15695505
I applied the workaround and it seems to solve the issue.
Thanks for your quick response.
:D