Page 1 of 1
Hide line sections where X or Y value is Zero(0)in XY Chart
Posted: Fri Jul 14, 2006 5:16 am
by 9531181
Hi
Is it possible that we hide the section of line where X or Y point value
is Zero (0) . kindly help me in this regard.
VB 6.0
TeeChart v7
Thanks & Regards
Posted: Fri Jul 14, 2006 7:38 am
by narcis
Hi Faizullah,
You can try doing something like this:
Code: Select all
Private Sub AddValue(X As Double, Y As Double)
If ((X = 0) Or (Y = 0)) Then
TChart1.Series(0).AddXY X, Y, "", clNone
Else
TChart1.Series(0).AddXY X, Y, "", clTeeColor
End If
End Sub
Private Sub Form_Load()
TChart1.AddSeries scLine
AddValue -2, 6
AddValue -1, 2
AddValue 0, 3
AddValue 1, 5
AddValue 2, 0
AddValue 3, 8
AddValue 4, 4
AddValue 5, 0
AddValue 6, 2
End Sub
Posted: Tue Aug 01, 2006 6:25 am
by 9531181
Hi
Thanks it works fine.
How we check the property of point e.g. At Run time We want to show
the point that is already marked as " clNone " or We want to assign "clNone" property to another point.
Thanks & Regards
Posted: Tue Aug 01, 2006 9:00 am
by Pep
Hi,
you can use the PointColor property :
TChart1.Series(0).PointColor(Index) = clNone
Posted: Wed Aug 02, 2006 7:40 am
by 9531181
Hi
Thanks for timely responce
This code works fine
Thanks & Regards