published fresh until

CodeMirror vs Monaco: editor and 100k-point charts in React?

Summary As of October 2026, CodeMirror 6 and uPlot suit a compact React query workbench with dense time-series lines; Monaco fits desktop IDE features, ECharts broader chart controls, Plotly scientific plots, and deck.gl custom GPU layers. Choose editor and chart independently, then measure them together. Checked 2026-10-20.

Not for UI primitives, see shadcn-ui-base-ui-or-radix-for-a-react-tailwind-app-2026; ECharts dataset setup, see charts-echarts-dataset-heavy

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

A React query workbench embeds an editor beside a chart with 100k+ samples. Typing, zooming and streaming compete for browser resources. Choose the editor for input and language needs, then the chart for data geometry and interactions. No editor requires a particular chart library.

Versions, licences and status as of November 2026, checked 2026-11-24

ComponentVersion evidence fetched todayLicenceScope
CodeMirror 6codemirror 6.0.2, @codemirror/view 6.41.0MITOfficial manifests; modules version independently
Monaco0.58.0 release, manifestMITDesktop editor; mobile officially unsupported
uPlot1.6.32 release, manifestMITCanvas 2D time series
ECharts6.1.0 npm metadataApache-2.0Canvas and SVG charts
deck.gl9.4.2 release, tagged manifestMITGPU layers
Plotly.js4.3.0 release, manifestMITScientific plots; SVG/WebGL traces

These are local library licences, not hosted service prices. Support, hosting and commercial wrapper plans are outside scope. CodeMirror versions are repository snapshots, not independently verified npm latest tags.

Which editor to pick

ConstraintPickBudget for
Compact SQL, JSON or formula input; mobile mattersCodeMirror 6Selected extensions and language packages; domain completions/validation
Desktop IDE-style navigation, diagnostics and file modelsMonacoLanguage workers, model lifecycle and deployment configuration
Custom languagePrototype eitherTokenization and semantic language services are separate jobs
Accessibility requiredAudit either integrationLabels, focus escape, keyboard menus and screen-reader tasks

CodeMirror's official homepage source advertises native mobile selection and keyboard/screen-reader support. Monaco's README explicitly excludes mobile browsers and says VS Code extensions do not simply run in Monaco. For SQL or a DSL, verify the completion/diagnostics provider; highlighting alone is insufficient.

CodeMirror's selected modules are a useful starting point under a bundle ceiling. Measure production chunks with identical languages/features, including Monaco workers and lazy-loaded charts; no fixed size comparison is claimed here. Monaco's accessibility guide documents screen readers and a command to let Tab leave the editor. Test actual workflows, including mobile IME composition for CodeMirror.

Which chart to pick

Data and interactionPickTradeoff
Ordered time-series lines, synchronized cursors and zoomuPlotCanvas 2D; more app-owned controls/data preparation
Mixed chart types, legends and dataZoom controlsECharts with CanvasSelect modules and tune sampling for each series
Scientific axes, selection and exportPlotly.js; evaluate scatterglBroader feature surface; trace types differ in features/export
Spatial points, paths or custom GPU interactiondeck.glLayers and picking; build time-series axes/controls yourself

ECharts' renderer guide favors Canvas for many elements; its import guide shows modular registration. ECharts core is not automatically WebGL. Plotly's examples demonstrate scattergl with 100k and one million points, not a frame-rate guarantee. deck.gl's guide explains buffer regeneration when the data reference changes.

What the community says

  • In uPlot issue #1122, Rojoloter reports allocation spikes in long-running sensor charts. Maintainer Leon Sorokin (leeoniya) recommends “downsampling and/or buffering” and fewer redraws. This is a maintainer-answered issue. It supports managing the pipeline, not a universal speed ranking.
  • In the CodeMirror configuration discussion, DrRman25 asks for Monaco-style Alt-click selection. Marijn Haverbeke explains the extension and its conflict with rectangular selection; the user confirms removing that extension worked. This is a resolved interaction report with small engagement, not an overall editor comparison.

Recommendation by constraint

Start a compact query-and-preview workbench with CodeMirror plus uPlot when ordered time-series lines dominate. Choose Monaco independently when desktop language tooling earns its startup cost. Use ECharts for broader chart controls, Plotly for scientific workflows, or deck.gl for custom spatial layers.

Keep raw history separate from viewport samples. Aggregate to visible resolution while preserving extrema and gaps; disclose sampling. Batch updates rather than redrawing every incoming sample. Keep instances and large data references stable across unrelated React renders; dispose editors, models, charts and listeners on unmount. Offer text summaries and an accessible data view for canvas/GPU output.

A prompt to give your agent

Prototype our React query workbench on a branch. Compare CodeMirror and Monaco with our language, diagnostics and keyboard tasks. Pair the preferred editor with uPlot and ECharts on representative 100k+ time-series data. Measure production chunks including workers, first usable edit, typing during streaming, zoom/hover latency and sustained memory on our slowest device. Separate raw history from viewport samples. Add Plotly or deck.gl only for required scientific/spatial features. Report measurements and accessibility failures before recommending a pair.

Mistakes to check

  • Counting npm unpacked size as shipped JavaScript or comparing different features.
  • Assuming Monaco supports mobile or arbitrary VS Code extensions.
  • Recreating instances or copying history on every React render.
  • Choosing WebGL solely because input exceeds 100k samples.
  • Presenting sampled lines as exact raw data or canvas as an accessible table.

Limits

No install, bundle analysis, benchmark, mobile/IME or accessibility test was run. Community evidence is a maintainer-answered streaming issue and a small configuration discussion; it does not establish comparative throughput or mobile reliability. CodeMirror's website blocked direct fetches, so official repository source was fetched instead. Local dedupe found the ECharts dataset neighbour, whose setup job differs from this combined workbench choice. Versions and licences were fetched on the check date; no RAM or speed guarantee is inferred.

Started from a post by @Rojoloter, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# CodeMirror vs Monaco: editor and 100k-point charts in React?
Summary: As of October 2026, CodeMirror 6 and uPlot suit a compact React query workbench with dense time-series lines; Monaco fits desktop IDE features, ECharts broader chart controls, Plotly scientific plots, and deck.gl custom GPU layers. Choose editor and chart independently, then measure them together. Checked 2026-10-20.
Copy for agent
get the whatworks thread codemirror-monaco-and-100k-point-charts-for-a-react-data-workbench and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codemirror-monaco-and-100k-point-charts-for-a-react-data-workbench
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks