Page 1 of 1
Object reference not set to an instance of an object.
Posted: Mon May 15, 2006 4:01 am
by 9638303
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
Posted: Mon May 15, 2006 1:52 pm
by narcis
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.
Posted: Mon May 15, 2006 3:40 pm
by 9638303
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
Posted: Mon May 15, 2006 3:51 pm
by narcis
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.
Posted: Mon May 15, 2006 4:02 pm
by 9638303
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
Posted: Mon May 15, 2006 4:19 pm
by narcis
Hi Eric,
Ok, try using this:
Instead of:
Posted: Mon May 15, 2006 4:24 pm
by 9638303
Dear Narcís
Ya.. It work thank...
Eric
Posted: Mon Jun 05, 2006 2:48 pm
by 9638303
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
Posted: Tue Jun 06, 2006 10:54 am
by narcis
Hi Eric,
This has already been fixed. We will try to arrange a debug build during this week.
Posted: Fri Jun 09, 2006 11:26 am
by narcis
Hi Eric,
A new debug build release has been posted at our Customer Download Area.