# Exports and Ask AI

How to download charts, tables and datasets from the RMNCAH and Vaxx apps, how your work is saved, and how Ask AI opens the DataSuite assistant on a card or a page.

Every chart and table in the apps can be downloaded as an image or as data, and every card can be sent to the DataSuite assistant with **Ask AI**. This page covers the card toolbar, the dataset downloads, how your work is saved, and Ask AI. Reports have their own page: [Reports](https://datasuite.damurka.com/en/apps/countdown/reports.md). (RMNCAH) (Vaxx)

**Before you start:** finish [Load Data](https://datasuite.damurka.com/en/apps/countdown/getting-started.md). Ask AI also needs the app to run inside DataSuite.

```mermaid
flowchart TD
  A["Your work in the app"] --> S["The dataset file (.rds), saved at each change"]:::done
  C["A card's toolbar"] --> P["Download Plot: PNG image"]
  C --> D["Download Data: Excel file"]
  C --> Q["Ask AI: the DataSuite assistant"]
  L["Load Data, Data Adjustment"] --> T["Download Master / Adjusted Dataset: Stata file"]
```

## Charts and tables

Each card has a toolbar in its header. The buttons are the same in both apps.

![A card header: the title, the tabs, Ask AI and the toolbar buttons](https://datasuite.damurka.com/images/app-card-toolbar.png)

| Button | What it does |
| --- | --- |
| **Ask AI** | Opens the DataSuite assistant with a question about this card (see [Ask AI](#ask-ai)) |
| **Customize this chart** (sliders) | Changes the titles, text, colours, axes and legend of the chart (see below) |
| **Download Plot** (camera) | Saves the chart, or the table, as a PNG image 3840 pixels wide |
| **Download Data** (table) | Saves the numbers behind the chart as an Excel `.xlsx` file |
| **Expand chart** | Enlarges the chart; **Collapse chart** brings it back |
| **More tools** (…) | Appears when the window is narrow and holds the buttons that do not fit |
| Minus sign | On some cards only: folds the card |

Downloads follow what you see: the selected tab, the filters of the page and the denominators. The file name says what the chart is and ends with the date and time, for example `rr_national_plot_202610171215.png`. A table with its own year or indicator selector (marked *This table only*) downloads for that choice.

### Customize this chart

![The Customize chart panel: Apply to, search, and the title settings](https://datasuite.damurka.com/images/app-card-customize.png)

1. Click **Customize this chart** in the card toolbar.
2. Under **Apply to**, choose **Screen** (the chart in the app), **Report** (this chart in your reports only) or **Both**.
3. Open a group (**Chart title**, **Subtitle**, axis titles and labels, **Legend**, **Data labels**, **Gridlines**, **Bars, lines and points**, **Chart area**, **All text**…) or search for a setting, and change it. An empty field keeps the chart as drawn.
4. The footer counts your changes; **Reset all** removes them.

A setting can also be used for the whole card, for every chart of the same type, or for all charts. Settings are saved with the dataset. Text you type here is not translated when you change the language.

## Datasets

| Button | Page | File |
| --- | --- | --- |
| **Download Master Dataset** | [Load Data](https://datasuite.damurka.com/en/apps/countdown/getting-started.md) | The merged data as loaded, as a Stata file (`master_dataset_….dta`) |
| **Download Adjusted Dataset** | [Data Adjustment](https://datasuite.damurka.com/en/apps/countdown/data-preparation/data-adjustment.md) | The adjusted data (`master_adj_dataset_….dta`) |

## Saving your work

There is no Save button. The app keeps everything in the dataset file it opened (the *.rds file* (The copy of a loaded dataset that the app saves next to the source file (.rds, an R data file). It opens much faster than the Excel workbook, without the checks; delete it to reload a changed workbook.) named in the dataset chip of the top bar): the checks you confirmed, the years removed, the adjustment, the denominators, chart settings and reports. Each change rewrites that file. Keep a copy of the file before you try something you may want to undo, and share the file when a colleague should see your work.

## Ask AI

**Ask AI** opens the DataSuite assistant, which works on the same dataset as the app. There are two buttons:

- **Ask AI** on a card: the chat opens with *Explain "card title":*; finish the question and send it.
- **Ask AI** in the top bar: the chat opens with *Explain the page "page title":*.

![The top bar: dataset chip, language, Ask AI and Reports](https://datasuite.damurka.com/images/app-topbar.png)

The assistant sees the page you are on, its cards, tabs and filters. It can read the data behind a chart, switch tabs and open other pages. In a report it can also write text and add charts (see [Reports](https://datasuite.damurka.com/en/apps/countdown/reports.md#the-editor)). It ends its answer with its sources. Compare its numbers with the card before you quote them. Good prompts and what the assistant can do: [AI assistant](https://datasuite.damurka.com/en/apps/ai-assistant.md).

> **Note**
>
> Ask AI works only when the app runs inside DataSuite. When the app runs on its own (for example started from R), the buttons are greyed out and say *Available when the app runs in DataSuite*.

## Limits

- Ask AI and the **Reference documents** of the Reports page need the app to run inside DataSuite.
- A chart's data download holds what the chart shows, not the full dataset: use the dataset downloads for that.
- Text typed in **Customize this chart** stays in the language you wrote it in.

## Common pitfalls

- Downloading a chart with the wrong tab or filter selected: the file holds what is on screen.
- Experimenting on your only copy of the dataset: every change is saved in it.
- Quoting the assistant without checking: it reads the same data, so poor data give poor answers, and its output must be checked by an analyst.

Sharing charts and results: [Dissemination > Sharing charts and tables](https://datasuite.damurka.com/en/methodology/dissemination/information-products.md#sharing-charts-and-tables) and [Dissemination > Common pitfalls](https://datasuite.damurka.com/en/methodology/dissemination.md#common-pitfalls).

Next: [Reports](https://datasuite.damurka.com/en/apps/countdown/reports.md).
