# Plot A Timeseries

This recipe plots a time series for `txcount` on `arbitrum`. Use this recipe when you want a notebook-ready chart from the public exports.

## Example

```python
import matplotlib.pyplot as plt
import pandas as pd
import requests

url = "https://api.growthepie.com/v1/export/txcount.json"
rows = requests.get(url, timeout=30).json()

df = pd.DataFrame(rows)
df["date"] = pd.to_datetime(df["date"])

series = df[df["origin_key"] == "arbitrum"].sort_values("date")

series.plot(x="date", y="value", figsize=(12, 4), title="Arbitrum Transaction Count")
plt.ylabel("txcount")
plt.tight_layout()
plt.show()
```

## Related Pages

* [Load Into pandas](/recipes-tutorials/recipes/load-into-pandas.md)
* [txcount](/metric-reference/metric-reference/txcount.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.growthepie.com/recipes-tutorials/recipes/plot-a-timeseries.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.
