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

Message ListMessage List     Post MessagePost Message

  How to add straight lines for control limits to XY charts
Posted by Vicky on Oct-26-2012 22:49
I have a scatter chart ready, and am now trying to add 3 straight lines to show "upper limit", "target", and "lower limit".

|=========================  upper limit
|                 x
|      x
|--------------------------------  Target
|               x            x
|          x          x
|=========================  lower limit
|       x       x
|        x
|
------------------------------------

This should be very straightforward since it's a line with a static value, but I have tried addline, addlinelayer without ease.
Please advise!
Thanks in advance

  Re: How to add straight lines for control limits to XY charts
Posted by Peter Kwan on Oct-26-2012 23:13
Hi Vicky,

You may use Axis.addMark. You may refer to the sample code "Marks and Zones" and "Marks and Zones (2)" for examples. (You may look them up from the ChartDirector documentation index.)

Hope this can help.

Regards
Peter Kwan

  Re: How to add straight lines for control limits to XY charts
Posted by Vicky on Oct-27-2012 02:09
Worked like a charm.
Thanks a million, Peter.