not all labels are displayed on bottom axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SvenE
Newbie
Newbie
Posts: 7
Joined: Thu May 29, 2008 12:00 am

not all labels are displayed on bottom axis

Post by SvenE » Thu Jan 07, 2010 10:47 am

For some years now we create a specific chart see below chart and data. Since we are using the teechart . net V3 for visual studio 2008 we are see that not all labels are displayed on the bottom axis. Is there some changed functionality in version 3?

The graphserie has the following settings
Type= GraphSerie.SerieStyles.StyleLine
Color = System.Drawing.Color.Black
LineStyle = Drawing2D.DashStyle.Solid

We add data using
AddDataPoint(New GraphData(<label>,<value>))
Attachments
previous.JPG
image of chart with complete bottom axis
previous.JPG (39.47 KiB) Viewed 10360 times
vs2008.JPG
image of chart with incomplete bottom axis
vs2008.JPG (40.92 KiB) Viewed 10360 times

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

Re: not all labels are displayed on bottom axis

Post by Narcís » Thu Jan 07, 2010 3:04 pm

Hi SvenE,

TeeChart sources are constantly being modified and we are constantly trying to enhance them and fix as many bugs as possible. However, it can also happen that some functionality has been broken. Anyway, I would expect functionality being the same in this field. Could you please check if latest TeeChart for .NET v3 update build available solves the problem at your end and if it doesn't attach a simple example project we can run "as-is" to reproduce the problem here and let us know which which TeeChart version it worked as expected?

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

SvenE
Newbie
Newbie
Posts: 7
Joined: Thu May 29, 2008 12:00 am

Re: not all labels are displayed on bottom axis

Post by SvenE » Thu Jan 07, 2010 3:20 pm

Hi,

I downloaded the laters version today and the problem still exists.

The version TeeChartNET12004.16592.exe did not have this problem. I'll check if I can create a simple test application to demonstrate the issue. Can I upload a RAR file tot this forum?

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

Re: not all labels are displayed on bottom axis

Post by Narcís » Thu Jan 07, 2010 3:24 pm

Hi SvenE,
I downloaded the laters version today and the problem still exists.

The version TeeChartNET12004.16592.exe did not have this problem.
Thanks for your feedback. That's TeeChart for .NET v1 Build 1.1.2004.16592 from June 2005.
I'll check if I can create a simple test application to demonstrate the issue.


Excellent, thanks!
Can I upload a RAR file tot this forum?
Yes, I think so.
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

SvenE
Newbie
Newbie
Posts: 7
Joined: Thu May 29, 2008 12:00 am

Re: not all labels are displayed on bottom axis

Post by SvenE » Fri Jan 08, 2010 8:08 am

Hi I want to upload a rar with the sample visual studio solution, but your upload routine has a max file size of 512KiB. the upload is 1.138. Is there an other way to send you this sample?

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

Re: not all labels are displayed on bottom axis

Post by Narcís » Fri Jan 08, 2010 9:00 am

Hi SvenE,

Please try posting it at our upload page:

http://www.steema.net/upload

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

SvenE
Newbie
Newbie
Posts: 7
Joined: Thu May 29, 2008 12:00 am

Re: not all labels are displayed on bottom axis

Post by SvenE » Fri Jan 08, 2010 9:08 am

Hi,

I uploaded the sample project using the upload page,

regards,
Marc Evers

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

Re: not all labels are displayed on bottom axis

Post by Narcís » Fri Jan 08, 2010 3:33 pm

Hi Marc,

Thanks for the example project. I could reproduce the issue here. I checked it works fine in TeeChart for .NET v1 and v2 but fails in v3 and 2009. I've added the defect to the list to be fixed with ticket number TF02014629.

In the meantime, a workaround is using custom labels, for example:

Code: Select all

		Dim myXMLfile As String = "tchart.xml"
		Dim ds As New DataSet()
		Dim fsReadXml As New System.IO.FileStream(myXMLfile, System.IO.FileMode.Open)
		Try
			ds.ReadXml(fsReadXml)
		Catch ex As Exception
			MessageBox.Show(ex.ToString())
		Finally
			fsReadXml.Close()
		End Try


		With TChart1
			.Dock = DockStyle.Fill
			Dim s As TeeChart.Styles.Line = New TeeChart.Styles.Line(.Chart)

			s.LinePen.Style = Drawing2D.DashStyle.Solid
			s.LinePen.Width = 1
			s.LinePen.EndCap = Drawing2D.LineCap.Round
			s.Color = Color.Black
			.Legend.CustomPosition = False
			.Legend.ResizeChart = True
			.Axes.Right.Grid.Visible = False
			s.Title = "sample chart"

			For Each row As DataRow In ds.Tables(2).Rows
				s.Add(CDbl(row(1).ToString()), row(0).ToString)
			Next

			.Axes.Bottom.Labels.Items.Clear()

			For i As Integer = 1 To s.Count - 1
				If s.Labels(i) <> "" Then
					.Axes.Bottom.Labels.Items.Add(s.XValues(i), s.Labels(i))
				End If
			Next

		End With
Hope this helps!
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

SNSSEC
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am

Re: not all labels are displayed on bottom axis

Post by SNSSEC » Mon Mar 01, 2010 12:56 pm

We applied the workaround. We now wait for a release with a proper fix.

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

Re: not all labels are displayed on bottom axis

Post by Narcís » Tue Mar 02, 2010 8:56 am

Hi SNSSEC,

This has been fixed for last TeeChart for .NET 2009 maintenance release:
http://www.teechart.net/support/viewtop ... =4&t=10807
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