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 0059 — All of WireCharts' charts in `@elyra/charts`

RFC 0059 — All of WireCharts' charts in @elyra/charts

Status: implemented (2026-11-27) · Target: 0.59.0 · builds on RFC 0058 · see Decisions

Summary

@elyra/charts shipped in 0.58.0 with WireCharts' six basic charts. WireCharts has 72. A desktop app with a Laravel half that draws a funnel, a heatmap or a sankey on the web has to fall back to <Chart option={…}> on the desktop, and write by hand what WireCharts already builds from a few props.

This RFC brings every one of them, as a component of its own with WireCharts' props:

<script>
  import { FunnelChart, HeatmapChart, SankeyChart, GaugeChart } from "@elyra/charts";
</script>

<FunnelChart series={[60, 40, 20]} labels={["Visits", "Sign-ups", "Orders"]} />
<GaugeChart value={72} max={100} name="Load" progress />
<SankeyChart {nodes} {links} live={live.flows()} />
  • One component per chart: area-fan is AreaFanChart, combo-dual-axis is ComboDualAxisChart, and so on. Each imports only its own part of ECharts, so an app still ships only what it draws.
  • WireCharts' props, as they are, so a Blade view and a Svelte page say the same thing. The six from 0.58 keep the props they have, and take WireCharts' names too (labels for a pie's slices).
  • The options are built in JavaScript, ported from Option.php builder by builder. Formatters are real functions, so nothing is evaled: the app's content security policy stays as it is.
  • What 0.58 gave the six, all 72 get: the design tokens, live and its states, the summary and the hidden table, the keys and the app's language.
  • The charts that move (ClockChart, LineRaceChart, AreaRaceChart, AudioChart) bring their behaviour too, and stop under reduced motion.
  • 3D (Bar3dChart, Scatter3dChart, SurfaceChart) comes from a separate entry, @elyra/charts/gl, because it needs echarts-gl and WebGL.

Motivation

  • One chart vocabulary for both halves. The web and the desktop of the same app should draw the same report the same way, from the same data and the same props.
  • Chart with option is a way out, not a way in. A funnel is ten props in WireCharts and sixty lines of ECharts option by hand, and the theme, the summary and the table are the app's to get right.
  • The tests are already written, in PHP. WireCharts' builders are the reference: the port can be held to them option by option.

Current state (0.58)

  • @elyra/charts: LineChart, AreaChart, ColumnChart, BarChart, PieChart, ScatterChart and Chart. ChartBase does the instance, the theme, the states, the summary, the table and the keys; internal/options.js builds the options as plain data.
  • WireCharts: 72 Blade components over Option.php's 66 builders, and Alpine glue for the four that move. Its PHP builders mark formatters as "@@function …@@" strings and revive them with new Function.

Design

The components

Every WireCharts component becomes <Name>Chart, PascalCase:

Family Components
Line Line, LineLabels, LineLog, LineTime, LineAnnotated, LineForecast, LineBoost, LineAnimated, LineRace, Spline, SplineInverted, SplineTime, SplineBands, Streamgraph
Area Area, Areaspline, AreaStacked, AreaPercent, AreaInverted, AreaStackedInverted, AreaNegative, AreaMissing, AreaGradient, AreaRange, AreaRangeLine, AreaFan, AreaRace
Column and bar Column, ColumnStacked, ColumnPercent, ColumnNegative, ColumnRotated, ColumnRange, Bar, BarStacked, BarPercent, BarRange, Lollipop, Histogram, Pareto
Pie Pie, Donut, PieRose, PieSemi, PieVariable, PieGradient, PieLabels, PieMonochrome
Scatter Scatter, Bubble, ScatterSymbols, ScatterRegression, PackedBubble
Combinations ComboLineColumn, ComboDualAxis, ComboMultiAxis
More Gauge, Clock, Radar, Funnel, Heatmap, Candlestick, Boxplot, Tree, Treemap, Sunburst, Sankey, Graph, Audio
3D (@elyra/charts/gl) Bar3d, Scatter3d, Surface

The 0.58 names stay. AreaChart and ColumnChart keep stack and percent, the same charts as AreaStacked and ColumnPercent with a prop.

The options

internal/options/ holds one module per family, each exporting the builders of Option.php under the same names (areaFan, comboDualAxis, …). They take the same arguments and return the same option, with these changes:

  • the theme's colours and text in place of WireCharts' theme JSON;
  • functions in place of "@@…@@" strings;
  • the app's locale in the formatters.

A builder that needs data shaped differently (a tree's nested nodes, a sankey's nodes and links, a candlestick's OHLC) takes it as WireCharts does. ChartData grows the shapes it doesn't have yet: nodes, links, and a tree.

Held to WireCharts

scripts/wirecharts-fixtures.php runs each Option.php builder on a fixture of props and writes the options as JSON, with every function as "@@function@@". It's checked in with the WireCharts commit it came from. The JS tests build the same fixtures and compare. Colours and functions are left out of the comparison, because the theme and the locale are Elyra's. When WireCharts changes, the script runs again and the diff shows what to port.

What moves

  • ClockChart ticks every second, and stops when it's off screen or the window is hidden.
  • LineRaceChart and AreaRaceChart reveal their points one by one, once.
  • AudioChart plays the series as pitch on a button press: Web Audio, with the tooltip following the sound.
  • Under reduced motion, the clock shows the time without its sweep, and the race charts show the whole line at once.

3D

@elyra/charts/gl exports the three 3D charts and imports echarts-gl, which is an optional peer dependency the app installs only if it imports that entry. Without WebGL the 3D charts show Callout ("3D isn't available here") and still have their summary and table.

Accessibility, the theme and the words

As RFC 0058. Each family's summary says what its chart says:

  • a funnel: its stages, with how many are left at each;
  • a gauge: its value out of its range;
  • a sankey: its largest flows;
  • a tree: its depth and breadth;
  • a candlestick: open, high, low and close over the period.

The hidden table has the rows each family's data is made of. The words for these are new elyra.charts.* keys, in English and Norwegian.

Testing

  • Each builder against WireCharts' fixture (above).
  • Each component: draws with its own ECharts part, and a bundle with only it has no other chart's code (the 0.58 test, run per family).
  • The four that move, with fake timers; reduced motion.
  • @elyra/charts/gl: imported only when asked; the WebGL fallback.
  • A browser check of every chart, in dark and light, in the docs.

Implementation plan

  1. The fixture script and the fixtures; options/ split by family.
  2. The families one by one, with their components, summaries and tables: line and area, column and bar, pie, scatter and combinations, the rest.
  3. The four that move.
  4. @elyra/charts/gl.
  5. The docs: a page per family with every chart's example, like @elyra/ui's reference; CHANGELOG.

Open questions

Answered in Decisions.

  1. WireCharts Pro's charts become free here. In WireCharts, 66 of the 72 need a Pro licence. @elyra/charts is MIT, like the rest of Elyra, so in an Elyra app they'd be free. Recommendation: that's your call as WireCharts' owner. If they should stay paid, the alternative is that @elyra/charts ships the free six and a Pro package is installed beside it with a licence key. That's more work, and it doesn't fit "the repository is the only source".
  2. 3D in a separate entry, with echarts-gl as an optional peer? Recommendation: yes. echarts-gl is large and needs WebGL, and only an app that draws in 3D should carry it.
  3. One component per chart, or one <Chart kind="area-fan">? Recommendation: one per chart. It's how WireCharts reads, and it keeps the tree-shaking. A kind prop would pull every builder in.
  4. Do the 0.58 six take WireCharts' prop names too (labels beside categories for a pie)? Recommendation: yes, as aliases, so a Blade view's props work on the desktop as they are.
  5. Held to WireCharts by fixtures from PHP, checked in? Recommendation: yes. CI then needs no PHP for the charts, and a change in WireCharts shows up when the fixtures are made again.

Not in this RFC

  • WireCharts' licence check (wirecharts:activate).
  • Maps (ECharts' geo), which WireCharts doesn't have either.
  • Exporting a chart as PNG or SVG (RFC 0058 left it out too).

Alternatives considered

  • Running WireCharts' PHP builders from Laravel and sending the option: the desktop would draw what the server builds, but only with the server, never offline, and with functions as strings revived by new Function.
  • <Chart option> and a cookbook: no new code, but every app writes the same sixty lines and gets the theme and the table wrong in its own way.

As built

  • The fixtures are made by rendering each example in WireCharts' docs catalog (the site's App\Docs\Catalog) with WireCharts itself, in a Testbench app with every chart unlocked, and reading the option out of the HTML. So both the props and the option are WireCharts' own. Each fixture also records the component's @props defaults, its builder, and the ECharts parts its builder's source and its option name.
  • The builders are in charts/src/internal/wirecharts/ (line.js, area.js, mixed.js, columns.js, more.js), with PHP's semantics where they matter: round(), float-to-string at precision 14, array_replace_recursive, isset. calls.js maps each component to its builder as its Blade view does. All 72 match WireCharts' option exactly.
  • The components are generated (npm run components, checked in CI): WireChart.svelte runs the call, puts the app's look over the option (wirecharts/theme.js) and hands it to ChartBase, which now describes a chart from its option (describe.js: slices, flows, cells, a hierarchy, OHLC and boxplot rows, a radar's indicators, a streamgraph's points, or categories by series, skipping a range's invisible base).
  • ECharts 6 isn't WireCharts' ECharts 5. Two of its charts needed the look layer to make up the difference, the builders staying WireCharts': a piecewise visualMap open at both ends (area-negative) throws, so the open ends are closed far away; and a streamgraph's numeric-looking categories ("2019") are read as numbers, so they're sent as their index.
  • WireCharts' own surface example draws nothing: its view passes series ?? data with series defaulting to []. The port keeps that; the docs' example passes series.
  • labels on a WireCharts chart is a list (its points' names) or an object (the chart's words), as @elyra/ui's labels is.
  • Only its own builder is in the bundle: each call is a named export (callFunnel, …) a component imports by itself, and CALLS, the map of them all, is the tests'. With ECharts' parts only the chart's own, and echarts-gl only with @elyra/charts/gl; the bundle test checks a funnel-only app has no other chart's series, builder or call.
  • Found on the way: a chart's hidden data table stretched the page (0.58.0's charts too), because a table ignores the height that hid it.

Decisions

  1. WireCharts Pro's charts are free in @elyra/charts, MIT like the rest of Elyra: WireCharts' owner decided so.
  2. 3D comes from @elyra/charts/gl, with echarts-gl an optional peer.
  3. One component per chart, <Name>Chart.
  4. The 0.58 six take WireCharts' prop names too, as aliases.
  5. Held to WireCharts by fixtures from PHP, checked in with the commit they came from.