[comment]: # ({7af288c5-fb4eeabf})
# 4 Favorite graphs

[comment]: # ({/7af288c5-fb4eeabf})

[comment]: # ({6352d862-40650cb4})
### Description

These parameters and the possible property values for the respective dashboard widget field objects allow to configure
the [*Favorite graphs*](/manual/web_interface/frontend_sections/dashboards/widgets/favorite_graphs) widget in `dashboard.create` and `dashboard.update` methods.

[comment]: # ({/6352d862-40650cb4})

[comment]: # ({974460e7-8dfaf481})
### Parameters

The following parameters are supported for the *Favorite graphs* widget.

|Parameter|[type](/manual/api/reference/dashboard/object#dashboard-widget-field)|name|value|
|-----|-|-----|-------------------|
|*Refresh interval*|0|rf_rate|0 - No refresh;<br>10 - 10 seconds;<br>30 - 30 seconds;<br>60 - 1 minute;<br>120 - 2 minutes;<br>600 - 10 minutes;<br>900 - *(default)* 15 minutes.|

[comment]: # ({/974460e7-8dfaf481})

[comment]: # ({42f6967e-5ce1276c})
### Examples

The following examples aim to only describe the configuration of the dashboard widget field objects for the *Favorite graphs* widget.
For more information on configuring a dashboard, see [`dashboard.create`](/manual/api/reference/dashboard/create).

[comment]: # ({/42f6967e-5ce1276c})

[comment]: # ({73e496b5-80db0acb})
#### Configuring a *Favorite graphs* widget

Configure a *Favorite graphs* widget with the refresh interval set to 10 minutes.

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "dashboard.create",
    "params": {
        "name": "My dashboard",
        "display_period": 30,
        "auto_start": 1,
        "pages": [
            {
                "widgets": [
                    {
                        "type": "favgraphs",
                        "name": "Favorite graphs",
                        "x": 0,
                        "y": 0,
                        "width": 12,
                        "height": 3,
                        "view_mode": 0,
                        "fields": [
                            {
                                "type": 0,
                                "name": "rf_rate",
                                "value": 600
                            }
                        ]
                    }
                ]
            }
        ],
        "userGroups": [
            {
                "usrgrpid": 7,
                "permission": 2
            }
        ],
        "users": [
            {
                "userid": 1,
                "permission": 3
            }
        ]
    },
    "id": 1
}
```

Response:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "dashboardids": [
            "3"
        ]
    },
    "id": 1
}
```

[comment]: # ({/73e496b5-80db0acb})

[comment]: # ({e9d30322-24a59ae7})
### See also

-   [Dashboard widget field](/manual/api/reference/dashboard/object#dashboard-widget-field)
-   [`dashboard.create`](/manual/api/reference/dashboard/create)
-   [`dashboard.update`](/manual/api/reference/dashboard/update)

[comment]: # ({/e9d30322-24a59ae7})
