> For AI agents: the complete documentation index is available at https://docs.heys.ai/workstation/en/llms.txt, the full documentation bundle is available at https://docs.heys.ai/workstation/en/llms-full.txt.

# Answer Charts, Image Generation and the Design Canvas

When an answer is full of numbers, one chart beats a paragraph; for reports, posters and illustrations, what you need is a real image; for prototypes, posters and PPT templates, you also want to point at things on the page and edit the text directly. This page covers the three ways HeyS "makes pictures": **data charts** drawn right in the answer, **generating and editing images** with an image model, and designing together with the agent on the **design canvas**.

## Charts in answers \{#charts-in-answers}

When you ask about a set of data (comparisons, trends, shares, distributions), or ask the agent to research or summarize 3 or more comparable numbers, the answer includes a chart directly; you don't need to ask for one. You can also say so explicitly: "draw me a chart", or "the two metrics have different units, split them into two charts".

<figure>

![A bar chart "Q3 gross margin by region" in an answer: under the chart are the sort order, the formula and the data source, with the "⋯" menu at the top right; below are the recommendations, two output cards (md and xlsx) and "View all outputs (4)"](/screenshots/en/c06-答复图表与产物卡片-9533d5.webp)

<figcaption>A bar chart "Q3 gross margin by region" in an answer: under the chart are the sort order, the formula and the data source, with the "⋯" menu at the top right; below are the recommendations, two output cards (md and xlsx) and "View all outputs (4)"</figcaption>
</figure>

### Chart types

| Chart        | Good for                                                                         | Notes                                                                                                                        |
| ------------ | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Bar chart    | Comparison between categories                                                    | Can be horizontal (horizontal bars) or stacked                                                                               |
| Line chart   | Trends over time                                                                 | The line breaks at missing values                                                                                            |
| Area chart   | Trends plus a sense of total                                                     | Can be stacked                                                                                                               |
| Pie chart    | Shares                                                                           | Only 1 series, at most 8 slices; small items are merged into **Other**                                                       |
| Scatter plot | The relationship between two numeric values                                      | Each point is an x, y pair                                                                                                   |
| Combo chart  | Bars and lines together, such as sales with gross margin                         | Metrics with different units go on the right-hand value axis; at least 2 series                                              |
| Radar chart  | Overall comparison across several dimensions, such as scores for several options | 3 to 12 dimensions, sharing one scale                                                                                        |
| Funnel chart | Step-by-step conversion, such as visits to deals                                 | Only 1 series, at most 8 levels, drawn in the order given; hover to see the ratio to the previous step and to the first step |

Each chart is a card: the title is at the top, the description and source under the chart. A few rules:

- **Numbers must have a basis.** The numbers in a chart come from files you gave, material the agent found, or results it calculated; numbers that came from AI estimates or scoring are marked **Estimated**, and hovering explains **Numbers are AI estimates or scores, not exact statistics**.
- **Charts do not replace text.** Conclusions and key numbers are still written in the body; the chart helps you see the differences at a glance.
- Concept explanations, coding Q\&A and how-to instructions get no charts, and numbers are never made up just to draw one; an answer generally has at most two charts.
- A chart has at most 8 series; beyond that, series are merged or split into several charts. Colors follow the current skin and light or dark appearance, and are checked to be colorblind-friendly.

The agent also draws charts while working (for example, summarizing a first version of the data midway through research). The process line shows **Chart: title**; expand it to see the chart. While the chart is still being produced, it shows **Drawing chart…**; when the data is invalid and the chart cannot be drawn, it shows **This chart has invalid data and can't be drawn**, and you can click **Show raw content**.

### The chart card menu

The **⋯** at the top right of a chart card:

| Menu item                | What it does                                                                                      |
| ------------------------ | ------------------------------------------------------------------------------------------------- |
| **View data**            | Replaces the chart with a data table; click **View chart** to switch back                         |
| **Copy data (CSV)**      | Copies the data to the clipboard as CSV, ready to paste into Excel or other spreadsheet software  |
| **Download image (PNG)** | Downloads a bitmap, suitable for pasting into PPT or chat apps                                    |
| **Download image (SVG)** | Downloads a vector image that stays sharp when enlarged, suitable for further editing or printing |

