Data table not positioning correctly

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Captell
Newbie
Newbie
Posts: 65
Joined: Fri Sep 18, 2009 12:00 am

Data table not positioning correctly

Post by Captell » Tue Aug 02, 2011 10:01 pm

I'm using release 4.1.2011.07280 in a vs2003 vb development environment on Windows XP.

I'm trying to add a datatable to a chart and have it positioned correctly without using the chart properties editor.

Here is my code to add the datatable

Code: Select all

    Private Sub mnuEditAddDataTable_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuEditAddDataTable.Click
      Dim tool As New Steema.TeeChart.Tools.DataTableTool(tc.Chart)
      tool.AutoPosition = True
      tool.AutoOffset = True
      tool.ColumnPen.Color = System.Drawing.Color.LightGray
      tool.RowPen.Color = System.Drawing.Color.LightGray
      tc.Tools.Add(tool)

      m_chart.SetDataTablePosition(tc.Chart)

      m_chart.bChanged = True

   End Sub

The autoposition and autooffset options dont seem to work as well as they should do when the bottom axis labels are long and verticle. See the following image
tchartDatatablePosition.png
tchartDatatablePosition.png (17.37 KiB) Viewed 7078 times
The only way Ive been able to fix this is to increase the size of the bottom and left axis labels but I'd rather the AutoPosition option did this or me. Am I doing anything wrong?

Adrian
Adrian Heald
Director
ITSM Reporting Services Pty Ltd
http://www.reportingservices.com

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Data table not positioning correctly

Post by Sandra » Wed Aug 03, 2011 3:13 pm

Hello Adrian,

I recommend that take a look in this thread where explain how you do to solve the problem. On the other hand, I have added it in wish-list with number(TF02015680) to be consider inclusion in next versions of TeeChart.Net.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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