Page 1 of 1

All series' do not fit in legend

Posted: Mon Jun 06, 2005 4:19 pm
by 9078925
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

Posted: Tue Jun 07, 2005 11:52 am
by narcis
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.