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
Teechart Activex question
-
- Newbie
- Posts: 19
- Joined: Fri Nov 15, 2002 12:00 am
- Contact:
Hi,
you could change the ChartRect size and set a custom position for the legend using something like the following code :
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
Pep Jorge
http://support.steema.com
http://support.steema.com