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
Hide line sections where X or Y value is Zero(0)in XY Chart
-
- Newbie
- Posts: 50
- Joined: Wed Apr 26, 2006 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Faizullah,
You can try doing something like this:
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
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 50
- Joined: Wed Apr 26, 2006 12:00 am
Hi,
you can use the PointColor property :
TChart1.Series(0).PointColor(Index) = clNone
you can use the PointColor property :
TChart1.Series(0).PointColor(Index) = clNone
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 50
- Joined: Wed Apr 26, 2006 12:00 am