Page 1 of 1

Data table not positioning correctly

Posted: Tue Aug 02, 2011 10:01 pm
by 15654268
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 7279 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

Re: Data table not positioning correctly

Posted: Wed Aug 03, 2011 3:13 pm
by 10050769
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,