NET 2 & NET 3 versions of TChart - differences

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

NET 2 & NET 3 versions of TChart - differences

Post by speedwell » Tue Mar 04, 2008 11:35 am

Bugs?
Font faces and sizes on Chart title / legend / axis / annotations are different between NET 2 & NET 3 versions

The "Shape" positioning is wrong - although I noticed the same problem with a recent version of the TeeChartNET2VSNET2005 and refer http://www.teechart.net/support/viewtop ... e+position
which still doesn't appear to be fixed

The "Shape" transparency doesn’t appear to work anymore

Series points which should be spheres with a gradient have an empty square within.

Chart Paging behavior is different (I've never really found that it worked consistently though)

Using Vista Business, Visual Studio 2005 SP1, .NET 2.0.50727 and TeeChartPro v2.0.2586.24039 as the reference version compared with Feb 08 release of TeeChartNET3VSNET2005

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 Mar 04, 2008 12:44 pm

Hi speedwell,
Font faces and sizes on Chart title / legend / axis / annotations are different between NET 2 & NET 3 versions
Some defaul fonts settings may have been changed between v2 and v3.
The "Shape" positioning is wrong - although I noticed the same problem with a recent version of the TeeChartNET2VSNET2005 and refer http://www.teechart.net/support/viewtop ... e+position
which still doesn't appear to be fixed
As I posted on that thread this issue was fixed.
The "Shape" transparency doesn’t appear to work anymore

Series points which should be spheres with a gradient have an empty square within.
Could you please send us a simple example project we can run "as-is" to reproduce the issues here? We will try to debug the project in v2 and v3.
Chart Paging behavior is different (I've never really found that it worked consistently though)
Which is the exact problem you are having with paging?
Using Vista Business, Visual Studio 2005 SP1, .NET 2.0.50727 and TeeChartPro v2.0.2586.24039 as the reference version compared with Feb 08 release of TeeChartNET3VSNET2005
Please notice that there are much newer releases of TeeChart for .NET v2 as announced here.

You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
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

speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

Post by speedwell » Tue Mar 04, 2008 1:09 pm

I have uploaded bitmap comparisons of a chart loaded identically comparing my Net2 reference with the latest Net3 version which better demonstrates the differences - I wish I had time to build a standalone version for you!

Regarding Shape positioning I believe said problem still exists - unless the mechanism for positioning a shape has changed.

Regarding Shape transparency / point spheres - see uploaded bitmaps

When programmatically switching the chart paging on and off the chart no longer refreshes - until the mouse is moved over the chart window for example.

Hope this helps...

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 Mar 04, 2008 3:04 pm

Hi speedwell,

Thanks for the files.
I have uploaded bitmap comparisons of a chart loaded identically comparing my Net2 reference with the latest Net3 version which better demonstrates the differences - I wish I had time to build a standalone version for you!
If it's not possible to send an example project could you please export the v2 chart to a .ten file and we will compare it here with v2 and v3?
Regarding Shape positioning I believe said problem still exists - unless the mechanism for positioning a shape has changed.

Regarding Shape transparency / point spheres - see uploaded bitmaps
Have you tried this using latest TeeChart for .NET v2 and v3 versions available at the client download area?

Both issues work fine for me here using code below in v2 and v3.

Code: Select all

			Steema.TeeChart.Styles.Shape shape1 = new Steema.TeeChart.Styles.Shape(tChart1.Chart);

			shape1.X0 = -50;
			shape1.Y0 = 0;
			shape1.X1 = 50;
			shape1.Y1 = 20;

			shape1.Brush.Transparency = 50;
When programmatically switching the chart paging on and off the chart no longer refreshes - until the mouse is moved over the chart window for example.


Are you changing pages as I posted in my first reply on this thread?


Thanks in advance.
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

speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

Post by speedwell » Tue Mar 04, 2008 3:55 pm

NET2 .ten chart uploaded for your perusal

Re-testing with the latest NET2 and NET3 versions fail on both the shape transparency and position, only NET3 fails with the series point display problem. Apologies on the Paging front - because the paging didn't work reliably the paging implementation had been re-written which manually adjusts the x-axis to mimic the same behavior - however the act of updating the Axes.Bottom.Minimum and Maximum does not cause chart refresh in the same manner in NET3.

Regarding the shape composition, it is done as follows:
Steema.TeeChart.Styles.Shape oBubble = new Steema.TeeChart.Styles.Shape();
oBubble.BeginUpdate();
try
{
oBubble.Title = String.Format("~{0}km", DistanceInMetres);
oBubble.Color = Colour;
oBubble.Pen.Transparency = C_PEN_TRANSPARENCY;
oBubble.Brush.Transparency = C_BRUSH_TRANSPARENCY;
oBubble.Add(StationCoord.X - Radius, StationCoord.Y - Radius);
oBubble.Add(StationCoord.X + Radius, StationCoord.Y + Radius);
}
finally
{
oBubble.EndUpdate();
}
Chart.Series.Add(oBubble);

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

Post by Narcís » Wed Mar 05, 2008 9:09 am

Hi speedwell,

Thanks for the .ten file. Below there's what I got loading it using latest v2 and v3 releases.

NET2SpeedwellChart.ten loaded with v2:

Image

NET2SpeedwellChart.ten loaded with v3:

Image

As you can see, the main difference is that shapes are rendered different in both versions. I've added this issue (TF02012873) to our defect list to be reviewed for next releases. However, they are possitioned correctly. Could you also please try positioning shape series as in the code snippet I posted yesterday?

Regarding axes adjusting, could you please give us some more details about the exact problem?

Thanks in advance.
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

speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

Post by speedwell » Wed Mar 05, 2008 9:42 am

Hi,
I have modified code as suggested and this fixes both the shape positioning and transparency problem - evidently the Shape.Add() overload I was using previously no longer works!

Regarding the axes adjustment - I have a chart with several fast line series on it, the bottom axes is a DateTime axes. In simple terms by reducing the date range being displayed by adjusting the Chart.Axes.Bottom.Minimum and Maximum this successfully adjusts what is displayed. To return to the original display - showing everything, calling Chart.axes.Bottom.Automatic = true does not refresh the chart. Moving the mouse over the chart will cause a refresh.

Hope this helps

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

Post by Narcís » Wed Mar 05, 2008 10:10 am

Hi speedwell,
I have modified code as suggested and this fixes both the shape positioning and transparency problem - evidently the Shape.Add() overload I was using previously no longer works!
Code below works fine for me here also using latest releases of both v2 and v3.

Code: Select all

			Steema.TeeChart.Styles.Shape shape1 = new Steema.TeeChart.Styles.Shape(tChart1.Chart);
			shape1.Add(0, 0);
			shape1.Add(100, 100);
Regarding the axes adjustment - I have a chart with several fast line series on it, the bottom axes is a DateTime axes. In simple terms by reducing the date range being displayed by adjusting the Chart.Axes.Bottom.Minimum and Maximum this successfully adjusts what is displayed. To return to the original display - showing everything, calling Chart.axes.Bottom.Automatic = true does not refresh the chart. Moving the mouse over the chart will cause a refresh.
Thanks for the info. In that case you can use the code below. I've checked that the Refresh call is not necessary in v2 so I'll add this to the bug list to be reviewed for next releases.

Code: Select all

			tChart1.Axes.Bottom.Automatic = true;
			tChart1.Refresh();
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

speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

Post by speedwell » Wed Mar 05, 2008 10:18 am

I cannot concur with the Add overload - this does not work for me!

However I can use your suggested work around using the X0, Y0, X1, Y1.

I look forward to the other fixes in a future release.
Thanks for your help.

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

Post by Narcís » Wed Mar 05, 2008 10:24 am

Hi speedwell,
I cannot concur with the Add overload - this does not work for me!
Are you using latest TeeChart for .NET v3 maintenance release from 28th February?

Thanks in advance.
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

speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

Post by speedwell » Wed Mar 05, 2008 11:11 am

The downloads digital signature contains the following time stamp:
28 February 2008 10:43:06

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

Post by Narcís » Wed Mar 05, 2008 11:52 am

Hi speedwell,

Thanks for the information. Would you be so kind to arrange a simple example project we can run "as-is" to reproduce shape series positioning issue here?

Thanks in advance.
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

speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

Post by speedwell » Wed Mar 05, 2008 12:23 pm

Hmm, just a hunch - in your test code you supplied to me

Steema.TeeChart.Styles.Shape shape1 = new Steema.TeeChart.Styles.Shape(tChart1.Chart);
shape1.Add(0, 0);
shape1.Add(100, 100);

Try modifying the coordinates off the origin - use negative values for example..

Does it still work?

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

Post by Narcís » Wed Mar 05, 2008 12:44 pm

Hi speedwell,

Thanks for the information.

This casually worked because 0,0 and 100,100 are the default values of a shape series when creating it. However, the code below doesn't work fine for me here neither using v2 nor with v3.

Code: Select all

			shape1.Add(-50, -50);
			shape1.Add(50, 50); 
You need to set up shape series as I told you before.
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

speedwell
Newbie
Newbie
Posts: 19
Joined: Tue Oct 30, 2007 12:00 am

Post by speedwell » Wed Mar 05, 2008 1:07 pm

Yes - this used to work - albeit in an older v2....

Post Reply