> For the complete documentation index, see [llms.txt](https://docs.sov.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sov.ai/api-reference/utils/plot.md).

# Plot

**Module:** `sovai.utils.plot`

## Functions

### `plotting_data()`

```python
def plotting_data(
    df: Union[pd.DataFrame, dict],
    x: Optional[str] = None,
    y: Optional[str] = None,
    chart_type: str = 'line',
    kwargs = {},
) -> None
```

This function takes dataFrame or dict (JSON) and then draw plot using your paramiters and chart type

**Parameters**

| Parameter    | Type           | Description        |
| ------------ | -------------- | ------------------ |
| `df`         | `pd.DataFrame` | —                  |
| `x`          | `str`          | defaults to None   |
| `y`          | `str`          | defaults to None   |
| `chart_type` | `str`          | defaults to "line" |

**Returns:** `None`

***
