11: W
EB
S
ERVER
11-22 FC6A S
ERIES
M
ICRO
S
MART
A
LL
-
IN
-O
NE
T
YPE
C
OMMUNICATION
M
ANUAL
FC9Y-B1730
The parameters that can be set as an element of bars[] are as follows. If the default value of the parameter is acceptable, it does
not need to be set.
When the div tag is coded as follows, two horizontal bar graphs are displayed using the data in double words D2040 and D2042 (decimal).
min_val : The minimum value of the graph. This parameter is required.
max_val : The maximum value of the graph. This parameter is required.
label : The label name. The default is a string that combines the device and device number.
back_col : The background color of the graph. The default value is "#FFFFFF".
front_col : The foreground color of the graph. The default value is a color that differs for each element.
scale_on : This parameter sets whether or not the graph has a scale. The default setting is false (no scale).
scale_lbl_on : This parameter sets whether or not there is a label for the scale on the graph.
The default setting is false (no label).
<div id="div21" data-graph="hbar">
device:"D", address:2040, driver:0, net_no:0, format:"DEC-D",
width:300, height:300, line_col:"#000000",
barhgutter:30, barwidth:20,
gutter:20, type:"square", scalewidth:5,
bars:[
{
min_val:0, max_val:100, label:"dev A",
back_col:"#FFFFFF", front_col:"#0000FF",
scale_on:true, scale_lbl_on:true
},
{
min_val:0, max_val:100, label:"dev B",
back_col:"#FFFFFF", front_col:"#FF0000",
scale_on:false, scale_lbl_on:false
}
]
</div>
100
dev A
0
49
0
dev B