> Graph item object

The following objects are directly related to the graphitem API.

Graph item

Graph items can only be modified via the 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.