manual:api:reference:graphitem:object

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:api:reference:graphitem:object [2016/02/16 15:25]
127.0.0.1 external edit
manual:api:reference:graphitem:object [2020/08/19 11:36] (current)
martins-v internal link to data types (ZBX-17160)
Line 9: Line 9:
 The graph item object has the following properties. The graph item object has the following properties.
  
-^  Property ​ ^  Type  ^  Description ​ ^+^  Property ​ ^  ​[[:​manual/​api/​reference_commentary#​data_types|Type]]  ​^ ​ Description ​ ^
 | gitemid ​ | string ​ | //​(readonly)//​ ID of the graph item.  | | gitemid ​ | string ​ | //​(readonly)//​ ID of the graph item.  |
 | **color** \\ (required) | string | Graph item's draw color as a hexadecimal color code. | | **color** \\ (required) | string | Graph item's draw color as a hexadecimal color code. |
Line 16: Line 16:
 | 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. | | 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. | | graphid | string | ID of the graph that the graph item belongs to. |
-| sortorder | integer | Position of the item in the graph. \\ \\ Default: 0. |+| sortorder | integer | Position of the item in the graph. \\ \\ Default: ​starts with 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. | | 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. | | 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. |