Teechart Activex question

TeeChart for ActiveX, COM and ASP
Post Reply
Teechart Activex Question
Newbie
Newbie
Posts: 19
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Teechart Activex question

Post by Teechart Activex Question » Mon Feb 23, 2004 3:19 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Feb 24, 2004 11:31 am

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

Post Reply