# Create a line chart of time series data

#### Step 1: Check the dtype

Make sure that dtpye of your time series data is properly recognized as `datetime` by looking at the dtype indicator in the column header.

If the dtype indicator does not say "date", see our [reference guide](/how-to/type-changes.md) for converting the dtype of a column and convert the column to a `datetime`.

![Checking the dtype of a graph](/files/hO31DN2f6vFq4awBgzEg)

#### Step 2: Create a new graph

To create a new graph, click on the `Graph` button in the Mito toolbar.

![Creating a new graph](/files/XpGRIfbEuQQ6BEAjfwEU)

#### Step 3: Select the correct data

Set the sheet you want to graph as the graph's `Data Source`.

![Select the data source](/files/wHeDzMJLlX7BkJB1kYRi)

#### Step 4: Select the line chart

Set the chart type to `line`.

![Create a line chart](/files/eDNIvoJFJyUgrQObjaPT)

#### Step 5: Add data to your graph

Add data to the X and Y axis by clicking the `+ Add` button and selecting the column header of the data you want to add.

In this example, I'm going to add my time series data, the column called Date, to the X axis, and I'm going to add the daily high Tesla stock price to my Y axis.

![A line chart of time series data](/files/i854Vw9KLs3SWx8MZMqj)

For more detailed information about graphing, see the [graph reference page](/how-to/graphing.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trymito.io/how-to-1/create-a-line-chart-of-time-series-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
