TOKREPO · ARSENAL
Stable

Charts & Data Viz

D3.js, Apache ECharts, Gradio, Redash, Excalidraw, tldraw — render any data shape from one-off chart to full dashboard.

6 assets

What's in this pack

This pack pairs the six visualization tools that handle every shape of data display you'll encounter on a real product team. Two are JS chart libraries; one is a Python ML demo builder; one is a SQL dashboard; two are whiteboard apps that engineers actually open.

# Tool Output Best for
1 D3.js SVG, custom bespoke explanatory viz
2 Apache ECharts Canvas + SVG high-perf dashboards
3 Gradio hosted ML demo model demos with sliders
4 Redash SQL dashboard exec / analyst dashboards
5 Excalidraw hand-drawn diagrams architecture sketches
6 tldraw whiteboard + AI live brainstorming

The six split cleanly into three pairs: D3 + ECharts (programmatic charts), Gradio + Redash (full UIs around data), and Excalidraw + tldraw (visual thinking, not data viz strictly but adjacent enough that engineers reach for the same hotkey).

Why one pack covers all six

A frontend engineer asked to "make a chart" actually needs to answer: is this a one-off illustration in a docs page, a dashboard panel that updates every minute, a model demo for a stakeholder, an exec slide, or a whiteboard sketch from a meeting? These six are the canonical answer to each version of that question.

  • D3.js when you need full control of every pixel — it's a low-level library, not a chart library. Pairs well with Observable Plot for the 80% case.
  • Apache ECharts when you need 50 chart types working out of the box on Canvas. It outperforms Recharts for large datasets and is maintained by Apache.
  • Gradio when you have a Python model and want a shareable demo URL in 10 lines. Hugging Face Spaces uses it as default.
  • Redash when you have a database and need analysts to point-and-click queries into shared dashboards. Self-hosted alternative to Mode or Looker.
  • Excalidraw when you want a hand-drawn diagram (system architecture, sequence diagrams) that doesn't look like it took three hours.
  • tldraw when you want collaborative whiteboarding plus an AI sidekick — tldraw's tldraw_compute integration lets you sketch flows that AI then renders.

Install in one command

# Install the pack — drops starter templates for each viz tool
tokrepo install pack/charts-data-viz

# Or pick one
tokrepo install d3
tokrepo install echarts
tokrepo install gradio
tokrepo install redash

The TokRepo CLI scaffolds JS libraries via npm/pnpm and Python ones via uv. For Redash, the install drops a docker-compose.yml so you can docker compose up and have a working instance in 60 seconds.

Common pitfalls

  • D3 is not a chart library. It's a math + DOM library. People copy/paste a stackoverflow snippet, hit a corner case, and rage-quit. For a "chart library on top of D3," use Observable Plot or Vega-Lite. Reach for raw D3 only when those two can't express your viz.
  • ECharts can hit memory limits with large data. A line chart with 500K points renders, but rendering 500K animations doesn't. Disable animations and downsample to ≤10K points before rendering.
  • Gradio's share=True exposes your model. It generates a public *.gradio.live URL that anyone can hit while your process is running. Fine for sending a demo to a coworker; not fine to leave running overnight unauthenticated on a fine-tuned model with proprietary weights.
  • Redash needs care around row limits. Default queries can return millions of rows and crash the browser. Set query_runner_row_limit and use sampled queries for exploration.
  • Excalidraw locks you into Excalidraw format. Yes, it exports PNG/SVG, but the .excalidraw file is proprietary JSON. Plan for "we'll re-draw if we ever migrate" — or use tldraw which exports plain SVG.

When this pack alone isn't enough

If you need pixel-perfect statistical viz (matplotlib/seaborn/plotly territory) this pack doesn't cover it — those are Python-side and serve a different audience (notebooks, papers). If you need a real BI tool with audit trails and SSO, Redash is the entry tier; Metabase or Apache Superset is the next step up.

For data sources, pair with Postgres for AI Agents. For embedding results into a docs site, pair with Static Site & Docs Builders. For "make a full app with these charts as panels," see AI App Builders.

INSTALL · ONE COMMAND
$ tokrepo install pack/charts-data-viz
hand it to your agent — or paste it in your terminal
What's inside

