setAnnotations
Syntax
<Path>.setAnnotations(AnnotationsToSet:table) |
The method setAnnotations sets the table Annotations.
By entering the following information into the table, you can add additional lines and text to the Chart:
Type
Enter 0 for displaying a vertical line or enter 1 for a displaying a horizontal line. Enter 2 or 3 for labeling the x-axis or the y-axis. Enter 4 for any text.
Value
Enter the value where the Chart displays the line in the Chart window. For a vertical line this is the x-value, for a horizontal line this is the y-value.
From
Enter the starting point of the line here. If you do not enter a value, the Chart extends an existing line. This way you can not only create horizontal and vertical lines but also diagonal lines.
To
Enter the end point of the line here. If you do not enter a value in the cells From and To, the Chart draws the line from the left to right, or from the top to the bottom of the display window.
Color
Enter the number of the color of the line here. Define colors on the Tab Color.
Style
For lines, Type 0 or 1, you can enter the line style. For text, Type 4, you can enter the marker style.
Value
Conveyor style
Marker style
Example: 0
a thin solid line
text only without a marker
Example: 1
a dashed line
a plus sign
Example: 2
a dotted line
a cross
Example: 3
a dash-dot line
a circle
Example: 4
a dash-dot-dot line
a filled circle
Example: 5
a medium thin solid line
a square
Example: 6
a thick solid line
a filled square
Example: 7
a grid tick
a diamond
Example: 8
a grid line
a filled diamond
Example: 10
a medium thick solid line
…
Example: 11
an extra thick solid line
…
Text
Enter any text that describes the line here. You can optionally enter the following two-character prefix codes, consisting of the pipe symbol and a letter. These control at which position in the graph the text will be positioned:
Prefix
Position
|l
left inside edge of the graph
|L
left outside edge of the graph
|r
right inside edge of the graph
|R
right outside edge of the graph
|c
centered inside of the graph
Data Type of the Value You Can Assign
You can assign a value of data type table.
Example
MyChart.Annotations := setAnnotations(myAnnotationTable) |
Related Topics
Related Topics
Methods of the ChartaddObject (Chart)
copyBitmapToClipboard (Chart)
copyBitmapToFile (Chart)
copyBitmapToIcon
getAnnotations
getBValue
getGValue
getHTMLCode (Chart)
getLineStyle
getRValue
printChart
putValuesIntoTable (Chart)
resetValues
setLineStyle
setRGB
setWindowPosition (Chart)
showPrintDialog (Chart)
update (Chart)