### Where charts can't be drawn

Charts are drawn only in the HeyS interface; in other outlets they are automatically replaced with an equivalent form:

| Outlet                                                              | Shown as                                                                                                                          |
| ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Command line                                                        | Converted to a table; the rest of the text is output as usual                                                                     |
| `/v1` compatible API                                                | Converted to a Markdown table by default ([Command Line and API](https://docs.heys.ai/workstation/en/command-line-and-api.md))    |
| Webhook notifications                                               | Converted to a Markdown table ([Cron Jobs and Notifications](https://docs.heys.ai/workstation/en/cron-jobs-and-notifications.md)) |
| One-line previews in the sidebar and Notifications, search excerpts | Shown as "\[Chart: title]"                                                                                                        |

Session history and exported records keep the chart's raw data, so it can still be drawn when opened elsewhere.

## Charts in Markdown files \{#charts-in-markdown-files}

Write a ` ```chart ` code block in a Markdown file, and the HeyS preview draws it as a chart. The agent often does this when writing reports, and you can write one yourself. The code block contains a piece of JSON:

````
```chart
{
  "type": "combo",
  "title": "Q3 各区域销售额与毛利率",
  "categories": ["华东", "华北", "华南", "西南"],
  "series": [
    { "name": "销售额", "as": "bar", "data": [1280, 960, 870, 640] },
    { "name": "毛利率", "as": "line", "axis": "right", "data": [58.3, 56.1, 55.4, 54.0] }
  ],
  "y":  { "label": "销售额", "unit": "万元" },
  "y2": { "label": "毛利率", "unit": "%" },
  "source": "data/sales-q3.csv"
}
```
````

(The example is a combo chart of Q3 sales and gross margin for four regions, East, North, South and Southwest China; sales in units of 10,000 yuan, margin in %.)

| Field                        | Description                                                                                                                                            |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `type`                       | Required. `bar` / `line` / `area` / `pie` / `scatter` / `combo` / `radar` / `funnel`                                                                   |
| `title`                      | Required. The chart title                                                                                                                              |
| `series`                     | Required. The data series, each with `name` and `data`, at most 8; write `null` for missing values                                                     |
| `categories`                 | Category names. Required for bar, line, area, pie, combo, radar and funnel charts; the count must match the number of values in each series            |
| `x` / `y`                    | Axes: `label` axis name, `unit` unit, `min` / `max` range. For radar charts, `y` is the scale shared by all dimensions                                 |
| `y2`                         | Combo charts only: the right-hand value axis                                                                                                           |
| `as`, `axis`                 | Combo chart series only: `as` is `bar` or `line` (required); `axis` set to `right` draws the series on the right axis, otherwise it uses the left axis |
| `subtitle`, `note`, `source` | Subtitle, note under the chart, source                                                                                                                 |
| `estimated`                  | When set to `true`, the chart is marked **Estimated**                                                                                                  |
| `horizontal` / `stacked`     | Horizontal bars / stacked (in a combo chart, only bar series are stacked)                                                                              |

For scatter plots, `data` is coordinate pairs, such as `[[1.2, 30], [2.5, 42]]`; pie and funnel values cannot be negative. When the JSON is wrong, the preview shows **This chart has invalid data and can't be drawn**, without affecting the rest of the file. Opened outside HeyS, these files show a plain code block.

## Generating and editing images \{#generating-and-editing-images}

With image generation turned on, the agent can use an image model to generate bitmaps directly (posters, covers, illustrations, explanatory drawings), save them to the workspace and show them in the conversation. When the image service supports it, it can also use existing images as references to edit them (change the background, change the style, and so on).

### Turning it on and configuring it

In organization mode, the image generation model is usually set up by the organization. In **Settings → Spaces**, scroll down to the **Image generation** group under **Models** to view and adjust it:

| Setting                     | Description                                                                                                                                                                                                                                                                                                         |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Enable image generation** | The agent can generate images only when this is on; turning it off does not clear the choices below                                                                                                                                                                                                                 |
| **Image generation model**  | Choose one of the image models from the enabled services in **Model providers**, independent of the primary model. The status next to it says **Available**, or **Unavailable: reason** (service deleted, service disabled, model removed from the service, not an image model, this service can't generate images) |
| **Default size**            | **Auto** / **Square 1024×1024** / **Portrait 1024×1536** / **Landscape 1536×1024**, used when the agent does not specify one                                                                                                                                                                                        |
| **Default quality**         | **Auto** / **Low** / **Medium** / **High**                                                                                                                                                                                                                                                                          |
| **Default format**          | PNG / JPEG / WEBP                                                                                                                                                                                                                                                                                                   |
| **Test generation**         | Actually generates a small image with the values currently in the form; on success, it shows a thumbnail and "Generated in Ns"                                                                                                                                                                                      |

After saving, the settings take effect for **tasks started afterwards**; running tasks keep the configuration they started with. Hover over the model button of the input box to see **Image generation: model name** or **Image generation: off**.

:::warning Warning
**Test generation**, and every image the agent generates or edits, makes a real call to the image model, which may incur charges or use credits.
:::

### Using it in a conversation

Once it is on, just say what image you want:

```
给下周三的渠道商季度复盘会做一张横版封面图：简洁商务风，蓝白配色，画面里有上升的折线和握手的抽象图形，不要任何文字。
```

(Make a landscape cover image for next Wednesday's quarterly review with channel partners: clean business style, blue and white, with a rising line and an abstract handshake, no text at all.)

- **While generating**: the process line shows **Generating image** (**Editing image** when editing), which usually takes from a dozen seconds to a minute.
- **After generating**: the process line shows the thumbnail directly; click it for the full-size image. The answer shows it too, and states the file location, size and what is in the picture.
- **Images are ordinary files in the workspace**: by default they go in the workspace's `images/` folder, and you can also specify a path and file name in the goal (for example, "save it to `素材/封面.png`"). They are visible in the file panel, and later tasks can `@`-reference them and keep editing; a file with the same name is never silently overwritten.
- **Editing images**: in the goal, name the image to edit (`@`-reference an image in the workspace, or send one directly) and say clearly how to change it, for example "把 @images/封面.png 的背景换成深蓝夜景，其余不变" (change the background of @images/封面.png to a dark blue night scene, keep everything else). The process shows which **Reference images** were used. Reference images are accepted only as png / jpeg / webp from the workspace or this session, each no larger than 20MB.
- When the primary model can see images, the agent checks whether the generated image meets the requirements (composition, any stray text), redraws it if not, and writes in the answer what it checked and what still falls short.
- When you need a transparent background, say "transparent background, PNG". For charts, flowcharts and other images that need precise data, the charts in [Charts in answers](#charts-in-answers) or the design canvas are more accurate.

### When image generation fails

The process line states the reason:

| Message                                               | What to do                                                                                                              |
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Image generation is not set up                        | Check in **Settings → Spaces** → **Image generation**, or click **Check image generation settings** in the process line |
| Authentication failed, check the model provider's key | Check that service's key in **Settings → Model providers**                                                              |
| This service or model can't generate images           | Switch to another image model or service                                                                                |
| The request was rejected by the service               | Usually an unsupported size or failed content moderation; the reason is appended                                        |
| The service is rate limited, try again later          | Later, say "regenerate"                                                                                                 |
| Generation timed out / cannot reach the image service | Try again with a smaller size and lower quality, or check the network                                                   |
| Reference image unavailable                           | The image used for editing is not in the workspace or this session, or its format or size does not fit                  |
| Save path unavailable / file already exists           | Use another path or file name, or say explicitly "overwrite the original image"                                         |

The agent never asks you for keys in the conversation; configuration problems are always fixed in Settings.

## The design canvas \{#the-design-canvas}

The design canvas (HeyS Design) is a canvas you can pan and zoom: the agent writes prototypes, posters and PPTs as a set of **artboards**. You see all the artboards on the canvas, click elements to comment and send the comments to HeyS, double-click to edit text, present, and export to PPTX / PDF / images.

### Opening a canvas session

1. On the new-task page, click **+** in the input box and choose **Design** (or type @ and choose from the **Design** group). **@design** is inserted at the start of the input box and a **Design** tag appears in the bottom bar; click × on the tag to remove it.
2. Describe clearly what to make: size and aspect ratio, style, text content, number of pages.
3. Send it. HeyS opens a canvas session, and the agent writes a canvas folder in the workspace (a `canvas.json` plus one HTML file per artboard).

<figure>

![New-task page: the input box starts with @design followed by the poster request (16:9 cover, blue tones, title and subtitle, date), with a "Design" tag in the bottom bar](/screenshots/c29-设计-输入-1a4d18.webp)

<figcaption>New-task page: the input box starts with @design followed by the poster request (16:9 cover, blue tones, title and subtitle, date), with a "Design" tag in the bottom bar</figcaption>
</figure>

Writing `@design` midway through a regular session opens a separate canvas session to send that message; in a canvas session's input box, **Design** no longer appears. Canvas sessions have a design icon before their title in the sidebar.

:::note Note
In a canvas session, the agent works like a coder (artboards are HTML source): it reads before changing, edits locally, and after writing checks itself with layout checks and screenshots.
:::

### The canvas panel

A canvas session has a **Canvas** button at the top right of its title bar, which opens the canvas panel on the right. If the session already has a canvas when you enter it, or a task is running, the panel appears automatically. Whichever artboard the agent is writing shows that it is being written, and refreshes as soon as it is done. When the workspace has several canvases, you can switch between them at the top of the panel.

<figure>

![Canvas session finished: the answer says it created canvas.json and cover.html and ran a layout check and render self-check; the "Canvas" panel on the right shows a 16:9 Q3 business report cover, with the canvas toolbar above, and Present, Tweaks, Comment, Properties, Export and a 21% zoom level at the top right](/screenshots/en/c30-设计画布.webp)

<figcaption>Canvas session finished: the answer says it created canvas.json and cover.html and ran a layout check and render self-check; the "Canvas" panel on the right shows a 16:9 Q3 business report cover, with the canvas toolbar above, and Present, Tweaks, Comment, Properties, Export and a 21% zoom level at the top right</figcaption>
</figure>

You can also click a canvas folder's `canvas.json` in the file panel to open the canvas in the preview panel; the **Canvas / Source** switch in the title bar shows the source.

### The canvas toolbar

| Tool                | What it does                                                         |
| ------------------- | -------------------------------------------------------------------- |
| **Select**          | Click elements in an artboard (text, images, blocks); drag artboards |
| **Hand**            | Drag to pan the canvas (holding Space also works)                    |
| **Text**            | Place a piece of text on the canvas                                  |
| **Artboard**        | Create a new blank artboard                                          |
| **Sticky note**     | Stick a note to write down an idea                                   |
| **Pen**             | Freehand marks; the ▾ next to it picks the color                     |
| **Shape**           | Rectangle, ellipse, line, arrow; the ▾ next to it picks the shape    |
| **Undo** / **Redo** | Undo or redo your changes on the canvas                              |

The group at the top right:

| Button         | What it does                                                                                                                                                                                                           |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ▶ **Present**  | Plays the artboards full screen page by page; **Exit** or Esc leaves; there is a **Presenter view**                                                                                                                    |
| **Tweaks**     | Adjust here when an artboard declares adjustable items (parameters such as colors and font sizes); when it has none, it says **This artboard has no tweaks**                                                           |
| **Comment**    | Opens the comments panel and enters comment mode                                                                                                                                                                       |
| **Properties** | Available once an element is selected: edit text, link, image URL, font size, weight, color, alignment, line height, fill, width and height, padding and margin, corner radius, opacity, border, or delete the element |
| **Export**     | See below                                                                                                                                                                                                              |
| Zoom level     | Zoom in, zoom out, 100%, **Zoom to fit**, **Zoom to selection**                                                                                                                                                        |

### Panning, zooming and editing text directly

- On the canvas, swipe with two fingers on the trackpad to pan, and pinch (or hold ⌘ / Ctrl and scroll) to zoom; **Zoom to fit** in the zoom menu shows all artboards at once.
- **Double-click text** to edit it directly; click elsewhere when done and it is saved (the message **Saved** appears).
- If the agent changes the same artboard while you are editing it, HeyS reapplies your edit on the latest version; if it cannot be reapplied, your edit is dropped with a message.

### Sending comments to HeyS

1. Click **Comment** at the top right to enter comment mode; the cursor turns into a comment cursor.
2. Click the element on the artboard you want to comment on (or click a blank spot to place a free pin), and write your note in the comment box.
3. Keep **Send to HeyS** checked and click **Send**; the comment goes straight into the current session. To just keep a note, click **Save**.
4. The agent changes the artboard according to the comment; after checking the result, mark it resolved in the comments panel.

The comments panel filters by **Open / Sent / Resolved / All**. You can reply, **Resolve**, **Reopen** and **Delete**, or select several and click **Send to HeyS (N)** to send them together. When the element a comment is anchored to has changed so much it cannot be found, the comment is marked **Element not found** or **Element may have changed**.

- Comments sent while a task is running don't wait in a queue: the current turn stops and continues with the comments.
- When there is no session yet (for example, in a preview on the new-task page), sending a comment opens a new canvas session.
- When you send a message in a canvas session, HeyS also tells the agent which page you are looking at and what you have selected, so you can just say "make this title a bit larger". In the message bubble this information is collapsed into **N canvas comments** and **Canvas view** tags instead of spelling out the whole data.

### ▶ Trying out interactive prototypes

When making an interactive prototype (with buttons to click, pages to switch, input to type), the canvas's select and comment tools take over clicks, so you need to enter a dedicated try-out: click ▶ **Try it** on the artboard's name bar. The artboard opens full screen, where you can click, scroll and type; press Esc to leave. When an artboard's script throws an error, the name bar shows **Artboard error**; click **Ask HeyS to fix** to hand the error to the agent.

### Presenting and exporting

Click ▶ **Present** to show the artboards page by page. Click **Export** and choose a format and scope:

| Format                 | Description                                                                            |
| ---------------------- | -------------------------------------------------------------------------------------- |
| **PPTX (editable)**    | Keeps text and shapes as editable PowerPoint elements wherever possible                |
| **PPTX (images)**      | Each page is one image, closest to how the canvas looks, but the text cannot be edited |
| **PDF**                | Suitable for sending and printing                                                      |
| **PNG**                | A single image                                                                         |
| **HTML (single file)** | A web page that opens in a browser                                                     |
| **ZIP (whole canvas)** | The canvas folder packed up, to continue editing on another computer                   |

The scope can be **This artboard** or **Whole page**. When the export finishes, the message **Exported file name** appears.

### Converting a PPTX to a design canvas

An existing PPT can also be edited on the canvas: open a .pptx in a file preview or a session and click **Convert to canvas** in the top bar. HeyS saves a separate "file name-design" canvas next to it (the original file is untouched), converting page by page; each page appears on the canvas as it is done, and the top shows "Converting: N / total slides". Once converted, it is an ordinary canvas: you can comment on it, change the layout, and hand it to the agent to redesign. It is no longer synced with the original PPTX afterwards. Clicking again for one that has already been converted opens it directly, without converting again or overwriting.

:::note Note
A few kinds of PPT content keep only their position after conversion. When conversion finishes, you are told how many such items there are, and you can ask the agent to fill them in from the original file.
:::

## Which one to use \{#which-one-to-use}

| What you want                                                                         | Use                                                             |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Comparisons, trends or shares of a set of numbers                                     | A chart in the answer, or ` ```chart ` in a report              |
| A mood image, cover or illustration                                                   | Image generation                                                |
| Changing the background or style of an existing image                                 | Image editing                                                   |
| Posters, PPTs and interactive prototypes with text layout that need repeated feedback | The design canvas                                               |
| Redesigning an old PPT                                                                | Convert the PPTX to a design canvas, then comment for the agent |
