Page 1 of 1

Teechart Activex question

Posted: Mon Feb 23, 2004 3:19 pm
by 6925002
Now my x axis portion of the graph almost take 90 % of the whole graph. Remaining 10 % is only available for the legend in the right side.
How do i make the x axis portion to take 60 % and legend to get 40 %?

i am using teechart5.ocx

Posted: Tue Feb 24, 2004 11:31 am
by Pep
Hi,

you could change the ChartRect size and set a custom position for the legend using something like the following code :

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scLine
    .Series(0).FillSampleValues (10)
    .Legend.Left = 450
    .Legend.Top = 20
End With
End Sub

Private Sub TChart1_OnBeforeDrawChart()
TChart1.ChartRect 10, 10, 375, 275
End Sub