Object reference not set to an instance of an object.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Eric
Newbie
Newbie
Posts: 99
Joined: Wed Sep 14, 2005 4:00 am

Object reference not set to an instance of an object.

Post by Eric » Mon May 15, 2006 4:01 am

Dear Sir

1. TChart always give me a Object reference not set to an instance of an object error when after draw the Pie or Donut chart and move the mouse cursor to the TChart

2. TChart.Series(l).ColorEach = True is not working
3. Legend is not showing the series color sympol


Please let me know after you finish download the test project, because i need to remove it from my web server and the url post it here.

Thank & Best Regard
Eric
Last edited by Eric on Mon May 15, 2006 2:55 pm, edited 1 time in total.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 15, 2006 1:52 pm

Hi Eric,
1. TChart always give me a Object reference not set to an instance of an object error when after draw the Pie or Donut chart and move the mouse cursor to the TChart


I've been able to reproduce it and added the defect to our bug list (TF02011407) to be fixed for future releases.
2. TChart.Series(l).ColorEach = True is not working


This is because you already selected a color for each series value when populating them. If you don't assign any color and then use ColorEach will work fine.
3. Legend is not showing the series color sympol


This because there are 2 series in the chart and as you set a different color for each value in the series the legend doesn't know which color should paint so no color is displayed.
Please let me know after you finish download the test project, because i need to remove it from my web server and the url post it here.


Thanks, you can already remove it.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Eric
Newbie
Newbie
Posts: 99
Joined: Wed Sep 14, 2005 4:00 am

Post by Eric » Mon May 15, 2006 3:40 pm

Dear Narcís

Can you please update me or here when this problem is solved

How do I remove assigned color into series.
TChart.series(0).color = nothing is not working.

Thank
Eric

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 15, 2006 3:51 pm

Hi Eric,
Can you please update me or here when this problem is solved
I can't give you a date when it will be fixed. Please be aware at this forum for new releases announcements.
How do I remove assigned color into series.
TChart.series(0).color = nothing is not working.
Just use one of the Add's method overrides which don't have the color argument. You'll set the color later with the ColorEach property.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Eric
Newbie
Newbie
Posts: 99
Joined: Wed Sep 14, 2005 4:00 am

Post by Eric » Mon May 15, 2006 4:02 pm

Dear Narcís

Sorry that not work for me.

My program will first draw the 3D Bar chart with the color prefix by system. After that user may change to Pie chart and system use below the code to change the series
Steema.TeeChart.Styles.Series.ChangeType(TChart.Series(l), objChartStyle.GetType)
and the Pie chart need to set ColorEach = true otherwise the pie chart only have one color (Not nice)

So please help!! how to remove assigned color from the series

Thank
Eric

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 15, 2006 4:19 pm

Hi Eric,

Ok, try using this:

Code: Select all

                TChart[l].Colors.Clear();
Instead of:

Code: Select all

                TChart(l).ColorEach = false;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Eric
Newbie
Newbie
Posts: 99
Joined: Wed Sep 14, 2005 4:00 am

Post by Eric » Mon May 15, 2006 4:24 pm

Dear Narcís

Ya.. It work thank...

Eric

Eric
Newbie
Newbie
Posts: 99
Joined: Wed Sep 14, 2005 4:00 am

Post by Eric » Mon Jun 05, 2006 2:48 pm

Dear Sir

May I know when the Pie and Donut problem can be solve? because we need to do a demo at 12/06/06. Can you please solve it asap?

Thank & Best regard
Eric

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jun 06, 2006 10:54 am

Hi Eric,

This has already been fixed. We will try to arrange a debug build during this week.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 09, 2006 11:26 am

Hi Eric,

A new debug build release has been posted at our Customer Download Area.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply