Jump to content
Software FX Community

Constant Line Property


User (Legacy)
 Share

Recommended Posts

How can I draw vertical lines at specific points on the X axis.  My code is

as below, but it draws only the last line at position 12.5.

Please help

- Rich

' Line Settings'

ChartFX1.OpenDataEx 2,4,0

ChartFX1.ConstantLine(0).Axis = 2

ChartFX1.ConstantLine(0).Value = 3.5

ChartFX1.ConstantLine(0).Value = 6.5

ChartFX1.ConstantLine(0).Value = 9.5

'ChartFX1.ConstantLine(0).Value = 12.5

ChartFX1.ConstantLine(0).LineWidth = 2

ChartFX1.ConstantLine(0).LineColor = &HFF&

ChartFX1.CloseData 2

Link to comment
Share on other sites

  • 2 weeks later...

You are assigning only one constant line over and over, your code should

look like:

ChartFX1.OpenDataEx 2,4,0

ChartFX1.ConstantLine(0).Axis = 2

ChartFX1.ConstantLine(0).Value = 3.5

ChartFX1.ConstantLine(1).Axis = 2

ChartFX1.ConstantLine(1).Value = 6.5

ChartFX1.ConstantLine(2).Axis = 2

ChartFX1.ConstantLine(2).Value = 9.5

ChartFX1.ConstantLine(3).Axis = 2

ChartFX1.ConstantLine(3).Value = 12.5

ChartFX1.CloseData 2

--

FP

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.

Guest
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.

 Share

×
×
  • Create New...