> For the complete documentation index, see [llms.txt](https://docs.trymito.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trymito.io/how-to/graphing/graph-export.md).

# Graph Export

Export your graphs as Python code, images or HTML files to share your insights with your peers.

### 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.trymito.io/how-to/graphing/graph-export.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
