Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
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
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.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Eric,
I've been able to reproduce it and added the defect to our bug list (TF02011407) to be fixed for future releases.
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.
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.
Thanks, you can already remove it.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Eric,
I can't give you a date when it will be fixed. Please be aware at this forum for new releases announcements.Can you please update me or here when this problem is solved
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.How do I remove assigned color into series.
TChart.series(0).color = nothing is not working.
Best Regards,
Narcís Calvet / 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 |
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Eric,
Ok, try using this:
Instead of:
Ok, try using this:
Code: Select all
TChart[l].Colors.Clear();
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Eric,
This has already been fixed. We will try to arrange a debug build during this week.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Eric,
A new debug build release has been posted at our Customer Download Area.
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 |
Instructions - How to post in this forum |