[comment]: # translation:outdated

[comment]: # ({168caa7a-168caa7a})
# > Graph itemオブジェクト

次のオブジェクトは、`graphitem`API に直接関連しています。

[comment]: # ({/168caa7a-168caa7a})

[comment]: # ({9a85d943-f6083c57})
### Graph item

::: noteclassic
グラフアイテムは `graph` API を介してのみ変更することができる。
:::

グラフアイテムオブジェクトは、以下のプロパティを持ちます。

|プロパティ|[Type](/manual/api/reference_commentary#data_types)|説明|
|--|--|------|
|gitemid|string|*(readonly)* ID of the graph item.|
|**color**<br>(required)|string|Graph item's draw color as a hexadecimal color code.|
|**itemid**<br>(required)|string|ID of the item.|
|calc\_fnc|integer|Value of the item that will be displayed.<br><br>Possible values:<br>1 - minimum value;<br>2 - *(default)* average value;<br>4 - maximum value;<br>7 - all values;<br>9 - last value, used only by pie and exploded graphs.|
|drawtype|integer|Draw style of the graph item.<br><br>Possible values:<br>0 - *(default)* line;<br>1 - filled region;<br>2 - bold line;<br>3 - dot;<br>4 - dashed line;<br>5 - gradient line.|
|graphid|string|ID of the graph that the graph item belongs to.|
|sortorder|integer|Position of the item in the graph.<br><br>Default: starts with 0 and increases by one with each entry.|
|type|integer|Type of graph item.<br><br>Possible values:<br>0 - *(default)* simple;<br>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.<br><br>Possible values:<br>0 - *(default)* left side;<br>1 - right side.|

[comment]: # ({/9a85d943-f6083c57})
