The following objects are directly related to the graphitem
API.
Graph items can only be modified via the graph
API.
The graph item object has the following properties.
Property | Type | Description |
---|---|---|
gitemid | string | ID of the graph item. Property behavior: - read-only |
color | string | Graph item's draw color as a hexadecimal color code. Property behavior: - required for create operations |
itemid | string | ID of the item. Property behavior: - required for create operations |
calc_fnc | integer | Value 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. |
drawtype | integer | Draw style of the graph item. Possible values: 0 - (default) line; 1 - filled region; 2 - bold line; 3 - dot; 4 - dashed line; 5 - gradient line. |
graphid | string | ID of the graph that the graph item belongs to. |
sortorder | integer | Position of the item in the graph. Default: starts with "0" and increases by one with each entry. |
type | integer | Type of graph item. Possible values: 0 - (default) simple; 2 - graph sum, used only by pie and exploded graphs. |
yaxisside | integer | Side of the graph where the graph item's Y scale will be drawn. Possible values: 0 - (default) left side; 1 - right side. |