Jump to content
Software FX Community

Constant Line Property


User (Legacy)

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...