Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
RFC 0055: menus that change
RFC 0056: the framework's own words
RFC 0057: rata upgrade
RFC 0058: @elyra/charts
RFC 0059: all of WireCharts
RFC 0060: exporting a chart
RFC 0061: zoom
RFC 0062: printing
RFC 0063: linked charts
RFC 0064: report pages
RFC 0065: marks
RFC 0066: taking a table out
RFC 0067: totals
RFC 0068: columns the user picks
RFC 0069: filters
RFC 0070: saved views
RFC 0071: lists over Laravel
RFC 0072: targets
RFC 0073: every row out
RFC 0074: grouped rows
RFC 0075: pinned columns
RFC 0076: views on the server
RFC 0077: every match selected
RFC 0078: editing in the table
RFC 0079: many cells at once
RFC 0080: a value for the selected rows
RFC 0081: a new row in the table
RFC 0082: a related record in a cell
RFC 0083: a filter by a related record
RFC 0084: one write for many rows
RFC 0085: the keys shown
RFC 0086: many rows in Laravel
RFC 0087: many rows deleted
RFC 0088: the trash
Release notes
Changelog
Elyra
RFC 0060 — Exporting a chart: an image, a picture to paste, the data

RFC 0060 — Exporting a chart: an image, a picture to paste, the data

Status: implemented (2026-11-27) · Target: 0.60.0 · builds on RFC 0058, RFC 0059 and files · see Decisions

Summary

A chart in a desktop app is something people take with them: into a report, an email or a slide. Today they screenshot it. RFC 0058 and 0059 both left export out as "worth doing, separately".

This RFC lets every chart in @elyra/charts save itself or copy itself, from a menu the user already knows, with no code in the app:

right-click a chart (or Shift+F10 on it):
  Copy as image
  Save as PNG…
  Save as SVG…
  ─────────────
  Copy data
  Save data as CSV…
<!-- On by default; off where a chart shouldn't leave the app -->
<SankeyChart {nodes} {links} exportable={false} />

<!-- Or from the app's own button -->
<script>
  let chart;
</script>
<LineChart bind:this={chart} {series} {categories} />
<Button onclick={() => chart.save("png")}>Export</Button>
  • Images:
    • SVG is the chart as it's drawn.
    • PNG is that same SVG at twice the pixels.
    • Both have the theme's surface behind them, so a dark chart stays readable on a white page.
  • Copy as image puts a PNG on the system clipboard, ready to paste into Word, Keynote or Mail.
  • The data is the hidden table the screen reader and the assistant already read, as CSV in the app's locale. Norwegian gets decimal commas, with semicolons between the fields.
  • The file is written where the user chose in the save dialog, and nowhere else. The page only gets to write to a file the user picked.

Motivation

  • A report is where a chart ends up. Today the user screenshots it, and gets a blurry crop with the window's edges.
  • The table is already there. "Copy data" reuses what the screen reader and the assistant read (RFC 0058), with no export code per chart.
  • Every app would build the same menu. It should be built once, and in the app's language.

Current state (0.59)

  • dialog.save gives the page a ChosenFile grant of kind save. A Rust command can write to it, but the page itself can't. Every export would need a command of its own.
  • clipboard.writeText exists, but there's nothing for images. arboard, which the shell already uses for text, can also hold images.
  • contextMenu(event, items) in the runtime draws the themed menu.
  • ECharts can give an SVG string (renderToSVGString, with the SVG renderer) or a data URL.

Design

In the runtime

// Save bytes where the user chooses: the dialog, then the write. The path, or null.
files.save(data: Blob | Uint8Array | string, options: SaveDialogOptions): Promise<string | null>;

// An image on the clipboard: PNG bytes.
clipboard.writeImage(png: Blob | Uint8Array): Promise<void>;

files.save is dialog.save followed by a new shell route, /__system/file.write { id, bytes }. That route writes only to a grant of kind save from this run, once. Any other id is refused, as a path the user didn't choose can't be passed today. It needs Capability::System, like the dialogs, and the system feature.

clipboard.writeImage decodes the PNG in the shell and hands RGBA to arboard.

