User (Legacy) Posted March 4, 2002 Report Share Posted March 4, 2002 Hi Everyone. ChartFX1.OpenDataEx COD_VALUES Or COD_REMOVE, 1, 6 For j = 1 To 6 If (j Mod 2 = 0) Or (j = 1) Then ChartFX1.Series(0).Yvalue(j - 1) = CHART_HIDDEN Else ChartFX1.Series(0).Yvalue(j - 1) = i * j * 10 End If Next j ChartFX1.CloseData COD_VALUES If we run the code, 4 points appear on a chart.(XVaule = 3, 5, 7, 9) I would like to link all the points with a line. How can I draw a line to link the points(from 3 to 9)? Thank you smlee@hycom.com Link to comment Share on other sites More sharing options...
Software FX Posted March 4, 2002 Report Share Posted March 4, 2002 The purpose of CHAT_HIDDEN is precisely that: to interrupt the line. If you want a continuous line you need to have continuous points. If you what you points to NOT be evenly spaced you can supply XData. For example, if you want a chart to go from: (1,50) (3,90) (4,80) (11,60) You create an X/Y chart with 1,3,4 and 11 as the X data. Notice this chart has only FOUR (4) points, not 11. The following chart types support X-Values: LINES, AREA, CURVE, STEP, SCATTER, SURFACE, CONTOUR -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.