> Graph item object

> 图表监控项对象

The following objects are directly related to the graphitem API. 以下对象与 graphitem API直接相关

Graph item

图表监控项

Graph items can only be modified via the graph API.

图表监控项只能通过 graph API进行修改.

The graph item object has the following properties. 图表监控项具有以下属性:

PropertyTypeDescription
gitemidstring(readonly) ID of the graph item.
color
(required)
stringGraph item’s draw color as a hexadecimal color code.
itemid
(required)
stringID of the item.
calc_fncintegerValue of the item that will be displayed.

Possible values:
1 - minimum value;
2 - (default) average value;
4 - maximum value;
7 - all values;
9 - last value, used only by pie and exploded graphs.
drawtypeintegerDraw style of the graph item.

Possible values:
0 - (default) line;
1 - filled region;
2 - bold line;
3 - dot;
4 - dashed line;
5 - gradient line.
graphidstringID of the graph that the graph item belongs to.
sortorderintegerPosition of the item in the graph.

Default: starts with 0 and increases by one with each entry.
typeintegerType of graph item.

Possible values:
0 - (default) simple;
2 - graph sum, used only by pie and exploded graphs.
yaxissideintegerSide of the graph where the graph item’s Y scale will be drawn.

Possible values:
0 - (default) left side;
1 - right side.
属性类型描述
gitemidstring(必选) 图表监控项的ID.
color
(必选)
string绘制图形项目的颜色,使用十六进制码表示.
itemid
(必选)
string监控项的ID.
calc_fncinteger监控项显示的值.

可用值:
1 - 最小值;
2 - (默认) 平均值;
4 - 最大值;
7 - 所有值;
9 - 最新的值,仅适用于饼图以及分散饼图.
drawtypeinteger用于绘制图表监控的线形.

可用值:
0 - (默认) 实线;
1 - 面积图(填满的区域);
2 - 粗实线;
3 - 点;
4 - 虚线;
5 - 梯度线.
graphidstring图表监控项所属的图表的ID.
sortorderinteger图表中监控项的排序.

默认从0开始,每增加一个加1.
typeinteger图表监控项的类型.

可用值:
0 - (默认) 简单图形;
2 - 汇总图形, 仅用于饼图和分散饼图.
yaxissideintegerSide of the graph where the graph item’s Y scale will be drawn图表监控项的Y轴画在图表的那一侧:

可用值:
0 - (默认) 左侧;
1 - 右侧.