In @elyra/charts

  • The menu:
    • ChartBase opens it on contextmenu, and on Shift+F10 or the Menu key when the chart has focus.
    • Its words are elyra.charts.*.
    • Its items follow what the shell can do. Without the system feature, only "Copy data" is offered (the page's own clipboard), so the menu never offers something that fails.
  • The images:
    • SVG: an SVG-rendered chart gives its own SVG. A canvas or 3D chart can't give an SVG, so it doesn't offer one.
    • PNG: the SVG is drawn onto a canvas at 2× scale. A canvas-rendered chart gives its own PNG.
    • Behind the image: the theme's --elyra-surface, and for an SVG the font's family too.
  • The data:
    • The table, its caption as the first line, then the head row and the rows.
    • In the app's locale:
      • numbers as the table writes them, which for Norwegian means decimal commas;
      • semicolons between the fields where the locale's decimal sign is a comma, otherwise commas;
      • quoted per RFC 4180.
  • The file name is the chart's label, else its summary's first words, else "chart", plus the date, for example Revenue 2026-11-27.png.
  • For the app:
    • exportable={false} turns the menu off.
    • bind:this gives save(format), copy() and csv() for the app's own buttons.

Testing

  • files.save and /__system/file.write:
    • a save grant is written, once;
    • an open grant, an unknown id or a second write are refused.
  • clipboard.writeImage: PNG in, RGBA out, in the shell's own test of the decode.
  • @elyra/charts:
    • the menu's items with and without the system feature;
    • the CSV in English and Norwegian;
    • the file name;
    • SVG with the surface behind it;
    • PNG from the SVG, with a fake canvas.
  • A browser check: Save as PNG on a chart in the gallery writes a PNG of the size asked.

Implementation plan

  1. /__system/file.write and files.save; clipboard.writeImage.
  2. @elyra/charts: the export functions, the menu, exportable, the component methods, the words.
  3. The gallery's charts with the menu; docs (charts.md, system.md), CHANGELOG.

Open questions

Answered in Decisions.

  1. A context menu, or a visible button on every chart? Recommendation: the context menu, with Shift+F10 and the Menu key. It's where a desktop user looks, and it doesn't crowd a dashboard of small charts. An app that wants a button calls chart.save().
  2. On by default? Recommendation: yes. A chart the user can see they can screenshot anyway; exportable={false} is for the rare one that shouldn't leave.
  3. files.save as a general runtime API, not just the charts'? Recommendation: yes. "Save this as a file" is what every export needs (a report, an invoice PDF made in the page), and it's safe the same way dialog.save is.
  4. CSV in the app's locale, or always comma and point? Recommendation: the app's locale. A Norwegian user opens it in Excel, which reads semicolons and decimal commas in a Norwegian setup.
  5. Images on the clipboard on every platform? Recommendation: yes, through arboard (its default image-data), on macOS, Windows and X11; on Wayland it needs arboard's wayland-data-control feature, which the shell turns on for Linux. Where it still fails, the item says so in a toast rather than disappearing.

Not in this RFC

  • PDF: an image in a PDF is the app's report's business; files.save takes the bytes.
  • Exporting several charts at once (a dashboard).
  • Drag a chart out onto the desktop or into another app.

Alternatives considered

  • ECharts' toolbox saveAsImage: it downloads through the browser, which a webview turns into nothing or a file in Downloads without asking, and it's English, unthemed and one more thing in every chart's corner.
  • A command per export in Rust: every app writes the same command, and the page still has to hand it the bytes.

As built

  • /__sys/file.write (files::write_saved) writes to a save grant from this run and spends it; an open, folder or document grant, an unknown id and a second write are refused. It's under Capability::System, and a read-only window can't reach it. The bytes come as MessagePack bin (a small Bytes type reads them, no serde_bytes).
  • clipboard.image decodes the PNG with the png crate the shell already has, to RGBA for arboard; wayland-data-control is on for Linux.
  • The menu asks the shell once (paths()) whether it has the system feature; a failure is a toast in the app's language.
  • The CSV isn't the hidden table's text: the table formats numbers for reading (1 200,5, or the chart's format), so the CSV is described again with plain numbers, no grouping, the locale's decimal sign.
  • Found on the way:
    • contextMenu wasn't a menu to the keyboard or a screen reader; it is now, as Shift+F10 needs.
    • A chart's SVG was invalid XML whenever the font token named a font in double quotes (the default does: "Segoe UI"), which ECharts writes into style="…" unescaped. The PNG, drawn from it, failed with it; a browser check found it, happy-dom didn't.

Decisions

  1. A context menu, with Shift+F10 and the Menu key; save(), copy() and csv() for an app's own button.
  2. On by default; exportable={false} turns it off.
  3. files.save is a general runtime API.
  4. CSV in the app's locale.
  5. Images on the clipboard everywhere, with arboard's wayland-data-control on Linux, and a toast where it still fails.