All series' do not fit in legend

TeeChart for ActiveX, COM and ASP
Post Reply
Craig
Newbie
Newbie
Posts: 25
Joined: Sat Aug 09, 2003 4:00 am
Location: Calgary, Alberta
Contact:

All series' do not fit in legend

Post by Craig » Mon Jun 06, 2005 4:19 pm

If I have over 30 or so series on my graph, the legend cannot show them all because there seems to be a built in limit for the legend size cannot be bigger than the graph. Is there a way around this, like changing the resolution or a scroll bar in the legend? I'm using version 6.006

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jun 07, 2005 11:52 am

Hi Craig,

You could use a scroll bar doing:

Code: Select all

Private Sub Form_Load()
For i = 0 To TChart1.SeriesCount - 1
    TChart1.Series(i).FillSampleValues (10)
Next i
VScroll1.Min = 0
VScroll1.Max = TChart1.Series(0).Count
End Sub

Private Sub VScroll1_Change()
TChart1.Legend.FirstValue = VScroll1.Value
End Sub
As legend depends on Chart's rectangle bottom position, a solution is making chart bigger and play with panel and legend top margins.

Also notice that TeeChart Pro v7 ActiveX has LegendScrollBar tool.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply