Page 1 of 1

MinVisibleValue MaxVisibleValue functions

Posted: Thu Dec 18, 2003 7:49 am
by 9079459
Hello,
is my understanding correct that the functions include in Min/Max calculations points marked with clNone color, that is unvisible points?

nefis

Posted: Thu Dec 18, 2003 3:05 pm
by 9079459
so?

Posted: Fri Dec 19, 2003 10:32 am
by Pep
Hi Nefis,

The following code shows that points with clnone are involved in MinVisibleSeriesValue calculations :

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scLine
    
    For i = 0 To 10
        .Series(0).AddXY i, Rnd * 100, "", clNone
    Next i
    For j = 11 To 20
        .Series(0).AddXY j, Rnd * 100, "", clTeeColor
    Next j
    
    .Axis.Bottom.SetMinMax 5, 15
End With
End Sub

Private Sub Command1_Click()
MsgBox TChart1.Axis.Bottom.MinVisibleSeriesValue(True, 0)
End Sub
Josep Lluis Jorge
http://support.steema.com