User (Legacy) Posted June 27, 2002 Report Share Posted June 27, 2002 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 More sharing options...
Software FX Posted July 11, 2002 Report Share Posted July 11, 2002 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.