Jump to content
Software FX Community

[Line chart] How to draw a line to link the points?

User (Legacy)

Recommended Posts

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


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


Link to comment
Share on other sites

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:





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:




Software FX, Inc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...