ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to add a horizontal line?
Posted by Tom Nunamaker on Mar-15-2019 00:12
Attachments:
Hi Peter,

Do you have any suggestions with a ColdFusion app of how to add a horizontal line at a specific point (the recent low in this case) to the right side of a chart?

Thanks in advance for any suggestions!

Tom Nunamaker
2019-03-14_17-10-15.png

  Re: How to add a horizontal line?
Posted by Peter Kwan on Mar-15-2019 15:53
Hi Tom,

// Add a mark line at y = 47100. The line color is transparent when x < 13.8 and
// 0xff66ff when x >= 13.8.
c.yAxis().addMark(47100, c.xZoneColor(13.8, cd.Transparent, "0xff66ff"));

See:

https://www.advsofteng.com/doc/cdcoldfusion.htm#Axis.addMark.htm
https://www.advsofteng.com/doc/cdcoldfusion.htm#Layer.xZoneColor.htm

https://www.advsofteng.com/doc/cdcoldfusion.htm#markzone.htm
https://www.advsofteng.com/doc/cdcoldfusion.htm#xzonecolor.htm

Hope this can help.

Regards
Peter Kwan