Page 1 of 1
not all labels are displayed on bottom axis
Posted: Thu Jan 07, 2010 10:47 am
by 13049161
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>))
Re: not all labels are displayed on bottom axis
Posted: Thu Jan 07, 2010 3:04 pm
by narcis
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.
Re: not all labels are displayed on bottom axis
Posted: Thu Jan 07, 2010 3:20 pm
by 13049161
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?
Re: not all labels are displayed on bottom axis
Posted: Thu Jan 07, 2010 3:24 pm
by narcis
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.
Re: not all labels are displayed on bottom axis
Posted: Fri Jan 08, 2010 8:08 am
by 13049161
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?
Re: not all labels are displayed on bottom axis
Posted: Fri Jan 08, 2010 9:00 am
by narcis
Hi SvenE,
Please try posting it at our upload page:
http://www.steema.net/upload
Thanks in advance.
Re: not all labels are displayed on bottom axis
Posted: Fri Jan 08, 2010 9:08 am
by 13049161
Hi,
I uploaded the sample project using the upload page,
regards,
Marc Evers
Re: not all labels are displayed on bottom axis
Posted: Fri Jan 08, 2010 3:33 pm
by narcis
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!
Re: not all labels are displayed on bottom axis
Posted: Mon Mar 01, 2010 12:56 pm
by 8122357
We applied the workaround. We now wait for a release with a proper fix.
Re: not all labels are displayed on bottom axis
Posted: Tue Mar 02, 2010 8:56 am
by narcis
Hi SNSSEC,
This has been fixed for last TeeChart for .NET 2009 maintenance release:
http://www.teechart.net/support/viewtop ... =4&t=10807