# Graph Export

### Exporting a graph

1. Click the `Export` button in the Chart Design tab.
2. Click the export method you want:
   1. `Copy Show Graph Code`: Copy the Plotly graph code that **displays the graph in the notebook** to your clipboard so you can paste it into a code cell.
   2. `Copy Export HTML Graph Code`: Copy the Plotly graph code that **exports the graph as an interactive HTML file** to your clipboard so you can paste it into a code cell. Executing the code will create the html file in the same folder the notebook is in.
   3. `Download as PNG`: Download the graph as a PNG to your Downloads folder.

### How to use the Exported HTML graph code

Interactive graphs are a fantastic way to share analyses with colleagues. It allows them to zoom in on specific sections of the graph and identify specific data points.&#x20;

To create an HTML graph file:

1. Create a graph using Mito
2. Click the **Copy Export HTML Graph Code** button in the Export dropdown on the Chart Design tab of the toolbar.&#x20;
3. Paste the code into a new code cell and execute the code.&#x20;
4. The html file will appear in the the same folder as your notebook.&#x20;

The file contains all of the libraries and data needed to repopulate the graph, so you can attatch the file to an email or post it on an internal wiki without anything else.&#x20;


---

# 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/graphing/graph-export.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.