6 assets in this pack

Script#01
D3.js — Bring Data to Life with SVG, Canvas & HTML

D3 is the grandparent of data visualization on the web — a low-level toolkit for binding data to DOM, applying data-driven transformations, and building any chart imaginable. Powers the New York Times, Observable, and thousands of dashboards.

by Script Depot·134 views
$ tokrepo install d3-js-bring-data-life-svg-canvas-html-ee953940
Script#02
Apache ECharts — Powerful Interactive Charting Library

Apache ECharts is a powerful, interactive charting and data visualization library for browsers. 40+ chart types, canvas/SVG rendering, streaming data, and GPU acceleration. The enterprise choice used by Alibaba, Baidu, and countless dashboards.

by Apache Software Foundation·101 views
$ tokrepo install apache-echarts-powerful-interactive-charting-library-b3e552ed
Config#03
Gradio — Build ML Demos & AI Apps in Python

Python library for building interactive ML demos and AI web apps. Chat interfaces, file upload, image/audio/video I/O. Share with public link. 42K+ stars.

by AI Open Source·142 views
$ tokrepo install gradio-build-ml-demos-ai-apps-python-b30caf4b
Config#04
Redash — Open Source Data Visualization & Dashboard Tool

Redash connects to any data source, lets you query with SQL, visualize results, and build shareable dashboards. The SQL-first open-source BI tool for data teams.

by AI Open Source·123 views
$ tokrepo install redash-open-source-data-visualization-dashboard-tool-a20e0e3e
Script#05
Excalidraw — Collaborative Whiteboard & Diagrams

Draw hand-sketched diagrams with real-time collaboration. Embeddable React component. The most popular whiteboard tool. 120K+ stars.

by TokRepo Curated·103 views
$ tokrepo install excalidraw-collaborative-whiteboard-diagrams-3dd25a34
Config#06
tldraw — Infinite Canvas SDK for AI Applications

Open-source infinite canvas library for building whiteboard, diagramming, and design applications. React component with real-time collaboration. Used by AI tools for visual generation. 40,000+ stars.

by AI Open Source·94 views
$ tokrepo install tldraw-infinite-canvas-sdk-ai-applications-abe1c221
FAQ

Frequently asked questions

Are these tools free?

All six are open source. D3, ECharts, Excalidraw and tldraw are MIT/Apache. Gradio is Apache 2.0 (Hugging Face hosts it for free in Spaces; self-hosting is also free). Redash is BSD-3 — completely free self-hosted, with an optional paid hosted plan if you don't want to run it yourself. There are no per-chart or per-user fees from the libraries.

How does ECharts compare to Recharts or Chart.js?

ECharts uses Canvas + WebGL by default, which scales to 100K+ points smoothly. Recharts is React-only and SVG-only — beautiful for 1K points, slow at 50K. Chart.js is the easiest install for one chart but lacks ECharts's plugin ecosystem (geo maps, gauges, treemaps). Pick ECharts for dashboards, Recharts for one-off React charts, Chart.js for a quick HTML page.

Will these work with Claude Code or Cursor?

All six install with one npm/pip command and have full TypeScript types or stubs, so any AI editor handles them well. Claude Code and Cursor have specific awareness of D3 and ECharts API shapes. For Gradio, the Python type hints are excellent — Cursor autocompletes interface components correctly. tldraw has a maintained MCP server for AI-driven sketching.

Difference vs general dashboarding tools like Grafana?

Grafana is metrics-and-time-series first — Prometheus, Loki, InfluxDB are its native source. Redash is SQL-first — any DB driver works. ECharts is a library, not a tool — you embed it in your own UI. Pick Grafana for ops dashboards, Redash for analyst dashboards, ECharts when you need charts inside an app you're building yourself.

What's the operational gotcha with Gradio?

The auto-reload feature is great in dev but ships your file paths in error pages on the public *.gradio.live URL. Set share=False for any environment touching real data, or run behind a reverse proxy with auth. Also: Gradio queues requests by default — under load this serializes inference, which is correct behavior but surprises first-time users.

MORE FROM THE ARSENAL

12 packs · 80+ hand-picked assets

Browse every curated bundle on the home page

Back to all packs