Guideline Properties

<< Click to Display Table of Contents >>

Manual > Control Reference > Data > Chart Ver2 control >

Guideline Properties


The Guidelines property controls the guidelines of the Chart2 Controls chart.
 
AddAxisGuideLine
 

You can set it using the AddAxisGuideLine method. Specify the property in the Props parameter using the following property setting format.

 

"Property name: Setting value"

 

You can also set multiple properties at once by specifying them in an array.

 

c("Property name 1: Setting value 1", "Property name 2: Setting value 2" [, ...])

 

hint

Below is an example of setting guideline properties.
 
Setting example)

this.AddAxisGuideLine("L1",

                         c(        "StartValue:50",

                                 "EndValue:MAX",

                                 "StartLabel:Alarm",

                                 "LineColor:#FFC000",

                                 "Alpha:0.3"));

 

 

Guideline Properties

Property Name

explanation

StartValue

Specify the position where the guideline is to be displayed by the data value. If only StartValue is specified, the guideline will be displayed.

EndValue

Specifying StartValue and EndValue will display the guideline range. Specifying MAX will set the maximum value of the graph.

LineColor

Guideline color.

LineWidth

Guide line thickness. Default is 1.

LineStyle

Guide line style. Default is SOLID.

SOLID

Straight Line

DASH

dotted line

DOT

Dotted line

DASHDOT

Dotted line + dotted line

DASHDOTDOT

Dotted line + dotted line + dotted line

 

Alpha

Transparency. Specify a value between 0 and 1. The default is 1.

Label

Specify if you want to display label text on the guideline.

LabelFont

The font for the labels that appear on the guidelines.

StartLabel

When the guideline range is displayed, the label is displayed at the StartValue position.

EndLabel

When the guideline range is displayed, the label is displayed at the EndValue position.

LabelPos

The position to display the label. Default is OUTSIDE2.

NONE

Do not display labels

OUTSIDE1

Display on the axis side (outside the graph)

OUTSIDE2

Display on the opposite side of the axis (outside the graph)

INSIDE1

Display on the axis side (inside the graph)

INSIDE2

Display on the opposite side of the axis (inside the graph)

 

LabelOffsetX

If you want to adjust the position where the label is displayed, specify the size in the X direction to shift in pixels. Negative values can also be specified. The default is 0.

LabelOffsetY

If you want to adjust the position where the label is displayed, specify the size in the Y direction to shift in pixels. Negative values can also be specified. The default is 0.

DrawOnFront

Specify TRUE if you want to overwrite the guidelines on the front of the graph.