object graph.create(object/array graphs)
This method allows to create new graphs.
(object/array) Graphs to create.
Additionally to the standard graph properties, the method accepts the following parameters.
|array||Graph items to be created for the graph.|
(object) Returns an object containing the IDs of the created graphs under the
graphids property. The order of the returned IDs matches the order of the passed graphs.
Create a graph with two items.
CGraph::create() in frontends/php/include/classes/api/services/CGraph.php.