Data table not positioning correctly
Posted: 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
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
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
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
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