Mark *addMark(double value, int lineColor, const char *text = 0, const char *font = 0, double fontSize = 8);
Adds a mark line to the chart.
A mark line is a line drawn on the plot area. This line is usually used to indicate some special values, such as a "target value", "threshold value", "target date", etc.
A mark line attached to the horizontal axis will be vertical across the plot area. A mark line drawn using the vertical axis will be horizontal across the plot area. In either case, the mark line label will be added to the axis at the mark line position.
The location of the mark line label can be changed by using
TextBox.setAlignment. For example, by setting the alignment to
TopCenter, the mark line label will be drawn on the top center of the mark line.
By default, the mark line is drawn at the front of the chart layers. You may change it to draw at the back of the plot area (that is, like grid lines) using
Mark.setDrawOnTop.
A
Mark object representing the mark line added. You may use this object to fine- tune the appearance of the mark.
© 2006 Advanced Software Engineering Limited. All rights reserved.